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.57-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #108382
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: Windows 11 / Chrome, iPhone 13 / iOS 27.3 Beta, Samsung Galaxy A52 / Android 14
App Component: Workspace Settings
Action Performed:
Preconditions:
- Prepare 4 gmail accounts (WS owner, employee, approver 1, & approver 2)
- Owner create a workspace and invite 3 accounts above
Steps:
- [Owner] go to workspace -> workflow -> add approval workflow
- [Owner] set the workflow rule where employee submit to approver 1 then to approver 2
- [Employee] Create an expense & submit it
- [Employee] open the expense details and click on "waiting for ... to approve expenses" and observe the history
- [Owner] Navigate to worklow -> approvals and go offline
- [Owner] Open the advanced workflow and delete the workflow rule
- [Employee] Create another expense and submit it
- [Employee] open the expense details and click on "waiting for .... to approve expenses" and observe the history
Expected Result:
in step 8, the history & expense status should be routed to the workspace Owner since the workflow already offline deleted
Actual Result:
in step 8, the history & expense status stiil routed to approver set by advanced approval workflow like it hasn't deleted as in step 4,
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome Safari
Screenshots/Videos
Bug7328949_1796186363143.bandicam_2026-12-02_11-06-56-210.mp4
Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7328949
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022128017210440399602
- Upwork Job ID: 2128017210440399602
- Last Price Increase: 2026-12-02
Activity
applause-bot commentedon Dec 2, 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/f8bc2af702159c7100b65b8ab401f88f56a2e22eacb757e0a215851b2ffdda2b
expensify-chore-bot commentedon Dec 2, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @gijoe0295 (
External)[-]Workflow-Approver still routed to workflow rule after deleting the rule offline[/-][+][$175] Workflow-Approver still routed to workflow rule after deleting the rule offline[/+]expensify-chore-bot commentedon Dec 2, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022128017210440399602
MelvinBot commentedon Dec 2, 2026
Proposal
What is the root cause of that problem?
The written steps describe expected offline behavior, not a confirmed routing defect. The owner deletes the workflow while offline, then a separate employee submits an expense before any owner reconnection is stated. That deletion cannot affect the employee or server until it synchronizes.
Confidence: Medium — supported by code, but not independently reproduced.
Code evidence and alternative explanation checked
Therefore, the employee retaining the old approver before synchronization is consistent with the code. This does not establish a regression in the linked performance PR.
What changes do you think we should make in order to solve the problem?
No code change is justified yet. Clarify and repeat the test:
If step 3 still routes through the deleted rule, capture the deletion acknowledgement and subsequent submission timing; that would establish a different synchronization or routing defect.
What alternative solutions did you explore?
Filtering pending deletions from the grouped rules was considered, but routing already ignores them.
Related, not a confirmed duplicate: Workflow created from inviting a member reappears after deletion concerns deletion persistence rather than another account submitting before synchronization.
Next Steps for Contributor+ team:
Confirm whether the owner reconnected before the second submission; no implementation is recommended yet.
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/108620)to create a draft PR once a code fix is established.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
view run