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

fix: LEAP-860: have GCS generate data URLs if presign is disabled #5968

Merged
merged 5 commits into from
Jun 13, 2024

Conversation

jombooth
Copy link
Contributor

@jombooth jombooth commented Jun 11, 2024

Make GCS behave the same way as S3 import storages, in that when presign isn't enabled for the storage, we return data URLs containing b64-encoded data instead of presigned URLs in task data.

We don't have any unit tests that simulate fetching real data from GCS and while this code should have them, setting up a mock GCS is too large to be in-scope for this task, so I've carefully verified the behavior locally instead.

image

@github-actions github-actions bot added the fix label Jun 11, 2024
Copy link

netlify bot commented Jun 11, 2024

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit 5a5839b
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/666a06d3227303000868293e
😎 Deploy Preview https://deploy-preview-5968--heartex-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 11, 2024

Deploy Preview for label-studio-docs-new-theme ready!

Name Link
🔨 Latest commit 5a5839b
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/666a06d31871d100088fca61
😎 Deploy Preview https://deploy-preview-5968--label-studio-docs-new-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 37.50000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 76.04%. Comparing base (300bec1) to head (5a5839b).
Report is 21 commits behind head on develop.

Files Patch % Lines
label_studio/io_storages/gcs/utils.py 37.50% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5968      +/-   ##
===========================================
- Coverage    76.06%   76.04%   -0.02%     
===========================================
  Files          162      162              
  Lines        13469    13475       +6     
===========================================
+ Hits         10245    10247       +2     
- Misses        3224     3228       +4     
Flag Coverage Δ
pytests 76.04% <37.50%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jombooth jombooth changed the title fix: LEAP-860: have GCS generate blobs if presign is disabled fix: LEAP-860: have GCS generate data URLs if presign is disabled Jun 12, 2024
@jombooth jombooth merged commit 2666b41 into develop Jun 13, 2024
40 of 42 checks passed
@jombooth jombooth deleted the fb-LEAP-860/blobs branch June 13, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants