Skip to content

[Awaiting Checklist] [$250] Notifications -"Reimbursement was cancelled" instead of Cancelled the payment on notification #66020

Closed

Description

@mitarachim

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.80-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/6485626&group_by=cases:section_id&group_order=asc&group_id=295000
Email or phone of affected tester (no customers): ibellicotest+3001@gmail.com
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 (Hybrid App)
App Component: Notifications

Action Performed:

Prerequisite:
-Have two accounts opened on two different devices or environments.
-User A logs in on the Android app
-User B has at least one workspace with delayed submissions and approvals enabled.

  1. Open the Expensify app.
  2. Log in as User A
  3. As User B, invite User A as member of a workspace.
  4. As User A, open the new workspace.
  5. Create a manual expense.
  6. As User B, submit, approve and pay the expense.
  7. Open the just paid expense, and tap on "More"
  8. Tap on "Cancel Payment"
  9. As User A, wait until receiving notification showing the last action.
  10. Note that notifications shows "The reimbursement was cancelled" instead of "Cancelled the payment".
  11. Open notification.
  12. Note that system message on report shows "Cancelled the payment"

Expected Result:

Notification received when admin of workspace cancels a payment should display a "Cancelled the payment" message.

Actual Result:

Notification received when admin of workspace cancels a payment, displays a "The reimbursement was cancelled" message, instead of "Cancelled the payment". System message on report, shows the correct "Cancelled the payment" message.

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

Bug6885338_1752282052182.Reimbursement.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021944828203188143701
  • Upwork Job ID: 1944828203188143701
  • Last Price Increase: 2025-08-04
Issue OwnerCurrent Issue Owner: @MariaHCD

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jul 14, 2025
  2. melvin-bot commented on Jul 14, 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. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jul 14, 2025
  4. changed the title [-]Notifications -"Reimbursement was cancelled" instead of Cancelled the payment on notification[/-] [+][$250] Notifications -"Reimbursement was cancelled" instead of Cancelled the payment on notification[/+] on Jul 14, 2025
  5. melvin-bot commented on Jul 14, 2025

    @melvin-bot
  6. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jul 14, 2025
  7. melvin-bot commented on Jul 14, 2025

    @melvin-bot

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

  8. mkzie2 commented on Jul 15, 2025

    @mkzie2
    Contributor

    Proposal

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

    Notification received when admin of workspace cancels a payment, displays a "The reimbursement was cancelled" message, instead of "Cancelled the payment". System message on report, shows the correct "Cancelled the payment" message.

    What is the root cause of that problem?

    The notification's message is displayed is the message?.[0].text of the action (The reimbursement was cancelled)

    String message = alert != null ? alert : messageData.get("message").getList().get(0).getMap().get("text").getString();

    While in the App, we displayed a custom text is Cancelled the payment

    return translateLocal('iou.adminCanceledRequest', {manager: payerOrApproverName, amount: formattedAmount});

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

    The backend should update the message text of REIMBURSEMENTDEQUEUED action to cancelled the payment and we also need to update this in the optimistic data here to align with the backend data.

    message: [

    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)

    We can verify if the action is REIMBURSEMENTDEQUEUED and customise the notification's message to match the one displayed on the report screen.

    String message = alert != null ? alert : messageData.get("message").getList().get(0).getMap().get("text").getString();

    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.

  9. DylanDylann commented on Jul 18, 2025

    @DylanDylann
    Contributor

    @mkzie2's proposal looks fine to me. They pointed out the correct RCA and suggested a good solution.

    In my opinion, the BE fix is sufficient for this issue. However, aligning the optimistic data is also not a bad idea. It will help our optimistic data appear more accurate. I’ll leave it up to the internal engineer to decide whether we should update the optimistic data.

    🎀👀🎀 C+ reviewed

  10. melvin-bot commented on Jul 18, 2025

    @melvin-bot

    Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  11. 43 remaining items

  12. DylanDylann commented on Sep 9, 2025

    @DylanDylann
    Contributor

    @garrettmknight Could you help process payment to me for reviewing #68138? And then we are good to close this issue

  13. garrettmknight commented on Sep 10, 2025

    @garrettmknight
    Contributor

    @DylanDylann can do - can you complete the checklist as the reviewer?

  14. garrettmknight commented on Sep 10, 2025

    @garrettmknight
    Contributor

    Payment Summary:

  15. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed
    ReviewingHas a PR in review
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 10, 2025
  16. changed the title [-][$250] Notifications -"Reimbursement was cancelled" instead of Cancelled the payment on notification[/-] [+][Awaiting Checklist] [$250] Notifications -"Reimbursement was cancelled" instead of Cancelled the payment on notification[/+] on Sep 10, 2025
  17. DylanDylann commented on Sep 10, 2025

    @DylanDylann
    Contributor

    I think we don'tt need the checklist in this issue, we only remove the redundant logic

  18. garrettmknight commented on Sep 10, 2025

    @garrettmknight
    Contributor

    Request when you're ready then!

  19. trjExpensify commented on Oct 29, 2025

    @trjExpensify
    Contributor

    Confirming payment summary here is accurate: #66020 (comment)

  20. garrettmknight commented on Oct 29, 2025

    @garrettmknight
    Contributor

    $250 approved for @DylanDylann

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions