-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(editor): Update ownership pills #11155
feat(editor): Update ownership pills #11155
Conversation
…wcredential-cards-and
const numberOfMembersInHomeTeamProject = computed( | ||
() => props.resource.sharedWithProjects?.length ?? 0, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cstuncsik please double check this is the correct source of truth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what the intention is here (maybe the variable name is confusing)
If we want to show how many users the resource is shared with, then it's correct.
If we want to show how many users are there in the home project of the resource, then it's not
If the latter you need to get the home project of the resource (by the homeProject.id
) and check the length of its relations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to the extend of my knowledge.. we want to share how many users the resource is shared with, i'll ask in the ticket to double check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the easier, the other one could only be problematic in the Home project because the resources are listed from all available projects and you would need to get all the relations for all the projects
In a team project you just get it from the store (projectsStore.currentProject.relations
)
…wcredential-cards-and
|
n8n Run #7583
Run Properties:
|
Project |
n8n
|
Branch Review |
pay-1803-update-ownership-pills-on-workflowcredential-cards-and
|
Run status |
Passed #7583
|
Run duration | 04m 25s |
Commit |
444a596efb: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 r00gm 🗃️ e2e/*
|
Committer | r00gm |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
3
|
Pending |
0
|
Skipped |
0
|
Passing |
459
|
View all changes introduced in this branch ↗︎ |
|
1 similar comment
|
…wcredential-cards-and
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
|
…wcredential-cards-and
✅ All Cypress E2E specs passed |
Got released with |
Summary
Related Linear tickets, Github issues, and Community forum posts
PAY-1803
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)