-
Notifications
You must be signed in to change notification settings - Fork 31
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
api: FIx object store URL parsing #1228
Conversation
Also add some minimum validation
Also remove log
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Easier than doing that on the DB
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.
For some reason tests are failing for me on playback
, asset
and auth
const opts: tus.S3StoreOptions | S3ClientConfig = { | ||
...s3config, |
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.
❤️
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!
@@ -45,7 +45,7 @@ describe("controllers/playback", () => { | |||
beforeEach(async () => { | |||
await db.objectStore.create({ | |||
id: "mock_vod_store", | |||
url: "http://user:password@localhost:8080/us-east-1/vod", | |||
url: "s3+http://user:password@localhost:8080/us-east-1/vod", |
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.
ooooh I see
Codecov Report
@@ Coverage Diff @@
## master #1228 +/- ##
===================================================
+ Coverage 51.39369% 51.54307% +0.14938%
===================================================
Files 66 66
Lines 4341 4342 +1
Branches 781 783 +2
===================================================
+ Hits 2231 2238 +7
+ Misses 1830 1825 -5
+ Partials 280 279 -1
Continue to review full report at Codecov.
|
That was hiding a bug
All good. |
What does this pull request do? Explain your changes. (required)
Fixes the API logic for parsing Object Store URLs, currently used only for the
VOD APIs for uploading files (both
direct
andtus
).The fix is necessary because the Go library for parsing these URLs changed
in an incompatible way for the Catalyst VOD work to flow through. Specifically, it does
not support having regions in the URLs anymore because it now supports specifying a path
prefix after the bucket name.
Specific updates (required)
-
yarn test
Does this pull request close any open issues?
Implements #1205
Checklist: