activity_notification icon indicating copy to clipboard operation
activity_notification copied to clipboard

Bulk destroy notifications

Open Mack241 opened this issue 1 year ago • 2 comments

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

Mack241 avatar Sep 20 '23 13:09 Mack241

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?

simukappu avatar Oct 20 '23 00:10 simukappu

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

Mack241 avatar Oct 27 '23 04:10 Mack241