Skip to content
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

UserNotifications: add UpsertGlobalNotification #47558

Closed
wants to merge 1 commit into from

Conversation

marcoandredinis
Copy link
Contributor

@marcoandredinis marcoandredinis commented Oct 14, 2024

This PR adds the UpsertGlobalNotification method.
It allows clients to create and update GlobalNotifications.

This is required for the UserTasks.
The goal is to let the user know that they have a pending user tasks for a given integration.
Instead of creating multiple notifications, we create a single one with a specific user name.
Everytime we try to create another notification for that integration, it will just issue an Upsert and only update the expiration.

  • check values (eg, Kind is not set on the notification level)

This PR adds the UpsertGlobalNotification method.
It allows clients to create and update GlobalNotifications.

This is required for the UserTasks.
The goal is to let the user know that they have a pending user tasks for
a given integration.
Instead of creating multiple notifications, we create a single one with
a specific user name.
Everytime we try to create another notification for that integration, it
will just issue an Upsert and only update the expiration.
@marcoandredinis marcoandredinis added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 labels Oct 14, 2024
@marcoandredinis marcoandredinis deleted the marco/upsert_globalnotifications branch October 16, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant