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

Remove unused notification endpoints #8952

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

nielsvanvelzen
Copy link
Member

Changes

Remove some unused notification endpoints. Most of them were no-op since forever (at least since the API migration). The only endpoint that actually did something was CreateAdminNotification but I did not see any usages in any of our own clients.

This PR focuses on the API, the notification manager could be cleaned a bit too because it does contain code to have user-targeted notifications which is not used.

Issues

@github-actions
Copy link

Changes in OpenAPI specification found. Expand to see details.

What's Deleted


GET /Notifications/{userId}

Gets a user's notifications.

POST /Notifications/{userId}/Read

Sets notifications as read.

GET /Notifications/{userId}/Summary

Gets a user's notification summary.

POST /Notifications/{userId}/Unread

Sets notifications as unread.

POST /Notifications/Admin

Sends a notification to all admins.

@nielsvanvelzen nielsvanvelzen marked this pull request as ready for review December 24, 2022 13:04
Copy link
Contributor

@Shadowghost Shadowghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make sure to clean up the manager though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving an existing function, or small fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants