Apply onyx updates from push notifications reliably#36047
Conversation
src/libs/Notification/PushNotification/subscribeToReportCommentPushNotifications.ts
Outdated
Show resolved
Hide resolved
|
@allroundexperts Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Woops, this is not ready for review yet |
|
This is ready for code review and can be tested internally. @allroundexperts you won't be able to test until some backend changes are deployed. I'll follow up when that's done. |
|
There is a merge freeze for the rest of the week, but this is ready for review and testing @allroundexperts. Backend changes are deployed. |
|
Off hold again. Bump @allroundexperts |
|
On my list for tomorrow! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2024-03-05.at.12.25.58.AM.movScreen.Recording.2024-03-05.at.12.27.41.AM.movScreen.Recording.2024-03-05.at.12.27.41.AM.movScreen.Recording.2024-03-05.at.2.04.00.AM.movMacOS: Desktop |
|
Still reviewing this. Testing all the cases above seems to be taking longer time. |
|
@arosiclair I'm able to see the fix applied only about 1/2 of the times. For the remaining half times, it never gets applied unless I open another chat and come back. Screen.Recording.2024-03-05.at.12.34.20.AM.mov |
Can you give a little more info? What are you expecting to see that isn't happening? |
I'm expecting new messages to appear without having to reload the page. This does not seem to happen always. Many times the new messages only appear after I reload the page. |
allroundexperts
left a comment
There was a problem hiding this comment.
I was able to test this on web only. The notifications part seem to be working well for web.
Did you have an issue testing Android? |
The notifications don't appear on the emulator. |
Hm okay. Can you do a test on mobile @amyevans? I can help if needed. You'll only need to test the Mobile Push Notifications part. |
|
Yeah I can give it a shot this morning! |
amyevans
left a comment
There was a problem hiding this comment.
Code looks good!
Outcome of the Slack thread: I am unable to test so Andrew will just test again to double check
The merge-base changed after approval.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.4.48-0 🚀
|
|
Just did a couple log searches to verify staging. We're looking good! |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.48-0 🚀
|


Details
Use
lastUpdateIDandpreviousUpdateIDin push notification's payload to apply the onyx update reliably like we do with updates from Pusher.Fixed Issues
$ #33191
Tests
Important
Devs need to run
./script/bwm.shGroup DMs
Attachments
Mentions
Web Notifications
Mobile Push Notifications
Offline tests
None
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop