-
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
✨ Trash folders #6642
✨ Trash folders #6642
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6642 +/- ##
==========================================
+ Coverage 87.91% 87.94% +0.02%
==========================================
Files 1564 1569 +5
Lines 62991 63110 +119
Branches 2106 2106
==========================================
+ Hits 55379 55500 +121
+ Misses 7287 7285 -2
Partials 325 325
Continue to review full report in Codecov by Sentry.
|
f64db9b
to
ad1dd58
Compare
16ef4b0
to
f4c101c
Compare
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.
👌
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.
can we discuss that PR? I would like to understand the explciti concept and what is its use
...database/src/simcore_postgres_database/migration/versions/17eea8ba5d4f_new_trashed_colums.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/projects.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/folders/_folders_db.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/folders/_folders_db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/folders/_folders_db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_trash_api.py
Outdated
Show resolved
Hide resolved
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.
pair reviewed, some changes will be done. let me know when this is ready. thanks!
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 for this. I had one question Please see below.
services/web/server/src/simcore_service_webserver/folders/_trash_api.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/folders/_trash_api.py
Outdated
Show resolved
Hide resolved
110e1eb
to
361613f
Compare
9c5c9c9
to
01bf2ad
Compare
Quality Gate passedIssues Measures |
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.
Reviewed in person, thanks!
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.
All good, thanks for clearing up.
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.
👍🏻 cool, thanks a lot
What do these changes do?
Folders and all their contents (subfolders and projects) can now be trashed (
POST /folders/{id}:trash
) and restored (POST /folders/{id}/:untrash
). The endpointGET /folders?filters={"trashed": true}
will list only explicitly trashed folders. All folder contents (projects and files) is also implicitly trashed, i.e. it is marked as trashed but are not included in the listing, even with thetrashed
filter applied.Hightlights
trash
section of openapi specsPOST /folders/{folder_id}:trash, untrash
trashed_at
inFolderGet
trashed_explicitly
flag in dbGET /folders
WEBSERVER_DEV_FEATURES_ENABLED=1
(i.e. master deploys)Next steps
Related issue/s
How to test
Dev-ops
None