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
Bug 1498618 - Support bind parameters. #467
Conversation
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.
Nicely done. clear proposal, code changes are reasonable, and the tests work. A++ will merge again.
| * ASB Unit tests | ||
| * OpenShift UI form definition changes | ||
| * Experimental APB with async bind and passed parameters | ||
| * APB documentation changes (getting started / developer guide) |
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.
Normally the proposal is a separate PR done before the implementation :) But the proposal seems sane and it is very clear of your intentions. +1
| Free bool `json:"free,omitempty"` | ||
| Bindable bool `json:"bindable,omitempty"` | ||
| Parameters []ParameterDescriptor `json:"parameters"` | ||
| BindParameters []ParameterDescriptor `json:"bind_parameters,omitempty" yaml:"bind_parameters,omitempty"` |
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.
👍
| params["provision_params"] = *instance.Parameters | ||
| params := req.Parameters | ||
| if params == nil { | ||
| params = make(apb.Parameters) | ||
| } |
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.
👍
| @@ -171,10 +200,44 @@ func getType(paramType string) schema.PrimitiveTypes { | |||
| return []schema.PrimitiveType{schema.UnspecifiedType} | |||
| } | |||
|
|
|||
| func parametersToSchema(params []apb.ParameterDescriptor) Schema { | |||
| func parametersToSchema(plan apb.Plan) Schema { | |||
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.
Sane change to parametersToSchema. 👍
| @@ -76,18 +76,43 @@ var PlanParams = []apb.ParameterDescriptor{ | |||
| }, | |||
| } | |||
|
|
|||
| var PlanBindParams = []apb.ParameterDescriptor{ | |||
| { | |||
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.
YES! to updating tests. 👏
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
|
Added the |
Support bind parameters. Proposal included.