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

Added changes to show Catalog Item type #165

Merged

Conversation

h-kataria
Copy link
Contributor

Show Catalog ITem type of list view, Catalog Item detail view and as read only text on the add/edit screens

https://bugzilla.redhat.com/show_bug.cgi?id=1348239

@dclarizio please review, this PR depends on changes in core repo in ManageIQ/manageiq#13516

UI screenshots

after1
after2
after3

@@ -111,7 +111,7 @@ def atomic_st_edit
@edit[:new] ||= {}
@edit[:current] ||= {}
@edit[:key] = "prov_edit__new"
@edit[:st_prov_types] = catalog_item_types
Copy link
Member

Choose a reason for hiding this comment

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

We should not be putting constants in the session. I cannot imagine a reason to do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@martinpovolny moved constant out of session.

@martinpovolny
Copy link
Member

Looks good except for the in-line comment above.

@h-kataria h-kataria changed the title Added changes to show Catalog Item type [WIP] - Added changes to show Catalog Item type Jan 19, 2017
@h-kataria h-kataria added the wip label Jan 19, 2017
Show nice display value for Catalog Item type in list view, Catalog Item detail view and as read only text on the add/edit screens. Moved list of catalog item types out of @edit hash, we can directly reference the constant from views.

https://bugzilla.redhat.com/show_bug.cgi?id=1348239
@h-kataria h-kataria force-pushed the show_catalog_item_type_on_screen branch from 8b8b149 to faf9999 Compare January 19, 2017 16:01
@h-kataria h-kataria removed the wip label Jan 19, 2017
@h-kataria h-kataria changed the title [WIP] - Added changes to show Catalog Item type Added changes to show Catalog Item type Jan 19, 2017
@miq-bot
Copy link
Member

miq-bot commented Jan 19, 2017

Checked commit h-kataria@faf9999 with ruby 2.2.6, rubocop 0.46.0, and haml-lint 0.19.0
5 files checked, 0 offenses detected
Everything looks good. 🍪

@martinpovolny martinpovolny added this to the Sprint 54 Ending Feb 13, 2017 milestone Feb 7, 2017
@martinpovolny martinpovolny merged commit 9900722 into ManageIQ:master Feb 7, 2017
@h-kataria h-kataria deleted the show_catalog_item_type_on_screen branch February 7, 2017 15:05
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.

4 participants