-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-05-09] [HOLD for payment 2024-05-08] HIGH: [API Reliability] [$250] Multiple calls to OpenReport
on signin
#39673
Comments
Triggered auto assignment to @muttmuure ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.There are 2 duplicate OpenReport request when opening a report for the first time, for example after sign in. What is the root cause of that problem?The first OpenReport is called when ReportScreen is mounted ( App/src/pages/home/ReportScreen.tsx Lines 434 to 438 in f150229
The second OpenReport is called when ReportActionsView is also mounted ( App/src/pages/home/report/ReportActionsView.tsx Lines 238 to 245 in f150229
Both App/src/pages/home/report/ReportActionsView.tsx Lines 114 to 116 in f150229
If App/src/pages/home/ReportScreen.tsx Lines 399 to 404 in f150229
but App/src/pages/home/report/ReportActionsView.tsx Lines 113 to 119 in f150229
What changes do you think we should make in order to solve the problem?First, don't call We can do that by removing this condition. App/src/pages/home/ReportScreen.tsx Lines 421 to 423 in 90412ec
|
@muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~0138cc8ab53b98e8c0 |
Adding external |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Checking now |
@bernhardoj I understand both ReportScreen.tsx and ReportActionsView.tsx component mount has OpenReport has in it. I support removing the openReport call inside |
I mentioned here that ReportScreen won't call OpenReport if the report object already exists. There is also a App/src/pages/home/ReportScreen.tsx Lines 712 to 715 in 568921f
|
@bernhardoj If I disble ReportActionsView OpenReport API call, there isn't any OpenReport API call not made when opening a report. Screen.Recording.2024-04-15.at.11.51.48.PM.mov |
@abdulrahuman5196, @muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@abdulrahuman5196 yep, that's why I propose to remove the existing report condition from the ReportScreen
I have updated my proposal to point out which code to remove |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@bernhardoj The PR has been reverted due to an issue. Kindly raise a another PR fixing the regression as well. |
@abdulrahuman5196 new PR is ready |
OpenReport
on signinOpenReport
on signin
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.69-2 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 2024-05-09. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Awaiting payment date |
@flodnv, @abdulrahuman5196, @muttmuure, @bernhardoj Eep! 4 days overdue now. Issues have feelings too... |
@muttmuure can we pay and close this? |
Automation has failed, I will create a payment in Upwork tomorrow |
@flodnv, @abdulrahuman5196, @muttmuure, @bernhardoj Huh... This is 4 days overdue. Who can take care of this? |
Paid |
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: 1.4.60-7
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: @quinthar
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1712180869292309
Action Performed:
Expected Result:
Only one
OpenReport
is called since I open it only onceActual Result:
It is called twice
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: