Project

General

Profile

Actions

Refactor #17085

open

Make use of index scope DSL

Added by Lukas Zapletal over 7 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Discovery plugin
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

Shim added (#16646) the ability for plugins to modify the scope used to get hosts for #index action. This is needed if a plugin wants to add more includes or eager_load statements, so Active Record won't try to lazy load additional relations and create N+1 queries.

Discovery should take advantage of this.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #16646: Allow Foreman controllers to be extended to include fields from external pluginsClosedShimon Shtein09/21/2016Actions
Actions

Also available in: Atom PDF