Project

General

Profile

Actions

Refactor #19528

closed

Move FiltersHelperOverrides out of app/registries/ to permit autoloading

Added by Dominic Cleal almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

FiltersHelperOverrides has been excluded from reloading as it kept a list of role filter search overrides (http://projects.theforeman.org/projects/foreman/wiki/How_to_Create_a_Plugin#Specifying-alternate-auto-complete-path-for-Role-Filters) in a class-level variable.

This can be refactored (like #19464) to make it safe for reloading and move it into the regular services directory instead of registries. As a side effect, this will also make it more testable and less likely to leak behaviour changes between tests.

Actions

Also available in: Atom PDF