Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag whether linked resources should be deleted in delete endpoin… #748

Merged
merged 5 commits into from Jul 14, 2023

Conversation

bartvanb
Copy link
Member

@bartvanb bartvanb commented Jul 5, 2023

…ts that affect other resources

@bartvanb bartvanb merged commit cce9538 into release/v4.0 Jul 14, 2023
3 checks passed
@bartvanb bartvanb deleted the feature/delete-child-resources-by-flag branch July 14, 2023 08:32
@frankcorneliusmartin
Copy link
Contributor

✅ roles (not available in the python client)

>>> client.request('role/11', method='delete', params={'delete_dependents': True})
Making request: DELETE | http://localhost:5000/api/role/11 | {'delete_dependents': True}
Starting new HTTP connection (1): localhost:5000
http://localhost:5000 "DELETE /api/role/11?delete_dependents=True HTTP/1.1" 200 42
{'msg': 'Role removed from the database.'}

✅ task (subtasks are always deleted)

>>> client.request('task/8', method='delete')
Making request: DELETE | http://localhost:5000/api/task/8 | None
Starting new HTTP connection (1): localhost:5000
http://localhost:5000 "DELETE /api/task/8 HTTP/1.1" 200 78
{'msg': 'task id=8 and its algorithm run data have been successfully deleted'}

✅ user (not available in the python client)

>>> client.request('user/1', method='delete', params={'delete_dependents': True})
Making request: DELETE | http://localhost:5000/api/user/1 | {'delete_dependents': True}
Starting new HTTP connection (1): localhost:5000
http://localhost:5000 "DELETE /api/user/1?delete_dependents=True HTTP/1.1" 200 49
{'msg': 'user id=1 is removed from the database'}

✅ collaboration (not available in the python client)

>>> client.request('collaboration/1', method='delete', params={'delete_dependents': True})
Making request: DELETE | http://localhost:5000/api/collaboration/1 | {'delete_dependents': True}
Starting new HTTP connection (1): localhost:5000
http://localhost:5000 "DELETE /api/collaboration/1?delete_dependents=True HTTP/1.1" 200 50
{'msg': 'Collaboration id=1 successfully deleted'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants