Bug #16044
closedErrors in individual dashboard widgets fail entire page
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1353749
Description of problem:
when using filters for Dashboard in Satellite 6.2 an sql error occurs.
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1.Create filters for users.
2.login as user and press dashboard.
3.
Actual results:
Oops, we're sorry but something went wrong PG::Error: ERROR: missing FROM-clause entry for table "katello_host_collections" LINE 1: ...id" IN (1) AND "hosts"."location_id" IN (2) AND (("katello_h... ^ : SELECT COUNT FROM (SELECT DISTINCT "katello_errata"."id" AS count_column FROM "katello_errata" INNER JOIN "katello_content_facet_errata" ON "katello_content_facet_errata"."erratum_id" = "katello_errata"."id" INNER JOIN "katello_content_facet_errata" "content_facet_errata_katello_errata_join" ON "content_facet_errata_katello_errata_join"."erratum_id" = "katello_errata"."id" INNER JOIN "katello_content_facets" ON "katello_content_facets"."id" = "content_facet_errata_katello_errata_join"."content_facet_id" WHERE "katello_content_facets"."host_id" IN (SELECT "hosts"."id" FROM "hosts" WHERE "hosts"."type" IN ('Host::Managed') AND "hosts"."organization_id" IN (1) AND "hosts"."location_id" IN (2) AND (("katello_host_collections"."name" ILIKE 'oss%'))) LIMIT 6) subquery_for_count
Expected results:
Seeing the dashboard.
Additional info:
Updated by Daniel Lobato Garcia over 8 years ago
- Target version set to 117
Cloned this to Foreman because we should handle dashboard failures from plugin gracefully (currently they break the entire page if just one widget fails)
Updated by Dominic Cleal over 8 years ago
- Subject changed from ActiveRecord::StatementInvalid in dashboard to Errors in individual dashboard widgets fail entire page
- Category set to Dashboard
- Priority changed from High to Normal
Updated by Daniel Lobato Garcia over 8 years ago
- Target version changed from 117 to 1.6.2
Updated by Tomer Brisker over 8 years ago
- Status changed from New to Assigned
- Assignee set to Tomer Brisker
Updated by The Foreman Bot over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3762 added
Updated by Tomer Brisker over 8 years ago
- Related to Tracker #8107: Dashboard refactoring tracker added
Updated by Tomer Brisker over 8 years ago
- Related to Bug #16123: After upgrade "undefined method `name' for nil:NilClass" when visiting dashboard (oscap widget) added
Updated by Tomer Brisker over 8 years ago
- Related to Bug #14429: Katello - deleting version 1 and associated content views caused undefined method `name' for nil:NilClass added
Updated by Ohad Levy over 8 years ago
- Related to Bug #16238: dashboard widget for latests events can be exteramlly slow added
Updated by Anonymous over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 8685d6060088563e42456929531b7c2cac103d44.
Updated by Dominic Cleal over 8 years ago
- Related to Bug #16260: Intermittent DashboardIntegrationTest failures added
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 160
Updated by Tomer Brisker about 8 years ago
- Related to Refactor #8108: use AJAX to load Dashboard widgets added
Updated by Tomer Brisker about 8 years ago
- Related to Bug #16358: smart proxy puppet dashboard is broken added
Updated by Dominic Cleal about 8 years ago
- Related to Bug #16702: dashboard widgets ignore filters added
Updated by Dominic Cleal about 8 years ago
- Related to Refactor #16723: Lazy load data for dashboard widgets added
Updated by Tomer Brisker almost 8 years ago
- Related to Bug #15287: link in graph on Smart proxy -> Puppet page have "undefined" as smart proxy name added
Updated by Tomer Brisker almost 8 years ago
- Related to Bug #16704: Searching fails on dashboard added
Updated by Tomer Brisker almost 8 years ago
- Related to Bug #17244: Error accessing dashboard when user has filtered access to hosts added
Updated by Tomer Brisker almost 8 years ago
- Has duplicate Bug #11316: A bad widget breaks the entire dashboard added