Bug 1316683

Summary: Subscription status widget should honor selected org/loc context
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: DashboardAssignee: Zach Huntington-Meath <zhunting>
Status: CLOSED ERRATA QA Contact: Patrik Segedy <psegedy>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bkearney, dlobatog, dyordano, psegedy, tbrisker
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:11:15 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:

Description sthirugn@redhat.com 2016-03-10 18:34:51 UTC
Description of problem:
Dashboard - All widgets should honor selected org/loc context

Version-Release number of selected component (if applicable):
Satellite 6.2.0-beta-snap3

How reproducible:
Always

Steps to Reproduce:
1. Review the dashboard


Actual results:
The following widgets do not honor current org/loc context:
- Current Subscription Totals
- Task Status

Expected results:
the above mentioned widget should honor current org/loc context

Additional info:

Comment 3 David Davis 2016-03-28 18:17:25 UTC
I looked into filtering tasks by organization and I am not sure if it's possible. There's no direct association between a task and an organization in the database. Some tasks have locks which in term point to resources (e.g. Organization, User, Repository) but the problem is that how you get from a resource to org varies depending on the resource.

Comment 4 David Davis 2016-03-30 13:35:18 UTC
I checked with Ivan on comment #3 and it looks like there is a method on Task that gets us most of what we want: for_resource. It looks like it doesn't pick up actions that fail during the plan phase but we can maybe write some middleware to get around this.

Comment 5 David Davis 2016-03-30 18:16:01 UTC
I created a separate bug for the task status widget:

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

Will address that separately since it's probably going to require some additional changes that I think will preclude it from being in 6.2.

Comment 9 Tomer Brisker 2017-02-21 14:51:33 UTC
Updating title to reflect the correct issue - the task widget has been split to a separate BZ1322566.
The other widget, subscription total, seems to have been fixed upstream via fix for http://projects.theforeman.org/issues/16713 - updating status etc accordingly.

Comment 11 Patrik Segedy 2017-10-05 12:11:07 UTC
Steps to verify:
# rpm -q satellite
satellite-6.3.0-18.0.beta.el7sat.noarch

1. Create 2 organizations. One org with hosts and the other without any hosts
2. Subscription Status shows correct data for selected organization.

I'm not testing "Task Status" widget as there is separate Bug 1322566 for this.

VERIFIED

Comment 12 Bryan Kearney 2018-02-21 16:44:59 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://access.redhat.com/errata/RHSA-2018:0336

Comment 13 Bryan Kearney 2018-02-21 17:11:15 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://access.redhat.com/errata/RHSA-2018:0336