Actions
Refactor #13883
closedHost::Managed.last_report_object association uses deprecated :order parameter
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
The last_report_object association on Host::Managed uses a deprecated :order parameter, but should use a scope block and call the order() method, e.g.
has_one :last_report_object, ... :order => "#{Report.table_name}.id DESC"
becomes
has_one :last_report_object, -> { order("#{Report.table_name}.id DESC") }
The interfaces association in Host::Base was already changed like this in #7230.
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/3234 added
Updated by Dominic Cleal over 8 years ago
- Blocks Feature #13244: Upgrade Ruby on Rails to 4.2 added
Updated by Dominic Cleal over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 3d2098bd472851ce4d030ff78adc30044eaa7d3b.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 136
Updated by Marek Hulán over 8 years ago
- Related to Bug #14012: Errors on hosts status, configuration status is out of sync added
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release changed from 136 to 71
Updated by Stephen Benjamin over 8 years ago
- Has duplicate Bug #14352: Configuration status is getting marked out of sync incorrectly added
Updated by Stephen Benjamin over 8 years ago
- Bugzilla link changed from 14352 to 1321104
Actions