-
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
Edit command is slow #13742
Comments
So it seems like we want to create a new Auth command, e.g. |
Yeah maybe... I am not that familiar with this flow, like why do we care about the most recent visible action? |
Maybe we don't need a new command and we can move that logic to |
The last 1 of |
Makes sense, I think in that case a new command is better. |
I'm going ooo until Jan 3, so I'll unassign myself in case someone else wants to work on this while I'm away. I have some draft PRs (Web-E and Auth), but they are far from being ready. If anyone picks this up, feel free to use/discard my draft PRs. If nobody picks this up, I'll come back to it in January! |
Thanks for the heads up! I'm trying to wrap my head around the importance of this. My initial sense is that it's importance for Expensify employees but not particularly important for WAQ. So we should solve it but it's not critically pressing. Does that sound right to others on this issue? |
Re-added the bug label so that we can get someone else on this over the holidays. And....that didn't work. Going with the engineering label instead. |
@sketchydroide Do you think you'll have time to help move this forward this week? Carlos has two draft PRs up as a starting point. |
Yeah, I can help with this, if I get stuck, I'll be sure to ask for help, but for now I think I understand the core of it |
Awesome, thanks! |
I've started work on it, kept the changes of Carlos, and working on top of the original PRs This is the one that used the lastReadSequenceNumber that I will not use, will use the timeStamp instead as per the new deprecate sequenceNumber doc. |
Thanks @iwiznia for the comments on the PR, will go through them today |
Auth PR is done, and I will put it for review tomorrow |
ok Auth PR is now ready for review |
Looks like we're still working through the linked Auth PR. |
It's under review, and there has been some comments on what can be improved, and some doubts poping up |
Auth PR seems to be close to being done with the comments |
Assigning Ionatan on this as he takes over the linked PR. |
@iwiznia, @JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Waiting for reviews |
@iwiznia, @JmillsExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@iwiznia, @JmillsExpensify Still overdue 6 days?! Let's take care of this! |
@iwiznia, @JmillsExpensify Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
Working on it, conflicts and people reusing a method I had killed delayed this a while, plus it will require waiting for an auth deploy. |
@iwiznia, @JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@iwiznia, @JmillsExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@iwiznia, @JmillsExpensify Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@iwiznia, @JmillsExpensify 10 days overdue. I'm getting more depressed than Marvin. |
Still in progress. Thanks Melvin |
@iwiznia, @JmillsExpensify Huh... This is 4 days overdue. Who can take care of this? |
@iwiznia, @JmillsExpensify Still overdue 6 days?! Let's take care of this! |
This is done. I did a few tests and it seems it's fast now. |
Context https://expensify.slack.com/archives/C03TQ48KC/p1671566294965399
Problem
UpdateComment
and reallyReport_EditComment
too (they use the same code) are slow.Mostly, it is caused by fully loading and instantiating all the report history.
Solution
Instead of loading the whole history, to then call
ReportUtils::getMostRecentVisibleAction
andReportUtils::getMostRecentVisibleUnreadAction
, we should have auth return those values by querying them directly in the DB and only returning the data we need.BTW this will not be fixed by the deprecate sequence numbers project, so it needs to be done separately.
cc @chiragsalian
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: