Skip to content

[Due for payment 2025-10-28] [$250] Expense - Remove hold option is missing in More menu #68723

Closed

Description

@jponikarchuk

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.1.96-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: #68317
Email or phone of affected tester (no customers): sdjonisjdosdjsoi@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit an expense.
  4. Open the expense preview.
  5. Click More > Hold.
  6. Enter reason and save it.
  7. Click More > Submit.
  8. Go back to main workspace chat.
  9. Right click on the expense.
    → Remove hold is shown in the menu.
  10. Open the expense report.
  11. Click More.

Expected Result:

Remove hold option will be available in More menu.

Actual Result:

Remove hold option is not present in More menu.

Approver has no way to remove hold without approving the report unless they remove hold via context menu in main chat.

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

1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021960889191897776946
  • Upwork Job ID: 1960889191897776946
  • Last Price Increase: 2025-09-11
  • Automatic offers:
    • daledah | Contributor | 108796487
Issue OwnerCurrent Issue Owner: @strepanier03

Activity

  1. added
    Daily
    Bug
    on Aug 19, 2025
  2. melvin-bot commented on Aug 19, 2025

    @melvin-bot

    Triggered auto assignment to @strepanier03 (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.

  3. daledah commented on Aug 19, 2025

    @daledah
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-09-05 06:54:11 UTC.

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Remove hold option is not present in More menu.

    What is the root cause of that problem?

    We are prioritizing Approve button over Remove hold for approvers/admins

    if (isApproveAction(report, reportTransactions, policy)) {
    return CONST.REPORT.PRIMARY_ACTIONS.APPROVE;
    }
    if (isRemoveHoldAction(report, chatReport, reportTransactions) || isPayActionWithAllExpensesHeld) {
    return CONST.REPORT.PRIMARY_ACTIONS.REMOVE_HOLD;
    }

    What changes do you think we should make in order to solve the problem?

    We should pass primaryAction to the isRemoveHoldAction function like we did with submit action here

    if (isSubmitAction(report, reportTransactions, policy, reportNameValuePairs, reportActions, isChatReportArchived, primaryAction)) {
    options.push(CONST.REPORT.SECONDARY_ACTIONS.SUBMIT);
    }

    if (isRemoveHoldAction(report, chatReport, reportTransactions, reportActions, policy)) {
    options.push(CONST.REPORT.SECONDARY_ACTIONS.REMOVE_HOLD);
    }

    Then update the logic return true if the primary action is not a remove hold action

        const isOnHoldAndNotShowInPrimaryAction = primaryAction !== CONST.REPORT.PRIMARY_ACTIONS.REMOVE_HOLD
    
        if (isHolder) {
            return isOnHoldAndNotShowInPrimaryAction;
        }
    

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    We can add the new test for the getSecondaryAction function here to cover this screnario

    describe('getSecondaryAction', () => {
    beforeAll(() => {
    Onyx.init({
    keys: ONYXKEYS,
    });
    });

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  4. melvin-bot commented on Aug 22, 2025

    @melvin-bot

    @strepanier03 Whoops! This issue is 2 days overdue. Let's get this updated quick!

  5. melvin-bot commented on Aug 26, 2025

    @melvin-bot

    @strepanier03 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  6. added
    External
    on Aug 28, 2025
  7. changed the title [-]Expense - Remove hold option is missing in More menu[/-] [+][$250] Expense - Remove hold option is missing in More menu[/+] on Aug 28, 2025
  8. melvin-bot commented on Aug 28, 2025

    @melvin-bot
  9. added
    Help Wanted
    on Aug 28, 2025
  10. melvin-bot commented on Aug 28, 2025

    @melvin-bot

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

  11. 33 remaining items

  12. added
    Awaiting Payment
    on Oct 21, 2025
  13. changed the title [-][$250] Expense - Remove hold option is missing in More menu[/-] [+][Due for payment 2025-10-28] [$250] Expense - Remove hold option is missing in More menu[/+] on Oct 21, 2025
  14. removed
    Reviewing
    on Oct 21, 2025
  15. melvin-bot commented on Oct 21, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  16. melvin-bot commented on Oct 21, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.34-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-10-28. 🎊

    For reference, here are some details about the assignees on this issue:

  17. melvin-bot commented on Oct 21, 2025

    @melvin-bot

    @getusha @strepanier03 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  18. added
    Daily
    and removed
    Weekly
    on Oct 27, 2025
  19. strepanier03 commented on Oct 29, 2025

    @strepanier03
    Contributor

    Payment summary

  20. getusha commented on Oct 31, 2025

    @getusha
    Contributor

    BugZero Checklist:

    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: https://github.com/Expensify/App/pull/65805/files#r2482211476

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: N/a

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
      Yes.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Test:

    1. Create an expense
    2. Open expense report
    3. Click More -> Hold
    4. Enter reason and hold the expense
    5. Click More -> Submit
    6. Click More
    7. Verify that: "Remove hold" option is shown in More menu.

    Do we agree 👍 or 👎

  21. strepanier03 commented on Oct 31, 2025

    @strepanier03
    Contributor

    Thanks @getusha - I've removed the hold from the payment summary.

  22. quinthar commented on Nov 19, 2025

    @quinthar
    Contributor

    Approved $250 to @getusha

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions