Actions
Bug #13352
closedDashboard widget rows are loaded in reverse order
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
See this on a develop production install on centos7 . Screenshot attached.
Files
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 71
Appears to be a recent regression, looks fine on 1.10.
Updated by Ohad Levy almost 9 years ago
- Related to Bug #13706: Dashboard items are on top added
Updated by Dominic Cleal almost 9 years ago
- Status changed from New to Assigned
- Assignee set to Dominic Cleal
Updated by The Foreman Bot almost 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3341 added
Updated by Dominic Cleal almost 9 years ago
Some additional data from an installation suffering from this bug. When rendering the dashboard with a new user's seeded widgets, all rows and cols are 1, but the order of widgets returned from the database is the reverse of what you'd expect:
irb(main):008:0> User.first.widgets => #<ActiveRecord::Associations::CollectionProxy [#<Widget id: 12, user_id: 3, template: "distribution_widget", name: "Distribution chart", data: {}, sizex: 6, sizey: 1, col: 1, row: 1, hide: false, created_at: "2016-03-17 11:12:43", updated_at: "2016-03-17 11:12:43">, #<Widget id: 11, user_id: 3, template: "reports_widget", name: "Report summary", data: {}, sizex: 6, sizey: 1, col: 1, row: 1, hide: false, created_at: "2016-03-17 11:12:43", updated_at: "2016-03-17 11:12:43">, #<Widget id: 10, user_id: 3, template: "status_chart_widget", name: "Status chart", data: {}, sizex: 4, sizey: 1, col: 1, row: 1, hide: false, created_at: "2016-03-17 11:12:43", updated_at: "2016-03-17 11:12:43">, #<Widget id: 9, user_id: 3, template: "status_widget", name: "Status table", data: {}, sizex: 8, sizey: 1, col: 1, row: 1, hide: false, created_at: "2016-03-17 11:12:43", updated_at: "2016-03-17 11:12:43">]>
IDs are actually descending, and so the dashboard ends up "backwards", in the opposite order to the default widget registration order.
Updated by Dominic Cleal almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 076608d7629efb4e50de3667d1c26e63fe092553.
Actions