Skip to content
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

Prevent Second Popup When Disabling Detection #721

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

coreyogburn
Copy link
Contributor

When disabling a detection, we want to offer a popup to the user asking "Do you also want to acknowledge all alerts for this detection?" This popup is controlled by the Detection Panel and is desired. However if the user clicks Yes, the panel calls out to the alerts page to do the actual acknowledging. At the page level, a new optional parameter was added to the ack function to help with a soon-to-be-implemented feature where every event can be escalated and this too will have a dialog. The detection panel was failing to provide the new optional parameter that would hide this second page-level popup and thus 2 confirmation popups were being displayed. Having the detection panel pass true for this optional parameter prevents the second popup and provides the user with a cleaner experience as we originally intended.

Updated test.

When disabling a detection, we want to offer a popup to the user asking "Do you also want to acknowledge all alerts for this detection?" This popup is controlled by the Detection Panel and is desired. However if the user clicks Yes, the panel calls out to the alerts page to do the actual acknowledging. At the page level, a new optional parameter was added to the ack function to help with a soon-to-be-implemented feature where every event can be escalated and this too will have a dialog. The detection panel was failing to provide the new optional parameter that would hide this second page-level popup and thus 2 confirmation popups were being displayed. Having the detection panel pass `true` for this optional parameter prevents the second popup and provides the user with a cleaner experience as we originally intended.

Updated test.
@coreyogburn coreyogburn merged commit f25940f into 2.4/dev Jan 16, 2025
3 checks passed
@coreyogburn coreyogburn deleted the cogburn/multi-confirm-fix branch January 16, 2025 17:50
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants