2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00
Oliver 403655e3d2
Adding bulk deletion endpoint for notifications (#3154)
* Catch DoesNotExist error

* Move notificationtable function to js file

* Fix for custom metadata class

- Previously only worked if a POST or PUT action was available on the endpoint
- So, a ListAPIView endpoint would not actually work!
- Adding in a BulkDelete mixin to a ListAPIView caused failure

* Add unit test to ensure new OPTIONS metadata updates are checked

* Expand functionality of the existing BulkDelete mixin

- Allow deletion by custom filters
- Allow each implementing class to implement custom filters
- Adds more unit testing for BulkDelete mixin class

* Add bulk delete operation for Notification API

- Ensure users can only delete their *own* notifications

* Improve notification tables / buttons / etc

* Adds unit testing for bulk delete of notifications

- Fixed API permissions for notifications list endpoint

* Update BulkDelete operations for the StockItemTestResult table

* Use filters parameter in attachments table to ensure that only correct attachments are deleted

* JS linting

* Fixes for unit tests
2022-06-08 07:45:30 +10:00
..
2022-05-20 13:20:55 +02:00
2022-02-20 19:25:03 +01:00
2022-06-07 08:11:11 +10:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:20:55 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:20:55 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:20:55 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2021-05-06 14:33:03 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:20:55 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:20:55 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2021-11-15 23:06:15 +11:00
2022-05-20 13:20:55 +02:00
2022-05-20 13:35:07 +02:00
2022-01-21 02:11:34 +01:00
2022-01-21 02:11:34 +01:00
2022-01-21 02:11:34 +01:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:20:55 +02:00
2022-03-03 21:16:27 +11:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00
2022-05-20 13:35:07 +02:00