InvenTree/InvenTree
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
..
build Notification on new orders (#3145) 2022-06-07 08:11:11 +10:00
common Adding bulk deletion endpoint for notifications (#3154) 2022-06-08 07:45:30 +10:00
company Adds API mixin for "bulk delete" (#3146) 2022-06-07 07:25:12 +10:00
InvenTree Adding bulk deletion endpoint for notifications (#3154) 2022-06-08 07:45:30 +10:00
label Add more checks to pre-commit (#3132) 2022-06-06 08:56:52 +10:00
locale L10 crowdin (#3138) 2022-06-06 16:43:36 +10:00
order Ensure an error gets logged when a delivery method fails (#3144) 2022-06-07 08:58:00 +10:00
part Ensure an error gets logged when a delivery method fails (#3144) 2022-06-07 08:58:00 +10:00
plugin Ensure an error gets logged when a delivery method fails (#3144) 2022-06-07 08:58:00 +10:00
plugins Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
report Add new global setting to control auto-upload of test reports (#3137) 2022-06-06 15:20:41 +10:00
script Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
stock Adding bulk deletion endpoint for notifications (#3154) 2022-06-08 07:45:30 +10:00
templates Adding bulk deletion endpoint for notifications (#3154) 2022-06-08 07:45:30 +10:00
users Adding bulk deletion endpoint for notifications (#3154) 2022-06-08 07:45:30 +10:00
config_template.yaml fix trailing 2022-05-20 13:20:55 +02:00
gunicorn.conf.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
manage.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00