Skip to content
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

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Feb 19, 2024

Part of bigger:

depends upon:

Overview

This is the second attempt at #9071

Now that ServiceTemplates and ServiceOrders both offer supports :order, dropping orderable? and using the standard supports.

@kbrock
Copy link
Member Author

kbrock commented Feb 23, 2024

will kick once other PR is merged

@agrare agrare closed this Feb 23, 2024
@agrare agrare reopened this Feb 23, 2024
@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if @record.orchestration_template.supports(:order)
if @record.orchestration_template.supports?(:order)

@kbrock
Copy link
Member Author

kbrock commented Feb 23, 2024

ugh. both prs got confused with supports?(:orderable), support(:order) and the correct supports?(:order)

update:

  • rebase
  • fixed support call

Trying to move this over to supports mixin
(dropping orderable?)
@kbrock
Copy link
Member Author

kbrock commented Apr 12, 2024

update:

  • rebase (just updating - no real change)

@agrare If you don't see anything wrong, this is ready to go

@miq-bot
Copy link
Member

miq-bot commented Apr 12, 2024

Checked commit kbrock@8a51b79 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
5 files checked, 9 offenses detected

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

  • 💣 💥 🔥 🚒 - Line 1 - Do not repeat id "#form_div" on the page
  • 💣 💥 🔥 🚒 - Line 32 - Do not repeat id "#form_div" on the page
  • ⚠️ - Line 22 - Avoid using instance variables in partials views
  • ⚠️ - Line 24 - Avoid using instance variables in partials views
  • ⚠️ - Line 24 - Line is too long. [89/80]

@agrare agrare merged commit cdfcfc5 into ManageIQ:master Apr 12, 2024
15 checks passed
@kbrock kbrock deleted the supports_orders branch April 18, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants