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

[WIP] convert console_supported? to supports? #8687

Closed
wants to merge 1 commit into from

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Mar 8, 2023

part of ManageIQ/manageiq#21990

I could have sworn that there was a @record.supports?(@feature) in a button, but couldn't find something immediately obvious

@miq-bot
Copy link
Member

miq-bot commented Mar 8, 2023

Checked commit kbrock@c7e7637 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
2 files checked, 1 offense detected

app/helpers/application_helper/button/vm_html5_console.rb

@kbrock
Copy link
Member Author

kbrock commented Mar 8, 2023

Not sure if the cop is valid, but ignoring as it is basically what was there before

%w[vnc webmks spice].any? { |type| @record.send(:console_supported?, type) }
@record.supports?(:html5_console)
Copy link
Member

Choose a reason for hiding this comment

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

Wow is this really it?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I read change them to just use "supports?"

Do we have an opinion on whether to change the supports to add some of the other "this vm is on" kind of logic that we are putting in the validates?

Are we thinking we should drop that validates method all together? (I'm suggesting it)

@kbrock kbrock changed the title convert console_supported? to supports? [WIP] convert console_supported? to supports? Apr 18, 2023
@kbrock kbrock added the wip label Apr 18, 2023
@miq-bot
Copy link
Member

miq-bot commented Jul 24, 2023

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s)

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@miq-bot miq-bot added the stale label Jul 24, 2023
@miq-bot miq-bot closed this Oct 30, 2023
@miq-bot
Copy link
Member

miq-bot commented Oct 30, 2023

This pull request has been automatically closed because it has not been updated for at least 3 months.

Feel free to reopen this pull request if these changes are still valid.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

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