Bug 1532701

Summary: Chargeback Rates page title incorrect after deleting rate
Product: Red Hat CloudForms Management Engine Reporter: Mike Shriver <mshriver>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED CURRENTRELEASE QA Contact: Nandini Chandra <nachandr>
Severity: low Docs Contact:
Priority: medium    
Version: 5.9.0CC: cpelland, hkataria, hstastna, lavenel, mpovolny, nachandr, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0Flags: mshriver: automate_bug+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:chargeback
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1553251 (view as bug list) Environment:
Last Closed: 2019-02-11 14:06:35 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: 1553251    

Description Mike Shriver 2018-01-09 15:52:49 UTC
Description of problem:
The title of the chargeback rates pages (Compute and Storage), have incorrect titles after deleting a rate.

Navigating to the Storage or Compute chargeback rates screens results in a plural title:
'Compute Chargeback Rates' or 'Storage Chargeback Rates'

If you select several rates, or navigate to a specific rate's page, and delete the group or singular rate, the page ultimately redirects to the 'All' page for the given rate type.

The title is singular after this redirect - the same as the 'Details' page for a given rate, but without the rate's name included.

The name should be consistent, and plural, on the page of all Compute or Storage Rates


Version-Release number of selected component (if applicable):
5.9.0.15
Observed in Google Chrome

How reproducible:
100%

Steps to Reproduce:
Works for Storage or Compute
1. Navigate to Storage chargeback, note plural page title
2. Create new chargeback rate
3. Select, or navigate to, the newly created rate
4. Delete the rate
5. Note redirect to 'All' page

Actual results:
Page title is singular instead of plural


Expected results:
Page title is plural, matching title of direct navigation to the page

Additional info:

Comment 3 CFME Bot 2018-02-22 10:04:11 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/7129397074a08b0b24215663aea967eb37252b58

commit 7129397074a08b0b24215663aea967eb37252b58
Author:     Hilda Stastna <hstastna>
AuthorDate: Wed Feb 21 16:42:10 2018 +0100
Commit:     Hilda Stastna <hstastna>
CommitDate: Wed Feb 21 16:42:10 2018 +0100

    Fix Chargeback Rates page title
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1532701
    
    Fix Chargeback Rates page title in Cloud Intel > Chargeback > Rates
    > Rates folder.

 app/controllers/chargeback_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 5 Mike Shriver 2018-07-06 14:02:31 UTC
Tested in CFME 5.10.0.2.20180626170006_40dc459

When deleting from the All page or from the details page, the title of the 'All' page after redirection is now correct, and consistently plural.