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 provides presigned download links for files in folders #4573

Merged
merged 31 commits into from
Aug 8, 2023

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented Aug 4, 2023

What do these changes do?

Pre signed download links would not be generated for files placed inside a file_meta_data entry which is a folder.

  • 🐛 pre signed links are now generated for all existing objects in S3 if they are placed inside a directory.
  • ♻️ checking the existence of files in S3 is done via the Object HEAD request, since it is more reliable, less impactful on S3 and less likely to break when changing the implementation of _list_objects_v2_paginated.

Related issue/s

How to test

DevOps Checklist

@GitHK GitHK self-assigned this Aug 4, 2023
@GitHK GitHK added this to the Sundae milestone Aug 4, 2023
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Merging #4573 (eff1787) into master (82edbc1) will decrease coverage by 9.7%.
The diff coverage is 97.8%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4573      +/-   ##
=========================================
- Coverage    86.7%   77.0%    -9.7%     
=========================================
  Files        1023     663     -360     
  Lines       43790   30815   -12975     
  Branches     1013     533     -480     
=========================================
- Hits        37991   23755   -14236     
- Misses       5572    6936    +1364     
+ Partials      227     124     -103     
Flag Coverage Δ
integrationtests 66.6% <ø> (ø)
unittests 75.3% <97.8%> (-9.0%) ⬇️

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

Files Changed Coverage Δ
...vices/storage/src/simcore_service_storage/utils.py 100.0% <ø> (ø)
...rage/src/simcore_service_storage/simcore_s3_dsm.py 94.7% <95.0%> (+0.1%) ⬆️
...s/storage/src/simcore_service_storage/s3_client.py 98.7% <100.0%> (+<0.1%) ⬆️
...rc/simcore_service_storage/simcore_s3_dsm_utils.py 100.0% <100.0%> (ø)

... and 533 files with indirect coverage changes

@GitHK GitHK marked this pull request as ready for review August 4, 2023 11:31
@GitHK GitHK requested a review from matusdrobuliak66 August 4, 2023 11:32
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 for the changes!
might be worth that we look at it together on Monday?

@GitHK GitHK changed the title ♻️🐛 storage provides presented download links for files in folders ♻️🐛 storage provides presigned download links for files in folders Aug 7, 2023
@GitHK GitHK added t:maintenance Some planned maintenance work a:storage issue related to storage service labels Aug 7, 2023
Andrei Neagu added 2 commits August 8, 2023 10:03
@GitHK GitHK requested a review from sanderegg August 8, 2023 08:07
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.

Ok I don't want to hinder the progress on this any further. but I think you should refactor a bit the test so that it is maintainable (you are repeating a test that already exists, and I would suggest to separate the use cases instead of putting them altogether, your call).

@GitHK GitHK enabled auto-merge (squash) August 8, 2023 11:30
@codeclimate
Copy link

codeclimate bot commented Aug 8, 2023

Code Climate has analyzed commit eff1787 and detected 0 issues on this pull request.

View more on Code Climate.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@GitHK GitHK merged commit 0f9d22d into ITISFoundation:master Aug 8, 2023
@GitHK GitHK deleted the pr-osparc-download-link-in-folder branch August 8, 2023 14:45
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Sep 22, 2023
50 tasks
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 t:maintenance Some planned maintenance work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants