-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
current: (cel;bindings.reslove(outputs_result).Namespaces.exists(ns, ns.ID==bindings.resolve(namespace_id)))
expect: (cel; $outputs_result.Namespaces.exists(ns, ns.ID==$namespace_id))
Solution Description
func parseExpressionRegex(_ context.Context, in string) *Expression {
....
// parse statement
if out.Engine == expression.CompilerCEL {
in = celBindingAdapter(in)
}
....
}
func celBindingAdapter(in string) string {
return regexp.MustCompile(`\$([\w-_]+)`).ReplaceAllString(in, "bindings.resolve('$1')")
}
Alternatives
no
Additional Context
No response
Slack discussion
No response
Research
- I have searched other issues in this repository and mine is not recorded.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request