-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-22] [$250] When starting a new chat via global create, we are calling OpenReport twice. #61285
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
Comments
Triggered auto assignment to @trjExpensify ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-05-03 04:01:13 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.When starting a new chat from new chat page, OpenReport is called twice. What is the root cause of that problem?When we select a user from the new chat page, we call the openReport. App/src/libs/actions/Report.ts Line 1341 in 62a49d2
Then, another openReport is called when the report screen is mounted. App/src/pages/home/ReportScreen.tsx Lines 533 to 539 in 62a49d2
What changes do you think we should make in order to solve the problem?First, in App/src/libs/actions/Report.ts Lines 1327 to 1341 in 62a49d2
This aligns the logic with opening a thread. App/src/libs/actions/Report.ts Lines 1384 to 1415 in 62a49d2
(we can apply the same fix to Opening an existing chat will now trigger 1 We can prevent that by skipping the App/src/pages/home/ReportScreen.tsx Lines 462 to 473 in 74b93b9
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can test calling |
Report so good @iwiznia, we open it twice. |
Job added to Upwork: https://www.upwork.com/jobs/~021918305693515707842 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 ( |
@bernhardoj Thanks for the proposal. While RCA makes sense, unfortunately the solution is incomplete, calling
|
Updated my proposal. |
Thanks for the update! @bernhardoj's updated proposed solution works now, eliminates second
Develop issueScreen.Recording.2025-05-03.at.12.54.08.mov☝ Given that this is a rare occurance and the existing account not being fetched seems to only happen on develop, I'd say let's move forward with the fix and perform further testing during PR phase. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
The develop issues sounds a bit worrying. We'll need to fully understand that before merging. But lets move forward with the proposed fix. |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @ikevin127 |
PR merged, awaiting deployment |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-05-22. 🎊 For reference, here are some details about the assignees on this issue:
|
@ikevin127 @trjExpensify @ikevin127 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal
Do we agree 👍 or 👎. |
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.38-3
Reproducible in staging?: Y
Reproducible in production?: Y
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
Expensify/Expensify Issue URL:
Issue reported by: @iwiznia
Slack conversation (hyperlinked to channel name): #Quality
Action Performed:
Expected Result:
Only one Open report call
Actual Result:
There are 2 OpenReport calls (the parameters are different, but the reportID is the same and we should not need 2 calls)
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Platforms Tested:
On which of our officially supported platforms was this issue tested:Screenshots/Videos
Add any screenshot/video evidence
Recording.1175.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: