Bug 1205453

Summary: [RFE] The UI picker for retirement entry point should only display state machine classes
Product: Red Hat CloudForms Management Engine Reporter: mkanoor
Component: UI - OPSAssignee: mkanoor
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4.0CC: hkataria, jhardy, mfeifer, mpovolny, obarenbo, sshveta, tcarlin
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 12:54:44 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1203426    
Bug Blocks:    

Description mkanoor 2015-03-24 22:37:09 UTC
Description of problem:
The UI displays a tree control for the retirement entry points. This tree shows all the classes irrespective of if the class is a state machine or not. A class is considered to be a state machine if it contains one or more state fields.

Version-Release number of selected component (if applicable):


How reproducible:
Very

Steps to Reproduce:
1. Create a Service Catalog Item
2. Select the Retirement Entry Points
3. The UI should only show those classes that are state machines

Actual results:
The display contains a mix of state and non state machine classes

Expected results:
The display should only display those classes which are state machines. 

Additional info:
Depends on 1203426

Comment 2 CFME Bot 2015-03-31 06:05:56 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/b912987c35434e63c620a34a030e59d8163b18d9

commit b912987c35434e63c620a34a030e59d8163b18d9
Author:     Madhu Kanoor <mkanoor>
AuthorDate: Tue Mar 24 10:56:44 2015 -0400
Commit:     Madhu Kanoor <mkanoor>
CommitDate: Tue Mar 24 18:26:41 2015 -0400

    Waypoint ids for state machines
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1205453
    
    UI can control which elements (domains, namespaces) it
    displays which have the state machine classes

 vmdb/app/controllers/catalog_controller.rb   |  2 +-
 vmdb/app/models/miq_ae_class.rb              | 24 +++++++++++++-----------
 vmdb/app/presenters/tree_builder_ae_class.rb | 12 ++++++------
 vmdb/spec/models/miq_ae_class_spec.rb        | 14 ++++++++++++++
 vmdb/spec/support/automation_spec_helper.rb  | 10 ++++++++++
 5 files changed, 44 insertions(+), 18 deletions(-)

Comment 4 Shveta 2015-04-23 22:01:54 UTC
Only statemachines are shown in Retirement entry point .
Verified in 5.4.0.0.22.20150420163946_26004d1

Comment 6 errata-xmlrpc 2015-06-16 12:54:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1100.html