vsemionov / boomerang

An experimental web application

Home Page:https://boomerang-core.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limit deleted objects

vsemionov opened this issue · comments

Enforce the limit when deleting an object.
Also, when listing deleted objects, return 206 if the limit is reached.

Implemented in 81e3f59.
Return http 206 partial response when listing deleted objects and deletion limit is reached for the parent(s), including the aggregate note list. If feasible (i.e. not requiring a per-parent request) only return it if the first deleted object is deleted after the since parameter.
The deleted route will be moved to NestedViewSet/UserNoteViewSet for two reasons: 1) prevent a dependency between the limit and sync mixins and 2) an overridden route is not recognized by the rest framework

Resolved in 77b7479.