Skip to content

[$175] Workflow-Approver still routed to workflow rule after deleting the rule offline #108620

Todo

Description

@applause-bot

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:

  1. [Owner] go to workspace -> workflow -> add approval workflow
  2. [Owner] set the workflow rule where employee submit to approver 1 then to approver 2
  3. [Employee] Create an expense & submit it
  4. [Employee] open the expense details and click on "waiting for ... to approve expenses" and observe the history
  5. [Owner] Navigate to worklow -> approvals and go offline
  6. [Owner] Open the advanced workflow and delete the workflow rule
  7. [Employee] Create another expense and submit it
  8. [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

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7328949

Upwork Automation - Do Not Edit

Activity

  1. applause-bot commented on Dec 2, 2026

    @applause-bot
    Author

    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

  2. added
    Bug
    on Dec 2, 2026
  3. added
    External
    on Dec 2, 2026
  4. expensify-chore-bot commented on Dec 2, 2026

    @expensify-chore-bot

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

  5. changed the title [-]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[/+] on Dec 2, 2026
  6. expensify-chore-bot commented on Dec 2, 2026

    @expensify-chore-bot
  7. MelvinBot commented on Dec 2, 2026

    @MelvinBot
    Contributor

    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:

    1. Keep the owner offline after deletion. The employee should still use the previously synchronized workflow.
    2. Reconnect the owner and confirm the deletion succeeds and reaches the employee’s session.
    3. Create and submit a new employee report. It should follow the configured default workflow—not necessarily the owner unless the owner is the default approver.

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions