-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ web-api: Empty bin of explicitly trashed projects #7226
✨ web-api: Empty bin of explicitly trashed projects #7226
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7226 +/- ##
==========================================
+ Coverage 86.99% 88.24% +1.25%
==========================================
Files 1667 1166 -501
Lines 64721 49614 -15107
Branches 1096 202 -894
==========================================
- Hits 56302 43783 -12519
+ Misses 8106 5762 -2344
+ Partials 313 69 -244
Continue to review full report in Codecov by Sentry.
|
5594adf
to
7483893
Compare
7483893
to
1a6e18b
Compare
814c8f6
to
e9e3062
Compare
Q: We are implementing "delayed" operations using Distributed Task Queues... what happens if the project is shared with somebody that queued a "cloning" operation task before the deletion? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Should a locking mechanism be implemented during deletion? -> Maybe it’s not necessary right now, but if additional functionality such as data deletion is added in the future, it might be useful. |
@giancarloromeo good point. Note, nonetheless, that items are marked as trashed, i.e. in principle they are not clonable. There is a locking mechanism when trashing ... i.e. if it is cloning, it cannot be trashed. |
3859ba3
to
9b868bb
Compare
|
What do these changes do?
This PR introduces the initial implementation of
delete_trashed_project
, focusing on deleting explicitly trashed projects that are not shared. Future PRs will extend this policy to cover additional cases.Highlights
web-api: v0.58.0
: implements Empty Trash (limited to projects explicitly trashed)empty_trash
endpoint toPOST /trash:empty
.empty_trash_safe
)pagination_tools
: Adds helper functions for iterating over paginated listings.delete_project_by_user
:Next steps
Related issue/s
How to test
Dev-ops
None