-
Notifications
You must be signed in to change notification settings - Fork 3k
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
HIGH: [Reliability] [$250] Two OpenReports
when opening a room
#40221
Comments
OpenReports
and four GetNewerMessages
when opening a roomOpenReports
and four GetNewerMessages
when opening a room
Job added to Upwork: https://www.upwork.com/jobs/~011c68fdadf05c3556 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
OpenReports
and four GetNewerMessages
when opening a roomOpenReports
and four GetNewerMessages
when opening a room
I am checking this but one strange thing is , on development env, it just calls one Still investigating not to make |
Is this related or a dupe of #39674 (comment)? |
Here is what I found, App/src/pages/home/ReportScreen.tsx Lines 411 to 430 in 2d19c95
App/src/pages/home/ReportScreen.tsx Lines 390 to 392 in 2d19c95
App/src/pages/home/report/ReportActionsView.tsx Lines 113 to 119 in 2d19c95
Same App/src/pages/home/ReportScreen.tsx Lines 676 to 687 in 2d19c95
|
Let's reduce the scope of this issue to simply: "Two |
OpenReports
and four GetNewerMessages
when opening a roomOpenReports
when opening a room
The double OpenReport is the same issue as this one |
Looks like no |
Problem:
Room switching is very slow, including a lot of API calls that seem redundant or unnecessary. Our 1:1:1 principle isn't being followed. Switching to a new room makes:
OpenReport
(should make 1)GetNewerMessages
(should make zero, asOpenReport
should return what we need)It is doing 6 separate API calls, even though in theory it should only make one call to
OpenReport
.Solution:
Audit room opening to figure out why switching to a room does so many unnecessary API calls. Here's a list of the network connections from switching to the #exfy-roadmap room for the first time:
Here are the payloads:
OpenReport
#1:Response:
OpenReport
#2:Note: It doesn't have a
reportActionID
. Granted, the firstOpenReport
had it and it was blank, but it's the only difference.Response:
GetNewerMessages
(all are identical payloads)Response: (All identical, except for different
"requestID": "8747cf3479c42763-SEA"
.Bonus track:
Diagnose and fix why switching back to that same room in the future (ie, after it's already loaded) still calls:
GetNewerMessages
(it should be zero, and especially shouldn't call _beforeOpenReport
)OpenReport
(this is correct)Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: