Skip to content

[Due for payment 2025-02-13] [$250] Track - Nothing happens when clicking on tracking options on unreported expense created on OD #54726

Closed

Description

@IuliiaHerets

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.0.80-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: Exp https://expensify.testrail.io/index.php?/tests/view/5394360
Email or phone of affected tester (no customers): applausetester+394034@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.expensify.com
  2. Go to Expenses.
  3. Create an unreported expense (report is set to none).
  4. Log in to staging.new.expensify.com with the same account.
  5. Go to self DM.
  6. Click on the expense created on Old Dot.
  7. Click on the report header.
  8. Click on any tracking option.

Expected Result:

The tracking options should open the respective page.

Actual Result:

Nothing happens when clicking on tracking options on unreported expense created on Old Dot.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6704810_1735748348677.20250102_001513.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021876819875579426435
  • Upwork Job ID: 1876819875579426435
  • Last Price Increase: 2025-01-15
  • Automatic offers:
    • allgandalf | Reviewer | 105712803
    • nkdengineer | Contributor | 105712806
Issue OwnerCurrent Issue Owner: @anmurali

Activity

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

    @melvin-bot

    Triggered auto assignment to @anmurali (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. nkdengineer commented on Jan 2, 2025

    @nkdengineer
    Contributor

    Proposal

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

    Nothing happens when clicking on tracking options on unreported expense created on Old Dot.

    What is the root cause of that problem?

    When we create a track expense in OldDot, there's no whisper action

    const actionableWhisperReportActionID = whisperAction?.reportActionID;

    Then it returns early here because reportActionID is undefined.

    App/src/libs/ReportUtils.ts

    Lines 8261 to 8263 in 754817d

    if (!transactionID || !reportID || !reportActionID) {
    return;
    }

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

    We should not return early here if reportActionID is undefined.

    App/src/libs/ReportUtils.ts

    Lines 8261 to 8263 in 754817d

    if (!transactionID || !reportID || !reportActionID) {
    return;
    }

    In trackExpense function we should also not return early if actionableWhisperReportActionID is undefined

    App/src/libs/actions/IOU.ts

    Lines 4057 to 4059 in 754817d

    if (!linkedTrackedExpenseReportAction || !actionableWhisperReportActionID || !linkedTrackedExpenseReportID) {
    return;
    }

    App/src/libs/actions/IOU.ts

    Lines 4100 to 4102 in 754817d

    if (!linkedTrackedExpenseReportAction || !actionableWhisperReportActionID || !linkedTrackedExpenseReportID) {
    return;
    }

    We need to update the actionableWhisperReportActionID here to string | undefined and do some cleanup if actionableWhisperReportActionID is undefined. I tested and it works well in the case actionableWhisperReportActionIDis undefined

    actionableWhisperReportActionID: string;

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

    None

    What alternative solutions did you explore? (Optional)

    We can return early here if actionableWhisperReportActionID is undefined then the track expense options aren't shown if we cannot do this.

    const whisperAction = ReportActionsUtils.getTrackExpenseActionableWhisper(iouTransactionID, moneyRequestReport?.reportID);
    const actionableWhisperReportActionID = whisperAction?.reportActionID;

    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 Jan 7, 2025

    @melvin-bot

    @anmurali Huh... This is 4 days overdue. Who can take care of this?

  5. added
    External
    on Jan 8, 2025
  6. changed the title [-]Track - Nothing happens when clicking on tracking options on unreported expense created on OD[/-] [+][$250] Track - Nothing happens when clicking on tracking options on unreported expense created on OD[/+] on Jan 8, 2025
  7. melvin-bot commented on Jan 8, 2025

    @melvin-bot
  8. added
    Help Wanted
    on Jan 8, 2025
  9. melvin-bot commented on Jan 8, 2025

    @melvin-bot

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

  10. 35 remaining items

  11. allgandalf commented on Feb 17, 2025

    @allgandalf
    Contributor

    I'll update this tomorrow morning, finding the exact offending PR for this issue

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [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/54247/files#r1961017146

    • [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.

    • [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

    Precondition:

    • N/A

    Test:

    1. Go to expensify.com > Go to Expenses > Create an unreported expense (report is set to none).
    2. Log in to the New Dot with the same account > Go to self DM.
    3. Click on the expense created on Old Dot.
    4. Click on the report header. > Click on any tracking option.

    Verify that: The tracking options should open the respective page.

    Do we agree 👍 or 👎

  12. melvin-bot commented on Feb 18, 2025

    @melvin-bot

    @francoisl, @anmurali, @allgandalf, @nkdengineer Eep! 4 days overdue now. Issues have feelings too...

  13. allgandalf commented on Feb 19, 2025

    @allgandalf
    Contributor

    Updated the checklist @mallenexpensify , all yours 🙇

  14. melvin-bot commented on Feb 20, 2025

    @melvin-bot

    @francoisl, @anmurali, @allgandalf, @nkdengineer 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  15. allgandalf commented on Feb 20, 2025

    @allgandalf
    Contributor

    @anmurali can you pay this one since @mallenexpensify is OoO

  16. allgandalf commented on Feb 21, 2025

    @allgandalf
    Contributor

    friendly bump @anmurali 😄

  17. melvin-bot commented on Feb 24, 2025

    @melvin-bot

    @francoisl, @anmurali, @allgandalf, @nkdengineer 10 days overdue. Is anyone even seeing these? Hello?

  18. allgandalf commented on Feb 24, 2025

    @allgandalf
    Contributor

    asked for payment here

  19. mallenexpensify commented on Feb 26, 2025

    @mallenexpensify
    Contributor

    Contributor: @nkdengineer paid $125 via Upwork
    Contributor+: @allgandalf paid $125 via Upwork

    Both the above where originally paid $250 then refunded $125.

    Test case

    Thanks @allgandalf and @nkdengineer , apologies for the delayed payment

  20. mallenexpensify commented on Feb 26, 2025

    @mallenexpensify
    Contributor

    D'oh, just remembered there was a regression, cc @techievivek who pointed out here
    #56307 (comment)

    @nkdengineer and @allgandalf , I just requested a refund of $125, can you both please comment once you've OK'd the refund? Thx

  21. nkdengineer commented on Feb 27, 2025

    @nkdengineer
    Contributor

    @mallenexpensify Done from me!

  22. mallenexpensify commented on Feb 28, 2025

    @mallenexpensify
    Contributor

    Refunds received from both @nkdengineer and @allgandalf . Thx!

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