Skip to content

[HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly #26028

Closed

Description

@kbecciv

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


Action Performed:

  1. Open any chat and request money
  2. Open the IOU report room
  3. Now open the cash amount page for the request in the first step

Expected Result:

The main chat header shouldn't appear in the cash amount page

Actual Result:

Opening The cash amount page for the first time display the main chat header briefly

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: Dev 1.3.57-5
Reproducible in staging?: no
Reproducible in production?: no
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
Notes/Photos/Videos: Any additional supporting documentation

Screencast.from.27-08-23.02_32_13.webm

Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692982304284909

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a33c6eac44f5e9b0
  • Upwork Job ID: 1696203362140925952
  • Last Price Increase: 2023-08-28
  • Automatic offers:
    • alitoshmatov | Contributor | 26373113
    • Ahmed-Abdella | Reporter | 26373116

Activity

  1. added
    Daily
    Needs Reproduction
    Bug
    on Aug 27, 2023
  2. melvin-bot commented on Aug 27, 2023

    @melvin-bot

    Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Aug 27, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. Ahmed-Abdella commented on Aug 27, 2023

    @Ahmed-Abdella
    Contributor

    @jliexpensify I can reproduce this only on dev, may be a deploy blocker

  5. alitoshmatov commented on Aug 27, 2023

    @alitoshmatov
    Contributor

    Proposal

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

    Web - IOU - Opening The cash amount page for the first time display the main chat header briefly

    What is the root cause of that problem?

    When optimistic thread report is created for transaction action, it is lacking parentReportID which is used to determine if report is money request action. This is because ReportUtils.buildTransactionThread function is receiving action object which does not have reportID(this is because by report action item does not have reportID field in Onyx, but rather is nested inside reportActions_${reportID}).

    const thread = ReportUtils.buildTransactionThread(action);

    But this function is trying to access reportID to set parentReportID of newly build report.

    reportAction.reportID,

    Thus resulting in optimistic report which does not have parentReportID and this report is treated as normal report and showing chat header.

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

    We can modify buildTransactionThread to accept reportID as second argument, and pass it when we use the function.
    const thread = ReportUtils.buildTransactionThread(action, chatReportID);
    Also apply this changes here too:

    const thread = ReportUtils.buildTransactionThread(reportAction);

    What alternative solutions did you explore? (Optional)

    Also we can modify here to inject reportID field and value to each report action item making it available for further uses

    selector: ReportActionsUtils.getSortedReportActionsForDisplay,

  6. alitoshmatov commented on Aug 27, 2023

    @alitoshmatov
    Contributor

    I think this is regression of #25429 since the issue caused by introduction of ReportUtils.buildTransactionThread function

  7. jliexpensify commented on Aug 27, 2023

    @jliexpensify
    Contributor

    Thanks @alitoshmatov and @Ahmed-Abdella - I've assigned @rushatgabhane and @grgia to look into this one!

  8. changed the title [-]Dev: Web - IOU - Opening The cash amount page for the first time display the main chat header briefly[/-] [+][REGRESSION?] Dev: Web - IOU - Opening The cash amount page for the first time display the main chat header briefly[/+] on Aug 27, 2023
  9. grgia commented on Aug 28, 2023

    @grgia
    Contributor

    since the issue caused by introduction of ReportUtils.buildTransactionThread function

    @mountiny since you worked on this function, would you want to look into this regression?

  10. mountiny commented on Aug 28, 2023

    @mountiny
    Contributor

    @alitoshmatov Thanks! I think your solution makes sense, are you able to work on it now?

  11. 46 remaining items

  12. changed the title [-][HOLD for payment 2023-09-07] [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly[/-] [+][HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly[/+] on Aug 31, 2023
  13. luacmartins commented on Aug 31, 2023

    @luacmartins
    Contributor

    @jliexpensify coming from this comment, I updated the OP to reflect the first Slack report of this bug. This means that the bug report bonus should go to @ayazhussain79 (sorry @Ahmed-Abdella!). Do we also need to update the Upwork offer?

  14. Ahmed-Abdella commented on Aug 31, 2023

    @Ahmed-Abdella
    Contributor

    @jliexpensify canceled my offer and @ayazhussain79 got it. Everything is done
    @luacmartins

  15. jliexpensify commented on Aug 31, 2023

    @jliexpensify
    Contributor
  16. added
    Daily
    and removed
    Weekly
    on Sep 5, 2023
  17. rushatgabhane commented on Sep 5, 2023

    @rushatgabhane
    Member
    1. The PR that introduced the bug has been identified. Link to the PR: Add edit request button to the report action context menu #25429

    2. 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/25429/files#r1316327376

    3. A discussion in #expensify-bugs 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. Part of checklist

    4. Determine if we should create a regression test for this bug. No

    5. If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again - N.A.

  18. jliexpensify commented on Sep 6, 2023

    @jliexpensify
    Contributor
  19. jliexpensify commented on Sep 7, 2023

    @jliexpensify
    Contributor

    Paid Alisher, @ayazhussain79 please accept the invite and I can sort you out. Cheers!

  20. changed the title [-][HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly[/-] [+][PAY SYED] [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly[/+] on Sep 7, 2023
  21. ayazhussain79 commented on Sep 7, 2023

    @ayazhussain79
    Contributor

    @jliexpensify Offer accepted. Thank you!

  22. jliexpensify commented on Sep 7, 2023

    @jliexpensify
    Contributor

    Everyone paid, job closed!

  23. JmillsExpensify commented on Oct 7, 2023

    @JmillsExpensify
    Contributor

    $750 payment approved for @rushatgabhane based on BZ summary.

  24. changed the title [-][PAY SYED] [HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly[/-] [+][HOLD for payment 2023-09-06] [$500] Web - IOU - Opening The cash amount page for the first time display the main chat header briefly[/+] on Oct 8, 2023
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