Skip to content

[$250] Reports - Expense report opens when individual expense row is clicked #61321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
8 tasks done
jponikarchuk opened this issue May 2, 2025 · 13 comments
Open
8 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@jponikarchuk
Copy link

jponikarchuk commented May 2, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.1.39-2
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
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Account has self DM.
  1. Go to staging.new.expensify.com
  2. Go to self DM.
  3. Track a manual expense in self DM.
  4. Click Share it with my accountant from actionable whisper.
  5. Click New workspace if account has existing workspace.
  6. Enter merchant and click Create expense.
  7. On workspace chat, submit another expense via + menu.
  8. Click Submit on the expense preview.
  9. Go to Reports.
  10. Click one of the expenses.

Expected Result:

The transaction thread of the selected expense will open.

Actual Result:

The expense report opens instead, when the individual expense is clicked.

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

Bug6819407_1746180003933.20250502_175351.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021918344113541720120
  • Upwork Job ID: 1918344113541720120
  • Last Price Increase: 2025-05-02
Issue OwnerCurrent Issue Owner: @c3024
@jponikarchuk jponikarchuk added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels May 2, 2025
Copy link

melvin-bot bot commented May 2, 2025

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

@sakluger sakluger moved this to Bugs and Follow Up Issues in #expensify-bugs May 2, 2025
@sakluger sakluger added the External Added to denote the issue can be worked on by a contributor label May 2, 2025
@sakluger sakluger removed their assignment May 2, 2025
@melvin-bot melvin-bot bot changed the title Reports - Expense report opens when individual expense row is clicked [$250] Reports - Expense report opens when individual expense row is clicked May 2, 2025
Copy link

melvin-bot bot commented May 2, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021918344113541720120

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 2, 2025
@sakluger sakluger removed Help Wanted Apply this label when an issue is open to proposals by contributors Bug Something is broken. Auto assigns a BugZero manager. labels May 2, 2025
Copy link

melvin-bot bot commented May 2, 2025

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

@sakluger sakluger added the Bug Something is broken. Auto assigns a BugZero manager. label May 2, 2025
Copy link

melvin-bot bot commented May 2, 2025

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

@sakluger sakluger self-assigned this May 2, 2025
@sakluger
Copy link
Contributor

sakluger commented May 2, 2025

I will be OOO from May 5 - 16, so I have added another BZ member to watch over the issue while I'm out.

@dmkt9
Copy link
Contributor

dmkt9 commented May 3, 2025

Proposal

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

The expense report opens instead, when the individual expense is clicked.

What is the root cause of that problem?

  • The report is opened using a reportID derived here::
    let reportID =
    isTransactionItem && (!item.isFromOneTransactionReport || isFromSelfDM) && item.transactionThreadReportID !== CONST.REPORT.UNREPORTED_REPORT_ID
    ? item.transactionThreadReportID
    : item.reportID;
  • Two reports share the same reportID and have isFromOneTransactionReport=true (a backend bug, maybe). This causes conflicts, as both reports resolve to the same ID.

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

  • Remove the item.isFromOneTransactionReport condition, as transactionThreadReportID is guaranteed to be unique. This aligns with existing logic for openReportInRHP in Expense Reports:
let reportID =
    isTransactionItem && item.transactionThreadReportID !== CONST.REPORT.UNREPORTED_REPORT_ID
        ? item.transactionThreadReportID
        : item.reportID;

const openReportInRHP = (transactionItem: TransactionListItemType) => {
const backTo = Navigation.getActiveRoute();
Navigation.navigate(ROUTES.SEARCH_REPORT.getRoute({reportID: transactionItem.transactionThreadReportID, backTo}));
};

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

N/A

What alternative solutions did you explore? (Optional)

N/A
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.

@c3024
Copy link
Contributor

c3024 commented May 4, 2025

That check was specifically added in this PR to fix some issues. Removing it can bring them back. I think we should fix this from backend.

@c3024
Copy link
Contributor

c3024 commented May 8, 2025

@sakluger @RachCHopkins

This needs a fix from the backend. This needs to be internal.

@RachCHopkins RachCHopkins added the Internal Requires API changes or must be handled by Expensify staff label May 9, 2025
Copy link

melvin-bot bot commented May 13, 2025

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

@melvin-bot melvin-bot bot added the Overdue label May 13, 2025
Copy link

melvin-bot bot commented May 15, 2025

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

Copy link

melvin-bot bot commented May 16, 2025

@sakluger @RachCHopkins @c3024 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@RachCHopkins RachCHopkins removed their assignment May 19, 2025
@melvin-bot melvin-bot bot removed the Overdue label May 19, 2025
@sakluger
Copy link
Contributor

I just got back from OOO - I'm going to move this to weekly while I figure out prioritization and work on recruiting an engineer to fix it.

Copy link

melvin-bot bot commented May 22, 2025

@c3024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label May 22, 2025
@sakluger sakluger added Weekly KSv2 and removed Daily KSv2 labels May 27, 2025
@melvin-bot melvin-bot bot removed the Overdue label May 27, 2025
@sakluger sakluger removed the External Added to denote the issue can be worked on by a contributor label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

5 participants