Skip to content
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

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

daveleek
Copy link
Contributor

@daveleek daveleek commented Dec 11, 2023

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.

Skjermbilde 2023-12-11 kl  08 38 12

Discussion points

  • There are separate events that demonstrate access added, removed, etc for single instances of user and group, but none batched like this.
  • Should this event be split up into one per instance of roleId? It kind of loses it's tie to a specific operation..

Copy link

vercel bot commented Dec 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2023 7:43am
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2023 7:43am

Copy link
Member

@ivarconr ivarconr left a 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 }],
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

@daveleek daveleek merged commit 5603e86 into main Dec 19, 2023
13 checks passed
@daveleek daveleek deleted the chore/improve-projectaccessadded-event branch December 19, 2023 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants