-
Notifications
You must be signed in to change notification settings - Fork 1.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
[PM-10564] Push notification updates to other clients #5057
base: km/pm-10600-full-notification-content
Are you sure you want to change the base?
Conversation
When a notification is updated, marked as read or deleted, a push notification is sent with updated push type event. The push notification includes the ReadDate and DeletedDate fields.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## km/pm-10600-full-notification-content #5057 +/- ##
=========================================================================
+ Coverage 43.60% 43.63% +0.02%
=========================================================================
Files 1456 1456
Lines 66610 66723 +113
Branches 6094 6098 +4
=========================================================================
+ Hits 29047 29112 +65
- Misses 36268 36316 +48
Partials 1295 1295 ☔ View full report in Codecov by Sentry. |
…nt type. Any update to the Notification from user perspective should be treated as update. That includes NotificationStatus, which when created would be displayed as update to the notification. Hence, push notification should be update type.
NotificationStatus not needed.
No New Or Fixed Issues Found |
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 changes look good.
I have one question around what should happen with individual notification status on a notification update. Should the notification statuses reset since the message is altered, or should they stay the same?
src/Core/NotificationCenter/Commands/UpdateNotificationCommand.cs
Outdated
Show resolved
Hide resolved
Moving to draft for now. I will update the event types to be |
…ates Sync notification push type is now used for both Notification create and update. Renamed the event types to specifically mention the purpose of status for notification status updates.
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.
LGTM
@@ -25,7 +25,7 @@ public class AzureQueuePushNotificationServiceTests | |||
[BitAutoData] | |||
[NotificationCustomize] | |||
[CurrentContextCustomize] | |||
public async void PushSyncNotificationAsync_Notification_Sent( | |||
public async Task PushSyncNotificationAsync_Notification_Sent( |
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.
👍 Nice job on updating these.
# Conflicts: # src/Core/Models/PushNotification.cs # src/Core/Services/IPushNotificationService.cs # src/Core/Services/NoopImplementations/NoopPushNotificationService.cs # test/Core.Test/NotificationCenter/Commands/CreateNotificationCommandTest.cs # test/Core.Test/NotificationHub/NotificationHubPushNotificationServiceTests.cs # test/Core.Test/Services/AzureQueuePushNotificationServiceTests.cs
# Conflicts: # src/Core/Enums/PushType.cs # src/Core/NotificationHub/NotificationHubPushNotificationService.cs # src/Core/Services/IPushNotificationService.cs # src/Core/Services/Implementations/MultiServicePushNotificationService.cs # src/Core/Services/Implementations/NotificationsApiPushNotificationService.cs # src/Core/Services/Implementations/RelayPushNotificationService.cs # src/Core/Services/NoopImplementations/NoopPushNotificationService.cs
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-10564
This is Part 3.
See Part 2: #5086
See Part 4: #5079
📔 Objective
When a notification is updated, marked as read or deleted, a push notification is sent with updated push type event. The push notification includes the ReadDate and DeletedDate fields.
Notes
SyncNotification
toSyncNotificationCreate
push type event.SyncNotificationUpdate
push type event📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes