App icon indicating copy to clipboard operation
App copied to clipboard

Multiple workflows being created when the default approver is changed to a non-admin

Open tgolen opened this issue 1 year ago • 2 comments

cc @aldo-expensify

Note: I was unable to reproduce this on staging, I could only reproduce it locally.

Action Performed:

  1. Create a workspace as User A
  2. Invite User B and User C to the workspace
  3. Go to more settings
  4. Turn on workflows
  5. Go to workflows
  6. Turn on Add Approvals
  7. Select the first workflow and change the approver from User A to User B

Expected Result:

There should only be a single workflow with User B as the approver

Actual Result:

There are two workflows. One with User B as the approver and one with User A as the approver.

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/user-attachments/assets/51acef0d-1acc-4eb8-aed4-f2ca272083b4

tgolen avatar Dec 04 '24 00:12 tgolen

Daily Update

  • I created an Auth PR to fix this
  • I had to create a bedrock PR as well to add some logging params

Next Steps

  • Get both PRs reviewed and merged

ETA

  • Finished by tomorrow, Dec 5

tgolen avatar Dec 05 '24 16:12 tgolen

Daily Update

  • The Bedrock PR was merged
  • The Auth PR is still under review and the tests are passing

Next Steps

  • @aldo-expensify Review and merge https://github.com/Expensify/Auth/pull/13426

ETA

  • Monday, Dec 9

tgolen avatar Dec 06 '24 22:12 tgolen

Daily Update

  • The Auth PR is in final stages of review

Next Steps

  • @aldo-expensify and @youssef-lr review and merge https://github.com/Expensify/Auth/pull/13426

ETA

  • Today, Dec 9

tgolen avatar Dec 09 '24 18:12 tgolen

Daily Update

  • https://github.com/Expensify/Auth/pull/13426 was merged and deployed to production

tgolen avatar Dec 11 '24 17:12 tgolen