You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to match against context that is slightly irregular. For example with a constraint of CONTAINS ONE OF, I could say: "env" CONTAINSONEOF ["dev", "stg"] and
match{"env": "dev-west"} or {"env": "platdev-west"}
but not {"env": "prod-west"}
CONTAINS for the single value case, and CONTAINS ONE OF to check against an array of values.
Possibly CONTAINS ANY OF might be better terminology.
Ideal Solution
Implement constraints as described in the problem.
Search
I searched for other open and closed issues before opening this
epahl-atlassian
changed the title
Implemen CONTAINS ONE OF and CONTAINS as constraints
Constraints to match strings or arrays of strings containing a substringImplemen ONE OFCONTAINS ONE OF and CONTAINS as constraints
Mar 21, 2024
epahl-atlassian
changed the title
Constraints to match strings or arrays of strings containing a substringImplemen ONE OFCONTAINS ONE OF and CONTAINS as constraints
Constraints to match strings or arrays of strings containing a substring
Mar 21, 2024
@markphelps that could accomplish the same result (and may be a useful feature as well).
Considering the (flag) user flow, compared regex to a substring matched against an item or array of items, there is a higher complexity and risk of mistakes or burden of confirming a correct regex, so I would still prefer the contains (substring) operator.
markphelps
changed the title
Constraints to match strings or arrays of strings containing a substring
[FLI-921] Constraints to match strings or arrays of strings containing a substring
Mar 25, 2024
Problem
I would like to be able to match against context that is slightly irregular. For example with a constraint of
CONTAINS ONE OF
, I could say:"env" CONTAINSONEOF ["dev", "stg"]
and{"env": "dev-west"}
or{"env": "platdev-west"}
{"env": "prod-west"}
CONTAINS
for the single value case, andCONTAINS ONE OF
to check against an array of values.Possibly
CONTAINS ANY OF
might be better terminology.Ideal Solution
Implement constraints as described in the problem.
Search
Additional Context
No response
FLI-921
The text was updated successfully, but these errors were encountered: