-
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] Stop doing a full report load + Auth call for any thread reports returned by GetChats
#39225
Comments
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext. |
Ok I see this get called once: https://github.com/Expensify/Web-Expensify/blob/fae68e50dd8e05bd948d194a7bf27b2da781eab2/lib/ReportAPI.php#L6762 And then a lot of report actions getting instantiated which trigger a full load of the report... Explanation of that code: If one of the reports returned has a parentReportAction (a.k.a. it is a thread) then we call:
Which does a full report load right here: https://github.com/Expensify/Web-Expensify/blob/1e7d277cc54f26e554a7e3ea57bfc7f224a7b0d6/lib/ReportUtils.php#L3489 Gonna add some logs because there are not many (and maybe I missed what the problem really is - but seems right)... And also think of some way to stop this.... |
Job added to Upwork: https://www.upwork.com/jobs/~01d88324b92cfff3d0 |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @DylanDylann ( |
ReconnectApp
timeoutGetChats
Left a P/S here on how to get started on this. And also thinking that even with those changes (which would improve the performance) - we probably still need pagination since way too many reports are getting returned. |
Focusing on AddComment 1:1:1 changes this week. Will give this a look next week. |
Chatted with @quinthar and we're gonna close this one for now. Probably this improvement can be rolled into whatever issue we create for making |
Problem:
My app times out attempting
ReconnectApp
after loading 6000+ reports in 3 min, as discussed here.One observation is that that we are returning many "thread reports" and then calling Auth once per report to load it so we can build the report action object.
Solution:
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: