-
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
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
lastUpdateID
andpreviousUpdateID
in 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.sh
Group DMs
Attachments
Mentions
Web Notifications
Mobile Push Notifications
Offline tests
None
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop