-
Notifications
You must be signed in to change notification settings - Fork 3
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: remove trailing slash from s3_uri #198
Conversation
Codecov Report
@@ Coverage Diff @@
## main #198 +/- ##
=======================================
Coverage 70.39% 70.40%
=======================================
Files 132 132
Lines 10020 10022 +2
=======================================
+ Hits 7054 7056 +2
Misses 2966 2966
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM. Could be worth adding a test to help protect any inadvertent removal of this no-slash requirement. Similarly adding a comment here to explain the purpose would be useful.
Beyond the scope of this PR, it seems worth "fixing" this in data portal as well by having an explicit, validated format there (i.e. no trailing slash). Similarly for explorer URLs, since there exists a hack to query for explorer URLs that may or may not have a trailing slash. I can create stories for this, but seeking input. |
It seems like a low priority, but something worth doing eventually. |
2b32e60
to
b64fbdd
Compare
Reviewers
Functional: @atolopko-czi
Readability: @seve
Remove trailing slash from the s3_uri that is used in the
/s3_uri/<s3_uri>/api/v0.3
requests, to ensure that all requests are properly utilizing the CloudFront cache. This woull change this:/cellxgene/s3_uri/s3%253A%252F%252Fhosted-cellxgene-dev%252Fpbmc3k.cxg%252F/api/v0.3/genesets
to this
/cellxgene/s3_uri/s3%253A%252F%252Fhosted-cellxgene-dev%252Fpbmc3k.cxg/api/v0.3/genesets
Changes