Allow users to specify rule min/max treatment #689
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explain pull request
MDS does not currently specify whether Policy Rule
minimum
andmaximum
values are considered within bounds when evaluating whether something matches the rule (in other words, whether the rule bounds are a open, closed, or half-open interval). This PR adds new fields to Policy Rules that allow users to individually specify the treatment of theminimum
andmaximum
values.The new fields are called
inclusive_minimum
andinclusive_maximum
. They are boolean fields that both default to true.Is this a breaking change
I don't think this is breaking, but it does define that by default rule
minimum
andmaximum
are considered within the rule bounds, which could potentially break interpretation of existing policy rules.Impacted Spec
policy
Additional context
This is an alternative PR to #677, we should pick one or the other.