-
Notifications
You must be signed in to change notification settings - Fork 12.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(core): Return all team projects if the user has global project:read
permissions
#8983
feat(core): Return all team projects if the user has global project:read
permissions
#8983
Conversation
return { | ||
name: `Unclaimed Personal Project (${pr.projectId})`, |
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.
One consideration is that we might want to have all projects with name, including for invited but not signed up user - perhaps use just the email. But this is something to discuss later.
|
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.
|
It's fixed now. But that took some fidgeting. The problem was that it used the relationships to get all projects. Which meant it would return projects multiple times if we have an It would also not return orphaned projects at all, because they have no project relation. Anyways, it's both fixed now, but the controller got a bit more complicated. I amended the tests to check for the right roles and scopes as well. Btw it will return the global role for projects for which the user has no project relationship. I hope that makes sense. If not let me know and create some examples. |
|
Summary
The endpoint
GET /my-projects
now returns the personal project and all team projects if the user has globalproject:read
permissions.Related tickets and issues
https://linear.app/n8n/issue/PAY-1455/update-the-project-endpoint-to-return-all-team-projects-for
Review / Merge checklist
(no-changelog)
otherwise. (conventions)