Skip to content

Configurable validation rules for configuration values #8

Description

@mlopezFC

The problem

Any value can be saved into any configuration. A retention period accepts -1, a threshold accepts 999999, an email pattern accepts something that is not an email — and the application finds out at the point of use rather than at the point of entry.

What we have in mind

Validation rules declared per configuration and enforced in the editing UI:

  • Integer ranges
  • Date ranges
  • String patterns (regex)

Open question worth comments: whether a rule that rejects a value already stored should block saving unrelated changes, or just flag it.


Opened from our own backlog when this tracker went public. If you need this, say so — comments and concrete use cases are what move something up the list.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions