Bug 1741310

Summary: "Add a provider" button for Ansible Tower provider disappears after clicking item in accordion
Product: Red Hat CloudForms Management Engine Reporter: John Dupuy <jdupuy>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED ERRATA QA Contact: John Dupuy <jdupuy>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.0CC: bmidwood, dmetzger, hkataria, jdupuy, lavenel, mpovolny, mshriver, obarenbo, pvala, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.11.7Flags: simaishi: cfme-5.11.z+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.7.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-06 14:32:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Ansible Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Bug Demo none

Description John Dupuy 2019-08-14 18:05:19 UTC
Description of problem:
The "Add a provider" button disappears after clicking on a different item in the Ansible Tower Explorer accordion. 

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

How reproducible:
100%

Steps to Reproduce:
1. Navigate to "Automation > Ansible Tower > Explorer"
2. Verify that the "add a provider" button is available,
3. Click another item in the accordion and then navigate back to the same accordion

Actual results:
The "Add a provider" button has disappeared

Expected results:
The "Add a provider" button should still be there

Additional info:

Comment 2 Parthvi Vala 2019-08-26 11:56:18 UTC
The same thing happens with Red Hat Satellite Provider.

Steps to Reproduce:
1. Navigate to Configuration > Management.
2. Switch between `All Configuration Manager Providers` and `Red Hat Satellite Providers` and check if the `Add a Provider` button is visible.
3. Go to `Configured Systems` accordion and switch back to the `Providers` accordion and check if the `Add a Provider` button is visible.

Actual results:
1.
2. Button will be visible.
3. Button is no longer visible.

Expected results:
1.
2. Button should be visible, which it is.
3. Button should be visible.

Check the bug demo.

Comment 3 Parthvi Vala 2019-08-26 11:56:43 UTC
Created attachment 1608093 [details]
Bug Demo

Comment 4 Harpreet Kataria 2020-02-25 21:22:48 UTC
https://github.com/ManageIQ/manageiq-ui-classic/pull/6712

Comment 5 CFME Bot 2020-02-26 10:31:06 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/cd18bb16d05ea7bde73b80708fddaa6ae219eb0c
commit cd18bb16d05ea7bde73b80708fddaa6ae219eb0c
Author:     Harpreet Kataria <hkataria>
AuthorDate: Tue Feb 25 21:15:34 2020 +0000
Commit:     Harpreet Kataria <hkataria>
CommitDate: Tue Feb 25 21:15:34 2020 +0000

    Render 'layouts/empty' partial correctly.

    Render 'layouts/empty' partial when replacing right cell after accordion is switched from "Configured Systems" to "Providers" when there are no Foreman Providers in the database.
    Also render "layouts/empty" partial from explorer view only when active tree is Providers tree, existing code was rendering empty partial when returning back to explorer if "Configured Systems" was the last active accordion.

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

 app/controllers/provider_foreman_controller.rb | 5 +
 app/views/provider_foreman/explorer.html.haml | 7 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

Comment 7 CFME Bot 2020-06-18 20:05:45 UTC
New commit detected on ManageIQ/manageiq-ui-classic/ivanchuk:

https://github.com/ManageIQ/manageiq-ui-classic/commit/fadc5cd3c4e92f82282adbf2a782ce205a1a9455
commit fadc5cd3c4e92f82282adbf2a782ce205a1a9455
Author:     Milan Zázrivec <mzazrivec>
AuthorDate: Wed Feb 26 10:26:01 2020 +0000
Commit:     Satoe Imaishi <simaishi>
CommitDate: Thu Jun 18 20:03:12 2020 +0000

    Merge pull request #6712 from h-kataria/foreman_explorer_right_cell_replace_fix

    Render 'layouts/empty' partial correctly.

    (cherry picked from commit 90ccf511af963b739d30857d3ef242ae476dc453)

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

 app/controllers/provider_foreman_controller.rb | 5 +
 app/views/provider_foreman/explorer.html.haml | 7 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

Comment 8 Mike Shriver 2020-07-23 15:15:43 UTC
Tested on CFME 5.11.7.1

This behavior has been resolved for configuration managers, mentioned in comment 2, but not for ansible tower automation providers, which was the original description.

New BZ written for ansible tower:

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

Comment 11 errata-xmlrpc 2020-08-06 14:32:52 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 (Critical: CloudForms 5.0.7 bug fix and enhancement update), 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://access.redhat.com/errata/RHSA-2020:3358

Comment 13 Red Hat Bugzilla 2023-09-15 01:28:34 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days