-
-
Notifications
You must be signed in to change notification settings - Fork 734
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
chore: list users and groups under each role in projectaccessadded event #5581
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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 just have a small comment. Other than that I think this improvements looks good.
users: [{ username: testUsername }], | ||
roleId: 1, | ||
groupIds: [1, 2], | ||
users: [{ id: 1, username: testUsername }], |
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.
should we drop the username? Feels like a user id should be enough?
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.
This is only in the test, it's actually a PII test that just happens to use that particular event.
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 can take a look at removing this particular test/making it a more appropriate test.
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've added a comment to the test that explains the use case and that it's specific to testing PII and not directly relevant of the event itself
About the changes
Replaces #5509
Changes the project access added event to list all users and groups added to each role instead of in root event.
Discussion points