OneUptime / oneuptime

OneUptime is the complete open-source observability platform.
https://oneuptime.com
Apache License 2.0
4.85k stars 228 forks source link

Increase functionality of If/Else component in workflows #1635

Closed luisxkimo closed 3 months ago

luisxkimo commented 3 months ago

Is your feature request related to a problem? Please describe. This component its very limited to implement a bit more complex operations to compare, for example "contains/not contains" or add more than 2 input values and AND/OR operators between them.

Describe the solution you'd like There are some options that we could have here, one of them could be:

  1. Let add input files as the user wants (maybe with a high limit to avoid performance issues)
  2. Add functions like AND/OR between conditions
  3. Add more operations like "contains", "no contains", "is empty",
  4. NICE TO HAVE: have at least 2 levels of "nesting" in if/else conditions
Kuldran commented 3 months ago

That would be something I to would be interested in.

simlarsen commented 3 months ago

We have added Starts With, Ends With, Contains, Does not Contain.

For recursive conditions, its much easier to use JavaScript component and write a script there.

Please let me know if this helps!

simlarsen commented 3 months ago

Please check: https://github.com/OneUptime/oneuptime/pull/1648