-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(aci): group data condition choices #92438
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
Conversation
{ | ||
key: DataConditionHandlerSubgroupType.FREQUENCY, | ||
label: t('Filter by Frequency'), | ||
options: Array.from(new Set(frequencyOptions)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could maybe just have frequencyOptions as a set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i forgot to remove this-- this didn't work since i think the options are compared by reference, so none of the duplicates were actually removed
static/app/views/automations/components/dataConditionNodeList.tsx
Outdated
Show resolved
Hide resolved
updated dataConditionNodeList to use response data from the data conditions endpoint + added grouping by handler subgroup had to add special logic for the frequency conditions that have additional branching to determine whether to use count/percent frequency so that we don't list those conditions twice <img width="911" alt="Screenshot 2025-05-28 at 1 10 36 PM" src="https://github.com/user-attachments/assets/d23b8a8e-40da-4bd6-96d6-72b0cad1aa18" /> example of branching frequency condition, for reference: <img width="555" alt="Screenshot 2025-05-28 at 1 15 09 PM" src="https://github.com/user-attachments/assets/9180d78a-d59a-44dd-b067-031a1c0f1f5a" />
updated dataConditionNodeList to use response data from the data conditions endpoint + added grouping by handler subgroup
had to add special logic for the frequency conditions that have additional branching to determine whether to use count/percent frequency so that we don't list those conditions twice
example of branching frequency condition, for reference:
