Bug 1521113

Summary: Inconsistent capitalization of 'CPU' when creating chargeback rate
Product: Red Hat CloudForms Management Engine Reporter: Tasos Papaioannou <tpapaioa>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED CURRENTRELEASE QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: hkataria, hstastna, jhardy, mpovolny, obarenbo, simaishi, smallamp
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1557388 (view as bug list) Environment:
Last Closed: 2019-02-11 14:02:27 UTC Type: Bug
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:    
Bug Blocks: 1557388    

Description Tasos Papaioannou 2017-12-05 20:19:51 UTC
Description of problem:

When adding a Compute Chargeback Rate, the 'CPU' group changes to 'Cpu' when you click the 'Add' button to add a second tier/row. Also, the 'Cpu Cores' group should display as 'CPU Cores'.

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

5.9.0.11

How reproducible:

100%

Steps to Reproduce:
1.) Create new compute chargeback rate.
2.) Add a new row under the CPU group.
3.) See 'CPU' change to 'Cpu'.
4.) See 'Cpu Cores' displayed under the Group column for Allocated CPU Cores and Used CPU Cores.

Actual results:

Group name 'CPU' changes to 'Cpu' when adding another row.
Group shows as 'Cpu Cores' instead of 'CPU Cores'.

Expected results:

Group name doesn't change from 'CPU' to 'Cpu'.
Group shows as 'CPU Cores'.

Additional info:

Comment 2 Tasos Papaioannou 2017-12-05 20:25:09 UTC
The Group name also changes when trying to add a row under the Disk I/O or Network I/O:

Disk I/O ->  Disk Io
Network I/O -> Net Io

Comment 3 Hilda Stastna 2018-03-14 13:45:52 UTC
Note: We create new Compute or Storage chargeback rates under Cloud Intel > Chargeback > Rates accordion.

Comment 4 Hilda Stastna 2018-03-14 13:47:35 UTC
fixing https://github.com/ManageIQ/manageiq-ui-classic/pull/3621

Comment 5 CFME Bot 2018-03-15 09:22:29 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/86e109a9b3ff84a70bb2b30aa9c6170e0073df2d
commit 86e109a9b3ff84a70bb2b30aa9c6170e0073df2d
Author:     Hilda Stastna <hstastna>
AuthorDate: Wed Mar 14 09:29:37 2018 -0400
Commit:     Hilda Stastna <hstastna>
CommitDate: Wed Mar 14 09:29:37 2018 -0400

    Fix displaying 'CPU Cores' when creating a chargeback rate

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

    Fix displaying 'CPU Cores' instead of 'Cpu Cores' under the Group column for
    Allocated CPU Cores and Used CPU Cores, when creating a new chargeback rate.

 app/helpers/chargeback_helper.rb | 13 +-
 1 file changed, 7 insertions(+), 6 deletions(-)

Comment 7 Tasos Papaioannou 2018-06-26 16:16:33 UTC
Verified on 5.10.0.1.