Project

General

Profile

Bug #11234

Content Dashboard: "Sync Overview" widget has what seems like a permanent spinner, shows no data.

Added by Brad Buckingham over 3 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1245231
Description of problem:

The "Sync Overview" widget contains nothing but a spinner.

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

How reproducible:

Steps to Reproduce:
1. Assure some content has been synced in the past for an org, but assure that nothing is actually syncing at the moment.
2. Go to Content Dashboard
3. Look at "Sync Overview" widget.

Actual results:

Permanent spinner; no content

Expected results:

Widget works. Also, we probably shouldn't be passing an ISE as an informational error in the logs (see below)

Additional info:

  • All server statuses (`katello-service status`) seem to be ok.
  • /var/log/foreman/production.log:

2015-07-21 10:07:28 [I] Processing by Katello::DashboardController#errata as /*
2015-07-21 10:07:28 [I] Parameters: {"undefined"=>"-1"}
2015-07-21 10:07:28 [I] Client connected.
2015-07-21 10:07:28 [I] Client connected.
2015-07-21 10:07:28 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_host_collections.html.haml (6.2ms)
2015-07-21 10:07:28 [I] Completed 200 OK in 658ms (Views: 299.1ms | ActiveRecord: 10.0ms)
2015-07-21 10:07:28 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_subscriptions_totals.haml (80.5ms)
2015-07-21 10:07:28 [I] Completed 200 OK in 890ms (Views: 81.2ms | ActiveRecord: 2.8ms)
2015-07-21 10:07:29 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_errata.haml (11.9ms)
2015-07-21 10:07:29 [I] Completed 200 OK in 627ms (Views: 257.2ms | ActiveRecord: 13.0ms)
2015-07-21 10:10:15 [I] Processing by Katello::DashboardController#index as HTML
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/common/_helptip_button.html.haml (0.7ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/common/_helptip.html.haml (0.8ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_subscriptions.haml (77.8ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_entry.html.haml (80.8ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_ajax_entry.html.haml (2.1ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_ajax_entry.html.haml (0.3ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_ajax_entry.html.haml (0.3ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_ajax_entry.html.haml (0.3ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_ajax_entry.html.haml (0.3ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/index.html.haml within katello/layouts/katello (102.9ms)
2015-07-21 10:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/common/_common_i18n.html.haml (9.7ms)
2015-07-21 10:10:15 [I] Rendered home/_submenu.html.erb (2.9ms)
2015-07-21 10:10:15 [I] Rendered home/_user_dropdown.html.erb (12.3ms)
2015-07-21 10:10:15 [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2015-07-21 10:10:15 [I] Rendered home/_topbar.html.erb (137.1ms)
2015-07-21 10:10:15 [I] Rendered layouts/base.html.erb (139.2ms)
2015-07-21 10:10:15 [I] Completed 200 OK in 434ms (Views: 258.7ms | ActiveRecord: 1.4ms)
2015-07-21 10:10:16 [I] Processing by Katello::DashboardController#host_collections as */

2015-07-21 10:10:16 [I] Parameters: {"undefined"=>"-1"}
2015-07-21 10:10:16 [I] Processing by Katello::DashboardController#content_views as /*
2015-07-21 10:10:16 [I] Parameters: {"undefined"=>"-1"}
2015-07-21 10:10:16 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_host_collections.html.haml (1.3ms)
2015-07-21 10:10:16 [I] Completed 200 OK in 11ms (Views: 1.6ms | ActiveRecord: 1.6ms)
2015-07-21 10:10:16 [I] Processing by Katello::DashboardController#errata as */

2015-07-21 10:10:16 [I] Parameters: {"undefined"=>"-1"}
2015-07-21 10:10:16 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_errata.haml (11.7ms)
2015-07-21 10:10:16 [I] Completed 200 OK in 40ms (Views: 15.2ms | ActiveRecord: 6.1ms)
2015-07-21 10:10:16 [I] Processing by Katello::DashboardController#subscriptions_totals as /*
2015-07-21 10:10:16 [I] Parameters: {"undefined"=>"-1"}
2015-07-21 10:10:16 [I] Processing by Katello::DashboardController#sync as */

2015-07-21 10:10:16 [I] Parameters: {"undefined"=>"-1"}
2015-07-21 10:10:19 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_content_views.haml (2791.5ms)
2015-07-21 10:10:19 [I] Completed 200 OK in 2811ms (Views: 2789.9ms | ActiveRecord: 11.5ms)
2015-07-21 10:10:19 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_subscriptions_totals.haml (2568.6ms)
2015-07-21 10:10:19 [I] Completed 200 OK in 3671ms (Views: 2576.5ms | ActiveRecord: 4.0ms)
2015-07-21 10:10:20 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.58/app/views/katello/dashboard/_sync.haml (3205.3ms)
2015-07-21 10:10:20 [I] Completed 500 Internal Server Error in 3860ms
2015-07-21 10:10:20 [F]
NoMethodError (undefined method `start_time' for #<Hash:0x0000000ff11f30>):
lib/middleware/catch_json_parse_errors.rb:9:in `call'

Associated revisions

Revision 341cbefc (diff)
Added by Brad Buckingham over 3 years ago

fixes #11234 - content dashboard - fix Sync Overview widget

Fix to address:
- no longer able to access sync_status elements using '.attribute'
(e.g. status.state), instead need to use hash access (e.g. status[:state])
- update finish_time to support string content

Revision 724415b0
Added by Brad Buckingham over 3 years ago

Merge pull request #5381 from bbuckingham/issue-11234

fixes #11234 - content dashboard - fix Sync Overview widget

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5381 added
  • Pull request deleted ()

#2 Updated by Brad Buckingham over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 70
  • Triaged changed from No to Yes

Also available in: Atom PDF