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

🐛storage: fixes query to file metadata #6184

Merged

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Aug 13, 2024

What do these changes do?

  • 🐛 Fixes bug introduced with this change in the database query
  • 🐛 Fixes access rights to storage data (in coordination with @matusdrobuliak66 )

Related issue/s

How to test

Dev-ops checklist

@pcrespov pcrespov self-assigned this Aug 13, 2024
@pcrespov pcrespov added the a:storage issue related to storage service label Aug 13, 2024
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.3%. Comparing base (cafbf96) to head (419da5b).
Report is 438 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #6184      +/-   ##
=========================================
- Coverage    84.5%   66.3%   -18.3%     
=========================================
  Files          10     614     +604     
  Lines         214   31209   +30995     
  Branches       25     234     +209     
=========================================
+ Hits          181   20693   +20512     
- Misses         23   10456   +10433     
- Partials       10      60      +50     
Flag Coverage Δ
integrationtests 64.8% <ø> (?)
unittests 90.0% <100.0%> (+5.4%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...age/src/simcore_service_storage/db_access_layer.py 88.1% <100.0%> (ø)
...e/src/simcore_service_storage/db_file_meta_data.py 98.5% <100.0%> (ø)
...ices/storage/src/simcore_service_storage/models.py 95.8% <100.0%> (ø)

... and 621 files with indirect coverage changes

@pcrespov pcrespov added this to the Eisbock milestone Aug 13, 2024
@pcrespov pcrespov force-pushed the is1587/fix-query-download-shared-files branch 3 times, most recently from cb008e4 to bdc5bd1 Compare August 14, 2024 16:29
@pcrespov pcrespov changed the title WIP: Is1587/fix query download shared files 🐛 storage: fixes query to file metadata Aug 14, 2024
@pcrespov pcrespov marked this pull request as ready for review August 14, 2024 16:32
@pcrespov pcrespov requested a review from sanderegg as a code owner August 14, 2024 16:32
@pcrespov pcrespov enabled auto-merge (squash) August 14, 2024 16:32
@pcrespov pcrespov marked this pull request as draft August 14, 2024 17:29
auto-merge was automatically disabled August 14, 2024 17:29

Pull request was converted to draft

@pcrespov pcrespov changed the title 🐛 storage: fixes query to file metadata WIP: 🐛 storage: fixes query to file metadata Aug 14, 2024
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool thanks. not sure if that is ready for review. if yes you have my approval

@pcrespov pcrespov force-pushed the is1587/fix-query-download-shared-files branch from ddfda2d to ea222d3 Compare August 15, 2024 09:10
@pcrespov pcrespov marked this pull request as ready for review August 15, 2024 11:56
@pcrespov pcrespov changed the title WIP: 🐛 storage: fixes query to file metadata 🐛storage: fixes query to file metadata Aug 15, 2024
@pcrespov pcrespov enabled auto-merge (squash) August 15, 2024 11:56
@pcrespov pcrespov requested a review from YuryHrytsuk August 15, 2024 12:08
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!, please double check the query declaration at global scope

Copy link
Contributor

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! looking good.

Copy link

@pcrespov pcrespov merged commit 4341733 into ITISFoundation:master Aug 15, 2024
57 checks passed
@pcrespov pcrespov deleted the is1587/fix-query-download-shared-files branch August 15, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:storage issue related to storage service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User cannot download files from file-picker when a project is shared with him/her
3 participants