-
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
[$250] [HOLD for payment 2024-10-17] Report actions pagination improvements #41153
Comments
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
@janicduplessis, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
put a PR in review for this: https://github.com/Expensify/Auth/pull/12239 |
@roryabraham Awesome, let me know when this is merged I could work on the app integration. |
It's merged, should be deployed within the next 2-3 hours. I'll let you know |
FWIW, I made the following changes:
I'll test this locally and make sure it's working. Might need to make some changes in our "middle" PHP layer to make sure the data makes it to the front-end in the response. |
Tested it and the new keys are not making it to the front-end. Looks like I'll need another PR in the PHP layer, but should be simple |
For Alternatively, I can try to refactor |
I think |
Good point, I'll work on adjusting that, as soon as I figure out what to do with the OpenReport |
I've spent a lot of time working on this. I do just need a single PHP PR, but it involves ripping out some deprecated code that has a lot of hidden side-effects. So it's been much more challenging than it seemed like it should have been. At this point I have only one failing test that I'm trying to wrap my head around |
Still stuck on that PR, but have been driving myself crazy trying to figure it out. Pushed a few changes that I think are sound, but still haven't gotten the last test passing. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.47-4 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-10-17. 🎊 For reference, here are some details about the assignees on this issue:
|
I guess we need a BZ here |
Triggered auto assignment to @CortneyOfstad ( |
Job added to Upwork: https://www.upwork.com/jobs/~021845841739039769728 |
Current assignee @ishpaul777 is eligible for the External assigner, not assigning anyone new. |
@ishpaul777 — sent you an offer in Upwork, please let me know once you accept! |
Accepted Thanks! |
I am heading OoO (10/15 to 10/23), so going to get this reassigned so the payment can be made! |
Triggered auto assignment to @lschurr ( |
Payment summary:
|
Oops I read the date wrong and paid it today. We'll just leave this open to make sure there are no regressions. |
Closing :) |
Problem
We currently have an issue where pagination methods (
GetNewerActions
,GetOlderActions
) are called unconditionally even if we should know that no newer or older messages are available.Solution
To improve this
OpenReport
,GetNewerActions
,GetOlderActions
should all return pagination info. This should be stored in theREPORT_METADATA
onyx collection.OpenReport
it should behasNewerActions
andhasOlderActions
.GetNewerActions
it should behasNewerActions
.GetOlderActions
it should behasOlderActions
.Then in
loadNewerChats
andloadOlderChats
we should check that newer / older actions are available before loading them.This will reduce the call to these methods significantly. For regular chats we never should have newer actions since we start loading from the start of the chat so
GetNewerActions
will never be called. If we are in a short chat, we probably loaded all messages initially so we don't need to callGetOlderActions
. For comment linking we should still call bothGetNewerActions
andGetOlderActions
since we are probably in the middle of a chat.Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: