Skip to content

Commit

Permalink
Allow deletion of all tasks definitions/executions/schedules (spring-…
Browse files Browse the repository at this point in the history
…cloud#4113)

Fix the inability to destroy all Tasks at once from Shell (using task all destroy).
Applied same logic as for Streams to Task definitions, executions and schedules.
  • Loading branch information
bvanhorick authored Aug 21, 2020
1 parent 180be06 commit 044fa98
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ spring:

- POST /tasks/definitions => hasRole('ROLE_CREATE')
- DELETE /tasks/definitions/* => hasRole('ROLE_DESTROY')
- DELETE /tasks/definitions => hasRole('ROLE_DESTROY')
- GET /tasks/definitions => hasRole('ROLE_VIEW')
- GET /tasks/definitions/* => hasRole('ROLE_VIEW')

Expand All @@ -193,6 +194,7 @@ spring:
- POST /tasks/executions => hasRole('ROLE_DEPLOY')
- POST /tasks/executions/* => hasRole('ROLE_DEPLOY')
- DELETE /tasks/executions/* => hasRole('ROLE_DESTROY')
- DELETE /tasks/executions => hasRole('ROLE_DESTROY')

# Task Schedules

Expand All @@ -202,6 +204,7 @@ spring:
- GET /tasks/schedules/instances/* => hasRole('ROLE_VIEW')
- POST /tasks/schedules => hasRole('ROLE_SCHEDULE')
- DELETE /tasks/schedules/* => hasRole('ROLE_SCHEDULE')
- DELETE /tasks/schedules => hasRole('ROLE_SCHEDULE')

# Task Platform Account List */

Expand Down

0 comments on commit 044fa98

Please sign in to comment.