activity_notification
activity_notification copied to clipboard
Bulk destroy notifications
Problem or use case:
Couldn't find a way to delete more than one notification for a target. While the destroy
API provides functionality to destroy a single notification, I don't see a way to destroy more than one.
Expected solution
Availability of a bulk_destroy
API
Alternatives
Provision to create custom APIs which can be leveraged to bulk destroy notifications
You can build your own bulk destroy API by directly deleting notification model or records on DB. If we need to prepare common bulk destroy API, what kind of filter conditions for specifying target notifications to destroy do you want?
Maybe I wasn't clear earlier. When I meant an API for bulk_destroy
, I meant a "route". Currently there is no provision to add a new route to my NotificationsController
. Because I believe we can only work with routes like index
, open_all
, show
, open
, destroy
and move