-
Notifications
You must be signed in to change notification settings - Fork 112
feat(gui): allow changing workflow access level #4161
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(gui): allow changing workflow access level #4161
Conversation
|
@Xiao-zhen-Liu Can you review this PR please? |
|
@seongjinyoon Thanks. Is it possible to add test cases? |
Xiao-zhen-Liu
left a comment
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.
Left some comments. Please also add some unit tests.
frontend/src/app/dashboard/component/user/share-access/share-access.component.ts
Show resolved
Hide resolved
frontend/src/app/dashboard/component/user/share-access/share-access.component.ts
Outdated
Show resolved
Hide resolved
I will add test cases after solving the issue regarding MockTexeraDB. |
|
@Xiao-zhen-Liu I have addressed your comments. |
Xiao-zhen-Liu
left a comment
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.
LGTM. You can add some test cases as a separate PR.
What changes were proposed in this PR?
Previously, when a user was given access to a workflow, the access level (READ/WRITE) could not be changed directly. Users had to revoke access and re-add with the new level. This PR adds the ability for users with write access to change the access level of other users via a dropdown.
Frontend (
share-access.component.ts/share-access.component.html):hasWriteAccessthat checks write access.changeAccessLevel()method with confirmation warning when a user downgrades their own access from WRITE to READ.Backend (
WorkflowAccessResource.scala):grantAccessendpoint to allow users with WRITE access to modify their own access levelBehavior:
Demo:
Screen.Recording.2026-01-14.at.3.51.53.PM.mov
Any related issues, documentation, discussions?
No
How was this PR tested?
Manually tested.
Was this PR authored or co-authored using generative AI tooling?
Revised with Claude Code.