-
Notifications
You must be signed in to change notification settings - Fork 72
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
feature: prevent stacking of duplicate notifications #2502
feature: prevent stacking of duplicate notifications #2502
Conversation
Your org requires the Graphite merge queue for merging into mainAdd the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
In cases where individual notifications are required, such as deleting a session, stopping another session will not cause a Notifiaction if a notification has already been upserted for the terminating or already terminating session.
How to test:
- delete a session.
- Delete another session without clearing the session deletion notification.
- Verify that the session deletion notification does not occur.
e7b5dbf
to
db62f9a
Compare
1a491b2
to
082820c
Compare
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
Merge activity
|
### TL;DR Removed unnecessary console log statements and improved notification handling by adding a unique key parameter to avoid duplicate notifications. ### What changed? - Removed `console.log` statements in `backend-ai-session-list.ts` and `lablup-notification.ts` files. - Enhanced the `show` method in `LablupNotification` component to include a `key` parameter for uniquely identifying notifications. - Added logic to prevent dispatching duplicate notifications and handled the 'Network disconnected' message specifically. ### How to test? 1. Trigger an error in the application and verify that console log statements no longer appear. 2. Check that notifications are correctly displayed without duplication. 3. Ensure the 'Network disconnected' message is handled by the `NetworkStatusBanner` component. ### Why make this change? To clean up the console output and improve the notification system by preventing duplicate messages and enhancing user experience. --- <!-- Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes, and how it affects the users and other developers. --> **Checklist:** (if applicable) - [ ] Mention to the original issue - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
082820c
to
e4145c4
Compare
TL;DR
Removed unnecessary console log statements and improved notification handling by adding a unique key parameter to avoid duplicate notifications.
What changed?
console.log
statements inbackend-ai-session-list.ts
andlablup-notification.ts
files.show
method inLablupNotification
component to include akey
parameter for uniquely identifying notifications.How to test?
NetworkStatusBanner
component.Why make this change?
To clean up the console output and improve the notification system by preventing duplicate messages and enhancing user experience.
Checklist: (if applicable)