-
Notifications
You must be signed in to change notification settings - Fork 44
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
v1: remove upload request #420
Conversation
Can one of the admins verify this patch? |
e44c5ee
to
d1961bc
Compare
af4ae4b
to
d72e64c
Compare
d72e64c
to
7a0bf00
Compare
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.
Why mark upload_request as not required? I think this PR is missing some context?
@@ -395,7 +395,6 @@ components: | |||
required: | |||
- architecture | |||
- image_type | |||
- upload_request |
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.
Upload request is required, no?
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.
I should've added it to the description, this is intended to address #368 , there are cases in which upload request is not necessary and can be inferred from the image type
@@ -507,7 +507,7 @@ func (h *Handlers) ComposeImage(ctx echo.Context) error { | |||
return err | |||
} | |||
|
|||
if (composeRequest.ImageRequests[0].UploadRequest == UploadRequest{}) { | |||
if (composeRequest.ImageRequests[0].UploadRequest == &UploadRequest{}) { |
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.
This check will fail if there's an empty upload request object, but not on nil.
Sorry for ignoring this PR for so long, I wasn't sure what to do about it until today. While I'm very much for any simplification, this has the disadvantage that it's no longer obvious from the spec that I actually proposed a change to the cloud API in composer today that makes |
Fixes #368