Skip to content

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

Merged
merged 2 commits into from
May 29, 2025
Merged

Conversation

ameliahsu
Copy link
Member

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

Screenshot 2025-05-28 at 1 10 36 PM

example of branching frequency condition, for reference:
Screenshot 2025-05-28 at 1 15 09 PM

@ameliahsu ameliahsu requested a review from scttcper May 28, 2025 20:18
@ameliahsu ameliahsu requested a review from a team as a code owner May 28, 2025 20:18
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 28, 2025
{
key: DataConditionHandlerSubgroupType.FREQUENCY,
label: t('Filter by Frequency'),
options: Array.from(new Set(frequencyOptions)),
Copy link
Member

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

Copy link
Member Author

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

@ameliahsu ameliahsu merged commit 7d027c5 into master May 29, 2025
43 checks passed
@ameliahsu ameliahsu deleted the mia/aci/group-data-conditions branch May 29, 2025 17:14
andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
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"
/>
@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants