-
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
[HOLD for payment 2024-03-14] HIGH: Onyx updates from push notifications can get applied out of order #33191
Comments
Job added to Upwork: https://www.upwork.com/jobs/~018a77e81664929acf |
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor Plus for review of internal employee PR - @allroundexperts ( |
@JmillsExpensify, @arosiclair, @allroundexperts Whoops! This issue is 2 days overdue. Let's get this updated quick! |
No progress on this yet. I'm heads down on Notification Polish and then OOO for a couple days. I should be able to get to this next week. |
@allroundexperts can you review the PR? I think you might not have been auto-assigned cuz of the formatting here? (reallly don't know, just trying to expedite a fix here)
|
Sure, thanks for the reminder! |
Realized I still had to handle whisper messages. Just finished handling that case. Now I have a test failing in CI but not locally 🙃. |
|
Nice, super excited for this to go out. Thanks for the hard work on it! ❤️ |
All PR's are now merged. Just waiting for the App PR to hit staging so I can QA. ETA is EOW. |
QA on staging passed! This should be out on prod in the next deploy. ETA is today/tomorrow. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.48-0 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-03-14. 🎊 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:
|
This wasn't really a regression just new functionality for reliable updates. |
Payment Summary
BugZero Checklist (@JmillsExpensify)
|
The payment summary above is correct, so @allroundexperts please add this one to your next round of Expensify requests. Closing in the meantime. |
Stepping in for payment summary for Jason. Only payment is $500 to @allroundexperts for PR review. Paid via NewDot. |
Thanks! $500 approved for @allroundexperts |
Note: Waiting for #34082 to build the troubleshooting toolsProblem
When a user receives a report comment, we send them a push notification for it. The notification payload contains Onyx updates for the report and the new report action. We apply those onyx updates here and call
ReconnectApp
in the background using backgroundRefresh.There is a chance this update gets applied out of order eg:
Why is this important?
If this happens, the report and report action data will stay out of date until the next updates are received
Solution
Start including
lastUpdateID
andpreviousUpdateID
in the notification payload and use those to apply the update like we do for reliable updates here so those updates always get applied in order.Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: