Refactor #32403
Tracker #29939: Improve setting definition DSL and move setting registry to memory
Add custom validations to new setting DSL
Description
I'd imagine this can be a simple lambda, that gets the setting record as parameter and performs clasical custom validation, or AR Validator class.
Related issues
Associated revisions
History
#1
Updated by Ondřej Ezr almost 2 years ago
- Blocked by Feature #32286: Create a new setting definition DSL added
#2
Updated by Ondřej Ezr almost 2 years ago
- Precedes Refactor #32408: Use new DSL to define settings added
#3
Updated by The Foreman Bot almost 2 years ago
- Assignee set to Ondřej Ezr
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8470 added
#4
Updated by The Foreman Bot over 1 year ago
- Pull request https://github.com/theforeman/foreman/pull/8624 added
#5
Updated by Ondřej Ezr over 1 year ago
- Related to Bug #32925: root_pass setting does not enforce minimum length of 8 characters as the host and hostgroups forms do added
#6
Updated by The Foreman Bot over 1 year ago
- Fixed in Releases 3.2.0 added
#7
Updated by Ondřej Ezr over 1 year ago
- Fixed in Releases 3.1.0 added
- Fixed in Releases deleted (
3.2.0)
#8
Updated by Ondřej Ezr over 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|80fb0c21bb6e1ad7bb5cacf7b1436d021d4447e5.
#9
Updated by Ondřej Ezr over 1 year ago
- Status changed from Closed to Ready For Testing
- Pull request deleted (
https://github.com/theforeman/foreman/pull/8624)
#10
Updated by Ondřej Ezr over 1 year ago
- Status changed from Ready For Testing to Closed
Mistakingly reopened
Fixes #32403 - Add validations to a setting DSL
Add ability to define validation per Setting through DSL.
It tries to keep similar syntax to rails model validations.