Actions
User story #8228
closedAdd constraints to ncf parameters
Effort required:
Name check:
Fix check:
Regression:
Description
Currently in ncf, all parameters are string that should not be empty with no trailling/leading whitespace and are trimmed.
This prevent some usecases. like #8151
We will add a field as metadata in our generic methods like this:
@parameter_constraint <param_name> constraint_1 : value_1, constraint_2 : value_2
constraint will be defined as a simili json, so we can defined several at the same time.
Some constraint we want to define:
allow_empty_string
allow_whitespace_string
list of values
matching regexp
non matching regexp
minimal size
maximal size
This issue will have a pull request on the python API
Updated by Vincent MEMBRÉ over 8 years ago
- Related to Bug #8151: Technique Editor - whitespace as separator in "File ensure keys -> values present" method added
Updated by Jonathan CLARKE over 8 years ago
- Subject changed from Add constraint to ncf parameters to Add constraints to ncf parameters
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from New to In progress
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/ncf/pull/350
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset commit:15a5d75258c82a05a13329c7f025ef626b44e10d.
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from Pending release to Discussion
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from Discussion to Pending release
- % Done changed from 0 to 100
Applied in changeset a808aa99b2a53430bf8218a1a07d901834a9dbe0.
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from Pending release to Released
Updated by Alexis Mousset over 2 years ago
- Target version changed from 0.x to ncf-0.x
Updated by Alexis Mousset over 2 years ago
- Project changed from 41 to Rudder
- Category set to Generic methods
Actions