kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
13.1k stars 1.15k forks source link

Same filter can be applied multiple times #6028

Open smunteankestra opened 1 day ago

smunteankestra commented 1 day ago

Describe the issue

Filter duplication should no be allowed image

Environment

kratosmy commented 4 hours ago

Hi, @MilosPaunovic , could I take this one?

MilosPaunovic commented 4 hours ago

Absolutely, go for it @kratosmy! 🚀

Small note - it should probably be done in the callback method for the third dropdown (for values) - there's going the be needed a check if type and comparator already exist, and if the multiple selection for that comparator is enabled, then add the value, if it's not, then replace the existing value with the new one.

kratosmy commented 4 hours ago

Absolutely, go for it @kratosmy! 🚀当然,去吧!🚀

Small note - it should probably be done in the callback method for the third dropdown (for values) - there's going the be needed a check if type and comparator already exist, and if the multiple selection for that comparator is enabled, then add the value, if it's not, then replace the existing value with the new one.小提示 - 可能应在第三个下拉菜单(值)的回调方法中完成 - 需要检查 type比较器是否已经存在,如果该比较器的多重选择已启用,则添加值,如果未启用,则用新值替换现有值。

thanks for your note😄