Skip to content

Conversation

@kunwp1
Copy link
Contributor

@kunwp1 kunwp1 commented Oct 24, 2024

This PR addresses two issues related to modifying the workflow name and description:

  1. Write Access Issue: Previously, when a user with write access tried to modify the workflow name or description, the backend would block the action due to an unnecessary validation check. This PR removes the redundant check, allowing users with write access to update the workflow as expected.

  2. Read-Only Access Issue: Users with read-only access were able to modify the workflow name or description in the frontend, but the backend would correctly reject these changes. However, the frontend continued to display the modified values until the page was refreshed, leading to a confusing user experience. This PR improves the frontend logic to revert the workflow name and description to their original state if the backend returns an error, ensuring a more consistent and user-friendly experience.

Screen.Recording.2024-10-24.at.2.25.15.PM.mov

@kunwp1 kunwp1 added fix frontend Changes related to the frontend GUI labels Oct 24, 2024
@kunwp1 kunwp1 requested a review from aglinxinyuan October 24, 2024 21:34
@kunwp1 kunwp1 self-assigned this Oct 24, 2024
Copy link
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kunwp1 kunwp1 merged commit 18c2a3a into master Oct 24, 2024
@kunwp1 kunwp1 deleted the chris-fix-workflow-name-modification-bug branch October 24, 2024 22:12
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
This PR addresses two issues related to modifying the workflow name and
description:

1. Write Access Issue: Previously, when a user with write access tried
to modify the workflow name or description, the backend would block the
action due to an unnecessary validation check. This PR removes the
redundant check, allowing users with write access to update the workflow
as expected.

2. Read-Only Access Issue: Users with read-only access were able to
modify the workflow name or description in the frontend, but the backend
would correctly reject these changes. However, the frontend continued to
display the modified values until the page was refreshed, leading to a
confusing user experience. This PR improves the frontend logic to revert
the workflow name and description to their original state if the backend
returns an error, ensuring a more consistent and user-friendly
experience.


https://github.com/user-attachments/assets/ed6aa9c4-67fe-46f3-8b33-64c68198d82a

---------

Co-authored-by: Kunwoo Park <kunwoopark@dhcp-v093-134.mobile.uci.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The user who has "write" access to other user's workflow cannot modify the workflow name

2 participants