Skip to content

[$250] Workspace - Error message appears when delete approver #61675

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

Closed
1 of 8 tasks
nlemma opened this issue May 8, 2025 · 20 comments
Closed
1 of 8 tasks

[$250] Workspace - Error message appears when delete approver #61675

nlemma opened this issue May 8, 2025 · 20 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@nlemma
Copy link

nlemma commented May 8, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v9.1.41-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/6074170&group_by=cases:section_id&group_order=asc&group_id=229065
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Lenovo 80ES / Windows 10 Pro
App Component: Workspace Settings

Action Performed:

  1. Log in with gmail account
  2. Create workspace> Invite member
  3. Promote the invited member as approver
  4. Remove the approver from workspace members list
  5. Go back to the workspaces page

Expected Result:

There should be no error message

Actual Result:

Error message "402 default approver is not a member of the policy:" appears under workspace section

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6825385_1746695163820.Recording__5402.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021921856170250657164
  • Upwork Job ID: 1921856170250657164
  • Last Price Increase: 2025-05-12
Issue OwnerCurrent Issue Owner: @mjasikowski
@nlemma nlemma added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 8, 2025
Copy link

melvin-bot bot commented May 8, 2025

Triggered auto assignment to @RachCHopkins (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented May 8, 2025

Triggered auto assignment to @mjasikowski (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented May 8, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 8, 2025
Copy link
Contributor

github-actions bot commented May 8, 2025

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@nlemma
Copy link
Author

nlemma commented May 8, 2025

@RachCHopkins FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@mjasikowski
Copy link
Contributor

mjasikowski commented May 8, 2025

@RachCHopkins do you think it's a bug? I think it's a valid error and should be shown, but could be worded differently (i.e. "workspace" instead of "policy").

@yuwenmemon
Copy link
Contributor

@mjasikowski I feel like it's showing in the wrong place though, wouldn't you say?

@yuwenmemon yuwenmemon removed the DeployBlockerCash This issue or pull request should block deployment label May 8, 2025
@yuwenmemon
Copy link
Contributor

Removing blocker label: https://expensify.slack.com/archives/C01GTK53T8Q/p1746740796299029?thread_ts=1746697332.715449&cid=C01GTK53T8Q

@RachCHopkins

This comment has been minimized.

@RachCHopkins RachCHopkins added Daily KSv2 and removed Hourly KSv2 labels May 9, 2025
@RachCHopkins
Copy link
Contributor

Actually, I take that back - if you click the box and remove, you get told that the default approver will be the billing owner. And then the approver changes, but they can't be deleted with the check box method.

deleteapprover.mp4

Also, when you go to add the user and set the default approver again, it takes multiple attempts for the new approver to "stick". You have to go to the workflows page and refresh it first.

2025-05-09_13-52-49.mp4

If you come in fresh and you delete the user from the RHP, it DOES delete the user and also reset the approver.

So in summary, I have no idea how to repro this OP issue, but it appears there are two more issues:

  1. The updated approver only sticks after refreshing the Members page
  2. The system is not deleting the user from the members table after updating the approver, when done via check-box.

You should not even be able to delete a default approver, so if that's in a deploy then maybe it is a deploy blocker @yuwenmemon ?

@RachCHopkins RachCHopkins added Hourly KSv2 and removed Daily KSv2 labels May 9, 2025
@mjasikowski
Copy link
Contributor

Thanks @yuwenmemon and @RachCHopkins, I'll see where this is coming from and try to diagnose it.

@melvin-bot melvin-bot bot added the Overdue label May 12, 2025
@mjasikowski mjasikowski added Daily KSv2 and removed Hourly KSv2 labels May 12, 2025
@melvin-bot melvin-bot bot removed the Overdue label May 12, 2025
@mjasikowski
Copy link
Contributor

Slack discussion here: https://expensify.slack.com/archives/C01GTK53T8Q/p1746998011277749?thread_ts=1746697332.715449&cid=C01GTK53T8Q

The gist of this issue is: you shouldn't be able to delete the default approver without it auto-updating to the billing owner.

Since it's a front-end thing, I'm marking this issue as external.

@mjasikowski mjasikowski added the External Added to denote the issue can be worked on by a contributor label May 12, 2025
Copy link

melvin-bot bot commented May 12, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021921856170250657164

@melvin-bot melvin-bot bot changed the title Workspace - Error message appears when delete approver [$250] Workspace - Error message appears when delete approver May 12, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 12, 2025
Copy link

melvin-bot bot commented May 12, 2025

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@LorenzoBloedow
Copy link
Contributor

Unable to reproduce except for one time but I was offline and got an extra error too.
Tried many variations of old and new accounts including choosing different onboarding options.
Something might be missing in the repro steps. Maybe a prerequisite?

@huult
Copy link
Contributor

huult commented May 13, 2025

I can't reproduce this issue

@IuliiaHerets
Copy link

Tester can't reproduce the issue either in v9.1.45-7

Recording.5473.mp4

@mjasikowski
Copy link
Contributor

@RachCHopkins is it good to close then?

@melvin-bot melvin-bot bot added the Overdue label May 14, 2025
@mjasikowski
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 14, 2025
@RachCHopkins
Copy link
Contributor

Yes, I think so! Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

8 participants