You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[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
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
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
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}).
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:
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
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
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
Determine if we should create a regression test for this bug. No
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.
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
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
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
Activity
melvin-bot commentedon Aug 27, 2023
Triggered auto assignment to @jliexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Aug 27, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)Ahmed-Abdella commentedon Aug 27, 2023
@jliexpensify I can reproduce this only on dev, may be a deploy blocker
alitoshmatov commentedon Aug 27, 2023
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
parentReportIDwhich is used to determine if report is money request action. This is becauseReportUtils.buildTransactionThreadfunction is receiving action object which does not havereportID(this is because by report action item does not havereportIDfield in Onyx, but rather is nested insidereportActions_${reportID}).App/src/components/ReportActionItem/MoneyRequestAction.js
Line 103 in 0b1cb95
But this function is trying to access
reportIDto setparentReportIDof newly build report.App/src/libs/ReportUtils.js
Line 2519 in d734365
Thus resulting in optimistic report which does not have
parentReportIDand 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
buildTransactionThreadto acceptreportIDas second argument, and pass it when we use the function.const thread = ReportUtils.buildTransactionThread(action, chatReportID);Also apply this changes here too:
App/src/pages/home/report/ContextMenu/ContextMenuActions.js
Line 287 in 6c8292c
What alternative solutions did you explore? (Optional)
Also we can modify here to inject
reportIDfield and value to each report action item making it available for further usesApp/src/pages/home/ReportScreen.js
Line 403 in c16a75b
alitoshmatov commentedon Aug 27, 2023
I think this is regression of #25429 since the issue caused by introduction of
ReportUtils.buildTransactionThreadfunctionjliexpensify commentedon Aug 27, 2023
Thanks @alitoshmatov and @Ahmed-Abdella - I've assigned @rushatgabhane and @grgia to look into this one!
[-]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[/+]grgia commentedon Aug 28, 2023
@mountiny since you worked on this function, would you want to look into this regression?
mountiny commentedon Aug 28, 2023
@alitoshmatov Thanks! I think your solution makes sense, are you able to work on it now?
46 remaining items
[-][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[/+]luacmartins commentedon Aug 31, 2023
@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?
Ahmed-Abdella commentedon Aug 31, 2023
@jliexpensify canceled my offer and @ayazhussain79 got it. Everything is done
@luacmartins
jliexpensify commentedon Aug 31, 2023
Yep, we are good to go here on the 6th!
rushatgabhane commentedon Sep 5, 2023
The PR that introduced the bug has been identified. Link to the PR: Add edit request button to the report action context menu #25429
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
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
Determine if we should create a regression test for this bug. No
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.
jliexpensify commentedon Sep 6, 2023
Sweet, payment summary here for J.Mills
jliexpensify commentedon Sep 7, 2023
Paid Alisher, @ayazhussain79 please accept the invite and I can sort you out. Cheers!
[-][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[/+]ayazhussain79 commentedon Sep 7, 2023
@jliexpensify Offer accepted. Thank you!
jliexpensify commentedon Sep 7, 2023
Everyone paid, job closed!
JmillsExpensify commentedon Oct 7, 2023
$750 payment approved for @rushatgabhane based on BZ summary.
[-][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[/+]