-
Notifications
You must be signed in to change notification settings - Fork 358
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
convert ServiceTemplate.orderable? to supports?(:order) #9089
Conversation
will kick once other PR is merged |
@@ -198,7 +198,7 @@ def make_ot_orderable | |||
|
|||
def orchestration_template_copy | |||
@record = find_record_with_rbac(OrchestrationStack, params[:id]) | |||
if @record.orchestration_template.orderable? | |||
if @record.orchestration_template.supports(:order) |
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.
if @record.orchestration_template.supports(:order) | |
if @record.orchestration_template.supports?(:order) |
5a706b4
to
7acae07
Compare
ugh. both prs got confused with update:
|
Trying to move this over to supports mixin (dropping orderable?)
update:
@agrare If you don't see anything wrong, this is ready to go |
Checked commit kbrock@8a51b79 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint app/helpers/application_helper/button/orchestration_template_orderable.rb
app/helpers/application_helper/button/orchestration_template_view_in_catalog.rb
app/views/orchestration_stack/_stack_orchestration_template.html.haml |
Part of bigger:
depends upon:
Overview
This is the second attempt at #9071
Now that ServiceTemplates and ServiceOrders both offer
supports :order
, droppingorderable?
and using the standardsupports
.