Actions
Bug #18841
closedAvoid N+1 query in foreman hosts index by declaring proper scope
Difficulty:
Triaged:
No
Description
Add this to plugin declaration:
add_controller_action_scope(::Api::V2::HostsController, :index) do |base_scope| base_scope.includes(:policies) end
Updated by Shimon Shtein over 7 years ago
Add similar handling to UI hosts controller too.
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Shimon Shtein
- Pull request https://github.com/theforeman/foreman_openscap/pull/247 added
Updated by Shimon Shtein over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_openscap|901f778720f441746e296edd363f8a37c5e73975.
Updated by Marek Hulán over 7 years ago
- Translation missing: en.field_release set to 225
Updated by Ivan Necas over 7 years ago
- Target version changed from 1.12.0 to 1.12.2
Actions