-
Notifications
You must be signed in to change notification settings - Fork 356
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
Only show visible custom attributes #881
Only show visible custom attributes #881
Conversation
07ae9e8
to
6287e0a
Compare
end | ||
|
||
def textual_miq_custom_attributes | ||
attrs = @record.custom_attributes.where(:visible => 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.
@record.miq_custom_attributes
, not custom_attributes
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.
Also, the filtering may be better done in custom_attribute_mixin.rb
6287e0a
to
943c3ea
Compare
This pull request is not mergeable. Please rebase and repush. |
943c3ea
to
4293f5e
Compare
4293f5e
to
afdccc3
Compare
Checked commit enoodle@afdccc3 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@enoodle if relevant can you fix travis? Thanks. |
@simon3z This needs the base PR (ManageIQ/manageiq#14611) to be merged for the tests to be green. |
With the move to use options per provider, this is not needed anymore. |
Based on ManageIQ/manageiq#14611, This will only show custom attributes where
visible => true
.Due to CodeClimate's insistence I had to also create a mixin for visible custom attributes and I also included the redact function in it.