-
Notifications
You must be signed in to change notification settings - Fork 10
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
[risk=low][no ticket] Update User and UserRole entities to favor userName over email #8989
base: main
Are you sure you want to change the base?
Conversation
String email, WorkspaceAccessLevel updatedAccess) { | ||
RawlsWorkspaceACLUpdate update = new RawlsWorkspaceACLUpdate().email(email); | ||
String username, WorkspaceAccessLevel updatedAccess) { | ||
RawlsWorkspaceACLUpdate update = new RawlsWorkspaceACLUpdate().email(username); |
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.
can't update the name of RawlsWorkspaceACLUpdate.email
because that's defined by the Rawls API
.map(u -> userMapper.toWorkspaceUserAdminView(u, userRole)) | ||
.orElse( | ||
new WorkspaceUserAdminView() // the MapStruct-generated method won't handle a partial |
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.
cleanup/simplify by adding a MapStruct method to handle the partial creation
Remove deprecated
email
fromUser
Add
userName
toUserRole
and deprecateemail
PR checklist
[risk=no|low|moderate|severe]
in the PR title as outlined in CONTRIBUTING.md.