-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLI-921] Constraints to match strings or arrays of strings containing a substring #2884
Comments
@epahl-atlassian what if we supported regex? would this allow you to accomplish what you need? Ie: |
@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. |
I have a similar requirement for a I've been trying to think of other ways but not sure if there are any supported ways currently? Initially our list was a JSON array which seems to be an unsupported data type but |
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: