-
Notifications
You must be signed in to change notification settings - Fork 141
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
Ensure 'submit_workflow' is true when adding a service to a cart #426
Conversation
@@ -90,7 +90,7 @@ def service_request_workflow(service_request) | |||
raise BadRequestError, "Must specify a service_template_href for adding a service_request" | |||
end | |||
service_template = resource_search(service_template_id, :service_templates, ServiceTemplate) | |||
service_template.provision_workflow(User.current_user, service_request) | |||
service_template.provision_workflow(User.current_user, service_request, {:submit_workflow => true}) |
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.
Looks good but you can remove the curly braces around {:submit_workflow => true}
Some comments on commit eclarizio@a8049ae spec/requests/service_orders_spec.rb
|
@gtanzillo Changes made. As a side note, I really didn't want to use |
Checked commit eclarizio@a8049ae with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 spec/requests/service_orders_spec.rb
|
Ensure 'submit_workflow' is true when adding a service to a cart (cherry picked from commit 9d146dc) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1603029
Gaprindashvili backport details:
|
This is related to #406 which was meant to remove the automate calls from submit, but the SUI does not directly order the service, it instead adds the service to a cart before ordering. This caused an issue where the dialog field properties weren't being propagated correctly and so the validation was failing.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1601925
@miq-bot add_label gaprindashvili/yes, bug, blocker
@miq-bot assign @gtanzillo
@d-m-u Can you review?
@gtanzillo Please re-assign if you think someone else should be assigned.
/cc @tinaafitz