-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for children bucket creation #233
Conversation
Code Climate has analyzed commit 496d385 and detected 10 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 62.2% (50% is the threshold). This pull request will bring the total coverage in the repository to 65.7% (0.1% change). View more on Code Climate. |
83f2ace
to
2b1861e
Compare
@@ -703,7 +741,8 @@ const controller = { | |||
|
|||
// Download via service proxy | |||
if (req.query.download && req.query.download === DownloadMode.PROXY) { | |||
// TODO: Consider if we need a HEAD operation first before doing the actual read on large files for pre-flight caching behavior? | |||
// TODO: Consider if we need a HEAD operation first before doing the actual read on large files |
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.
TODO found
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.
when i call the endpoint with body:
{"bucketName":"abc"}
i get the 409 conflict response:
{"type":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409","title":"Conflict","status":409,"bucketId":"5078dd24-c6a6-43bd-9205-42393d9c7eb4","detail":"Requested bucket already exists","instance":"/api/v1/bucket/5078dd24-c6a6-43bd-9205-42393d9c7eb4/child","key":"coms/tim"}
maybe you just need to put 'required()` on the joi schema for subKey
Also ensure that Joi.trim() is properly enforced with Joi.strict() Signed-off-by: Jeremy Ho <jujaga@gmail.com>
Signed-off-by: Jeremy Ho <jujaga@gmail.com>
Signed-off-by: Jeremy Ho <jujaga@gmail.com>
2b1861e
to
496d385
Compare
Description
This PR focuses on implementing the ability to create children buckets without necessarily knowing the raw S3 bucket credentials.
SHOWCASE-3399
Types of changes
New feature (non-breaking change which adds functionality)
Documentation (non-breaking change with enhancements to documentation)
Checklist
Further comments
As this PR also does a complete codebase update to remove the max-len lint warnings, there are many inconsequential differences in the changelog. The core changes of this PR can be found in the following files:
app/src/controllers/bucket.js
app/src/docs/v1.api-spec.yaml
app/src/routes/v1/bucket.js
app/src/validators/bucket.js
app/tests/unit/controllers/bucket.spec.js
app/tests/unit/validators/bucket.spec.js