Project

General

Profile

Tracker #29939

Improve setting definition DSL and move setting registry to memory

Added by Ondřej Ezr over 1 year ago. Updated 3 days ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
Settings
Target version:
-
% Done:

77%

Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Currently we have all the settings (both changed and unchanged) in the database, but we have all the defaults in code as well, so it makes no sense to have quite a heavy code base to keep both in sync.
Instead I'd like to bring the setting inventory into memory and database would keep only the changed settings.

It should give as an easy way for plugins to extend settings category not just adding a new one.


Subtasks

Refactor #30860: Create SettingPresenter as a proxy for setting UI valuesClosedOndřej Ezr
Refactor #30861: Move setting value collections to SettingPresenterNewOndřej Ezr
Feature #30862: Introduce SettingRegistry as a setting inventoryClosedOndřej Ezr
Refactor #31471: Deprecate setting timestamps in API responsesClosedOndřej Ezr
Feature #32286: Create a new setting definition DSLClosedOndřej Ezr
Refactor #32287: Load Setting index page from memory registryClosedOndřej Ezr
Refactor #32403: Add custom validations to new setting DSLClosedOndřej Ezr
Refactor #32408: Use new DSL to define settingsNewOndřej Ezr
Refactor #32893: Use new DSL to define General settingsClosedOndřej Ezr
Refactor #33589: Use new DSL to define Authentication settingsReady For TestingOndřej Ezr
Refactor #33595: Use new DSL to define Email settingsReady For TestingOndřej Ezr
Refactor #33596: Use new DSL to define Notification settingsReady For TestingOndřej Ezr
Refactor #33601: Use new DSL to define Provisioning settingsReady For TestingOndřej Ezr
Refactor #33607: Use new DSL to define Puppet settingsReady For TestingOndřej Ezr
Refactor #32415: Use only SettingRegistry to read and update the settingsClosedOndřej Ezr
Bug #32489: Setting registry doesn't reload properly on autoreloadClosedOndřej Ezr
Refactor #32583: Mandatory setting typeDuplicate
Refactor #32894: Add strong typing to Setting DSLClosedOndřej Ezr
Katello - Refactor #33608: use new Settings DSL in KatelloNew

Related issues

Related to Katello - Refactor #30354: Use only public setting interface to update setting valuesClosed
Related to Foreman - Refactor #29257: remove x-editable-railsClosed
Blocks Ansible - Refactor #32409: Use new DSL to define settingsClosed
Blocks Templates - Refactor #32410: Use new DSL to define settingsNew
Blocks Discovery - Refactor #32411: Use new DSL to define settingsNew
Blocks foreman-tasks - Refactor #32412: Use new DSL to define settingsNew
Blocks Foreman Remote Execution - Refactor #32413: Use new DSL to define settingsClosed
Blocks Statistics - Refactor #32414: Use new DSL to define settingsNew

History

#1 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7702 added

#2 Updated by Ondřej Ezr over 1 year ago

  • Related to Refactor #30354: Use only public setting interface to update setting values added

#3 Updated by Amit Upadhye about 1 year ago

  • Target version changed from 2.2.0 to 2.3.0

#4 Updated by Ondřej Ezr about 1 year ago

  • Subject changed from Add extension point to setting defaults to Move setting registry into a memory

#5 Updated by Ondřej Ezr about 1 year ago

  • Description updated (diff)

#6 Updated by Ondřej Ezr about 1 year ago

  • % Done set to 0
  • Tracker changed from Feature to Tracker
  • Pull request deleted (https://github.com/theforeman/foreman/pull/7702)

#7 Updated by Ondřej Ezr about 1 year ago

  • Description updated (diff)

#8 Updated by Ondřej Ezr about 1 year ago

#9 Updated by Ondřej Ezr 11 months ago

  • Target version changed from 2.3.0 to 2.4.0

#10 Updated by Tomer Brisker 9 months ago

  • Target version deleted (2.4.0)

#11 Updated by Amit Upadhye 9 months ago

  • Target version set to 2.5.0

#12 Updated by Ondřej Ezr 7 months ago

  • Subject changed from Move setting registry into a memory to Improve setting definition DSL and move setting registry to memory

#13 Updated by Ondřej Ezr 6 months ago

#14 Updated by Ondřej Ezr 6 months ago

#15 Updated by Ondřej Ezr 6 months ago

#16 Updated by Ondřej Ezr 6 months ago

#17 Updated by Ondřej Ezr 6 months ago

#18 Updated by Ondřej Ezr 6 months ago

#19 Updated by Ondřej Ezr 6 months ago

  • Target version deleted (2.5.0)

Also available in: Atom PDF