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

Service display has been renamed to visible. #19211

Merged
merged 2 commits into from
Oct 1, 2019

Conversation

lfu
Copy link
Member

@lfu lfu commented Aug 27, 2019

To avoid name conflict with Kernel#display method.

Depends on ManageIQ/manageiq-schema#410.
https://bugzilla.redhat.com/show_bug.cgi?id=1737559

@miq-bot assign @tinaafitz
@miq-bot add_label bug, ivanchuk/no, changelog/yes

@djberg96
Copy link
Contributor

Maybe a silly question, but why not just define a custom Service#display method?

@@ -107,6 +108,7 @@ class Service < ApplicationRecord
alias parent_service parent
alias_attribute :service, :parent
virtual_belongs_to :service
deprecate_attribute :display, :visible
Copy link
Member

Choose a reason for hiding this comment

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

@lfu Does deprecate_attribute allow visible to be exposed through the Automate service model?

Copy link
Member Author

Choose a reason for hiding this comment

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

deprecate_attribute calls virtual_attribute that would allow visible to be exposed to automate.

@lfu
Copy link
Member Author

lfu commented Aug 28, 2019

Maybe a silly question, but why not just define a custom Service#display method?

@djberg96 Thanks for the comment. But that won't work for automate method which is handled DRb.

@gmcculloug
Copy link
Member

LGTM once the dependent PR is merged.

@bdunne bdunne closed this Oct 1, 2019
@bdunne bdunne reopened this Oct 1, 2019
lfu and others added 2 commits October 1, 2019 18:51
The column was renamed on Service but not on ServiceTemplate
@bdunne bdunne force-pushed the rename_service_display_1737559 branch from 6ac2699 to 781a3d5 Compare October 1, 2019 23:23
@miq-bot
Copy link
Member

miq-bot commented Oct 1, 2019

Checked commits lfu/manageiq@9c72451~...781a3d5 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@bdunne bdunne merged commit 0a27c43 into ManageIQ:master Oct 1, 2019
@bdunne bdunne assigned bdunne and unassigned tinaafitz Oct 1, 2019
@bdunne bdunne added this to the Sprint 122 Ending Oct 14, 2019 milestone Oct 1, 2019
@bdunne
Copy link
Member

bdunne commented Oct 1, 2019

@lfu Does the same change need to be applied to ServiceTemplate?

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.

6 participants