Skip to content

[Payment due 2025-09-22] [$250] Moved expense shows the "hold" message #69861

Closed

Description

@m-natarajan

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.2.1-12
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @VickyStash
Slack conversation (hyperlinked to channel name): #Open source

Action Performed:

  1. Login with the new account.
  2. Create a workspace.
  3. In the workspace chat create 2 expenses and 1 additional report
  4. Open any 1-1 chat and create 2 expenses as well
  5. Go to Reports tab -> Reports
  6. Using checkboxes select the expense from 1-1 chat and put in on hold.
  7. Using checkboxes select the expense from workspace chat and Move it to the empty report from step 3.
  8. Go back to the chats tab to the workspace chat. See that the expense was moved successfully.

Expected Result:

Moved expense shouldn't have "This expense was put on hold." message

Actual Result:

Moved expense has "This expense was put on hold." message. It disappears if I open the expense and go back

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
bug-example-hold-message.mp4
Image

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021970188748148331185
  • Upwork Job ID: 1970188748148331185
  • Last Price Increase: 2025-09-22
  • Automatic offers:
    • thelullabyy | Contributor | 108866166

Activity

  1. added
    Daily
    Bug
    on Sep 4, 2025
  2. melvin-bot commented on Sep 4, 2025

    @melvin-bot

    Triggered auto assignment to @garrettmknight (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. thelullabyy commented on Sep 4, 2025

    @thelullabyy
    Contributor

    Proposal

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

    Moved expense shows the "hold" violation message

    What is the root cause of that problem?

    When moving transaction, we attempt to retrieve their violation data via the following logic:

    // 2. Calculate transaction violations if moving transaction to a workspace
    if (isPaidGroupPolicy(policy) && policy?.id) {
    const violationData = ViolationsUtils.getViolationsOnyxData(transaction, allTransactionViolations, policy, policyTagList, policyCategories, policyHasDependentTags, false);

    However, this code incorrectly uses the most recently updated allTransactionViolations value, rather than the specific violations related to the transactions being added. As a result, stale or unrelated violations are merged into the transactions.

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

    Instead of relying on allTransactionViolations, we should fetch the violations relevant to each transaction individually using this pattern:

                const currentTransactionViolations = allTransactionViolation?.[`${ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS}${transaction.transactionID}`] ?? [];

    This ensures that only the correct violation data for each transaction is shown during the preview.

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

    NA

    What alternative solutions did you explore? (Optional)

  4. removed their assignment
    on Sep 5, 2025
  5. added
    External
    on Sep 5, 2025
  6. melvin-bot commented on Sep 5, 2025

    @melvin-bot

    Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

  7. added
    Help Wanted
    on Sep 5, 2025
  8. melvin-bot commented on Sep 5, 2025

    @melvin-bot

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

  9. self-assigned this
    on Sep 5, 2025
  10. 30 remaining items

  11. added
    External
    and removed
    External
    on Sep 22, 2025
  12. melvin-bot commented on Sep 22, 2025

    @melvin-bot
  13. added
    Help Wanted
    on Sep 22, 2025
  14. melvin-bot commented on Sep 22, 2025

    @melvin-bot

    Current assignee @akinwale is eligible for the External assigner, not assigning anyone new.

  15. removed
    Help Wanted
    on Sep 22, 2025
  16. melvin-bot commented on Sep 22, 2025

    @melvin-bot

    📣 @thelullabyy 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job
    Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
    Keep in mind: Code of Conduct | Contributing 📖

  17. garrettmknight commented on Sep 22, 2025

    @garrettmknight
    Contributor

    Payment summary:

  18. thelullabyy commented on Sep 23, 2025

    @thelullabyy
    Contributor

    @garrettmknight I've accepted it. Thanks

  19. garrettmknight commented on Sep 23, 2025

    @garrettmknight
    Contributor

    Paid!

  20. trjExpensify commented on Sep 24, 2025

    @trjExpensify
    Contributor

    Confirming the payment summary is correct, per here.

  21. garrettmknight commented on Sep 24, 2025

    @garrettmknight
    Contributor

    $125 approved for @akinwale

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

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions