-
Notifications
You must be signed in to change notification settings - Fork 2
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: Adding a new user in the demo team automatically assigns the demoUser
role
#3867
Conversation
Removed vultr server and associated DNS entries |
4332d5f
to
8caa5f8
Compare
8caa5f8
to
17a1e3b
Compare
demoUser
roledemoUser
role
4d8f57a
to
0c3f929
Compare
0c3f929
to
170e8f1
Compare
@@ -35,6 +35,7 @@ describe("when a user presses 'add a new editor'", () => { | |||
teamMembers: mockTeamMembersData, | |||
user: mockPlatformAdminUser, | |||
teamSlug: "planx", | |||
teamId: 1, |
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.
You're setting teamId here now because we need it to differentiate between the demo team and non-demo teams?
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 right - the EditorUpsertModal
now has a dependency on the teamId being present.
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.
All works for me as expected and the code looks clean and concise.
What does this PR do?
demoUser
role instead of theteamEditor
roleTo test
demoUser
role appliedteam_members
table confirms thisNext steps...
demoUser
role can only access stagingdemoUser
andteamViewer
users are displayed)demoUser
role