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

Method for Human name of virtual custom attributes #14835

Merged

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Apr 21, 2017

pulled out from #14823

Get human name for virtual custom attribute with section

example:

to_human(‘virtual_custom_attribute_some_name’)
=> ‘Custom Attribute: some_name’
to_human(‘virtual_custom_attribute_some_name:SECTION:docker_labels’)
=> ‘Docker Labels: some_name’

This PR together with UI ManageIQ/manageiq-ui-classic#1099 is using the method for displaying human form of virtual custom attributes in report definition:

At this moment are custom attribute displayed in the format:
'Custom Attribute: some_name'

@miq-bot add_label enhacement, core
@miq-bot assign @gtanzillo

Links

follow up of #14391
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1434077
UI PR: ManageIQ/manageiq-ui-classic#1099

example:
to_human(‘virtual_custom_attribute_some_name’)
=> ‘Custom Attribute: some_name’

to_human(‘virtual_custom_attribute_some_name:SECTION:docker_labels’)
=> ‘Docker Labels: some_name’
@miq-bot
Copy link
Member

miq-bot commented Apr 21, 2017

@lpichler Cannot apply the following label because they are not recognized: enhacement

@lpichler
Copy link
Contributor Author

@miq-bot add_label euwe/yes, fine/yes

@miq-bot
Copy link
Member

miq-bot commented Apr 21, 2017

Checked commits lpichler/manageiq@b64bf9b~...b3c4507 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 files checked, 0 offenses detected
Everything looks good. 🍪

@lpichler
Copy link
Contributor Author

cc @zeari

Copy link

@zeari zeari left a comment

Choose a reason for hiding this comment

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

Looks great @lpichler

@gtanzillo gtanzillo added this to the Sprint 59 Ending Apr 24, 2017 milestone Apr 25, 2017
@gtanzillo gtanzillo merged commit 995b737 into ManageIQ:master Apr 25, 2017
@lpichler lpichler deleted the human_name_of_virtual_custom_attribute branch April 25, 2017 09:01
simaishi pushed a commit that referenced this pull request Apr 25, 2017
…attribute

Method for Human name of virtual custom attributes
(cherry picked from commit 995b737)
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit b8e052ffd56612d52b10e32500e31492de13e17b
Author: Gregg Tanzillo <[email protected]>
Date:   Mon Apr 24 21:46:27 2017 -0400

    Merge pull request #14835 from lpichler/human_name_of_virtual_custom_attribute
    
    Method for Human name of virtual custom attributes
    (cherry picked from commit 995b73754b062285f108ddfa3301d2fb98d78b59)

@simaishi
Copy link
Contributor

Backported to Euwe via #14971

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.

5 participants