Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1316683 - Subscription status widget should honor selected org/loc context
Summary: Subscription status widget should honor selected org/loc context
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Dashboard
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Zach Huntington-Meath
QA Contact: Patrik Segedy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 18:34 UTC by sthirugn@redhat.com
Modified: 2019-09-26 16:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:11:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16713 0 None None None 2017-02-21 14:51:33 UTC
Red Hat Bugzilla 1322566 0 unspecified CLOSED [RFE] Dashboard - Task widget should honor selected org/loc context 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1341858 0 unspecified CLOSED Dashboard takes a long time to load when the admin user has no default org 2021-02-22 00:41:40 UTC

Internal Links: 1322566 1341858

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


Note You need to log in before you can comment on or make changes to this bug.