Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.
Version Number: v9.5.55-4
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/tc/TC-95643
Email or phone of affected tester (no customers): leila.utest+expensify@gmail.com
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: Samsung Galaxy S26 Ultra/Android 17
App Component: Workspace Settings
Action Performed:
Preconditions
User is an Admin of a Control Workspace
At least one other member is added to the Workspace
Workflow / Approvals are enabled for the workspace
- Navigate to the Workspace chat
- Create a manual expense and submit it
- Open the newly created expense report
- Navigate to report details
- Click More > Change approver
- Select the workspace member as approver
- Navigate to Workspace Settings > [Workspace Name] > Members
- Locate the member who was just assigned as the approver
- Select the checkbox next to their name and click the 1 selected dropdown
- Click "Remove member"
- Click "Remove" on the modal
- Verify that an error message is displayed: "xxx has outstanding expense reports to approve. Please ask them to approve, or take control of their reports before removing them from the workspace"
Expected Result:
The assigned approver can't be removed, and the error message should be shown "xxx has outstanding expense reports to approve. Please ask them to approve, or take control of their reports before removing them from the workspace".
Actual Result:
The assigned approver can be removed, and the error message is not shown.
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome Safari
Screenshots/Videos
Bug7326566_1795872282107.mobizen_20261128_141025.mp4
Applause Internal Information
Exported by: Svetlana Lazutkina
Bug ID: 7326566
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022126734514051622790
- Upwork Job ID: 2126734514051622790
- Last Price Increase: 2026-11-28
Activity
applause-bot commentedon Nov 28, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/7de33411aad99fa7a5577723bf367fbb6539306b7a71dbd7be92298d8a736c71
expensify-chore-bot commentedon Nov 28, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dmkt9 (
External)[-]Android- Removing Member with Outstanding Approvals don't show the error[/-][+][$175] Android- Removing Member with Outstanding Approvals don't show the error[/+]expensify-chore-bot commentedon Nov 28, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022126734514051622790
MelvinBot commentedon Nov 28, 2026
🤖 Web test steps verification results:⚠️ partial
Investigation blocked on dev NewDot web: created a Control workspace, but no second-member identity was supplied. Issue 108263 was not reproduced or disproved.
Control workspace setup
Workspace overview showed “Plan type, Control”. This verified setup only.Approvals, expense submission, approver reassignment, and member removal
Runtime verification was blocked because no second member was available. No arbitrary address was invited.Proposal — code analysis (medium confidence)
What is the root cause of that problem?
The current frontend treats outstanding approvals as a reason to warn, not prohibit removal. It already detects report-specific approvers, selects a replacement warning, and proceeds with removal after confirmation: WorkspaceMembersPage.tsx:257–394. This explains why the App does not display the expected blocking message, but does not establish whether the backend accepted the reported removal or reassigned the report.
What changes should we make?
First confirm the intended behavior: block removal, or allow removal with reassignment. If blocking is required, both member-removal entry points need an outstanding-approval guard, regression coverage, and authoritative server validation. If removal is intended, verify that the pending report is reassigned correctly before changing the test expectation. No unconditional fix is verified yet.
What alternative explanations were explored?
This is not simply missing report-approver detection: that detection already exists. Existing WorkspaceMembersTest.tsx:568–642 explicitly supports warning-and-removal for workflow approvers, but does not establish correct handling of outstanding report-specific approvals. The helper also requires a qualifying nonarchived, processing report: ReportUtils.ts:14055–14075.
Remaining evidence: The deletion response and resulting report approver remain unknown. Production logs were unavailable, and the inspected checkout was not verified against the reported release.
Related issue: Workspace—Warning message not displayed when removing an approver concerns replacement-warning behavior, not the same outstanding-report blocking requirement.
Refresh persistence
Unverified: no removal was performed, and browser refresh was prohibited by the web-session rules.Next Steps for Contributor+ team: Confirm whether outstanding report approvers must be blocked or reassigned before accepting an implementation plan.
To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin’s analysis.
view run · view recording
yusufdeveloper2903 commentedon Nov 28, 2026
@dmkt9 Melvin's analysis leaves open whether a member who only approves a report through "Change approver" should be blocked or reassigned, but #98764 (same steps) already settled that: #101047 routes these members through
isApproverOfOutstandingPolicyReportsto the replace-with-owner warning, and its author told QA the expected behavior was changed to that warning:App/src/pages/workspace/WorkspaceMembersPage.tsx
Lines 259 to 267 in b122e8d
The video shows exactly that prompt ("we'll replace them in the approval workflow with ..., the workspace owner") before the removal, and step 11 of the regression test from the #98764 checklist expects it, while the
removeMemberPromptPendingApprovalcopy TC-95643 checks for has had no caller since #58345 dropped the frontend block. Unless that decision is being reversed, the App matches the agreed behavior and TC-95643 needs updating, not the code.Happy to put up a full proposal for this if that's useful.
sceptorfixit commentedon Nov 29, 2026
melvin-bot commentedon Nov 29, 2026
📣 @sceptorfixit! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
sceptorfixit commentedon Nov 30, 2026
melvin-bot commentedon Nov 30, 2026
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
samithreddychinni commentedon Nov 30, 2026
expensify-chore-bot commentedon Dec 1, 2026
@dmkt9 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!