-
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
🐛 Fix deletion of files in folders #6935
🐛 Fix deletion of files in folders #6935
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6935 +/- ##
===========================================
- Coverage 88.09% 66.37% -21.73%
===========================================
Files 1592 669 -923
Lines 62319 32423 -29896
Branches 2012 262 -1750
===========================================
- Hits 54903 21521 -33382
- Misses 7080 10842 +3762
+ Partials 336 60 -276
Continue to review full report in Codecov by Sentry.
|
…simcore into fix-file-deletion
…simcore into fix-file-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.
👍
services/storage/src/simcore_service_storage/simcore_s3_dsm_utils.py
Outdated
Show resolved
Hide resolved
services/storage/src/simcore_service_storage/simcore_s3_dsm_utils.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.
Please see my comments, I think there are some issues. Thanks a lot!
services/storage/src/simcore_service_storage/simcore_s3_dsm_utils.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.
Thanks a bunch, I added a few more suggestions.
services/storage/src/simcore_service_storage/db_file_meta_data.py
Outdated
Show resolved
Hide resolved
services/storage/src/simcore_service_storage/db_file_meta_data.py
Outdated
Show resolved
Hide resolved
same here |
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.
same here
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 a lot!
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
Quality Gate passedIssues Measures |
What do these changes do?
Fix deletion of untracked files (without an entry in
file_meta_data
table).In the previous implementation, a suppressed exception caused the issue.
The first enclosing file (directory) in the table is updated accordingly (i.e. invalidating size) after the physical deletion.
Related issue/s
How to test
Dev-ops checklist