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

New feature - Alert muting #4276

Merged
merged 7 commits into from
Nov 2, 2019
Merged

New feature - Alert muting #4276

merged 7 commits into from
Nov 2, 2019

Conversation

ranbena
Copy link
Contributor

@ranbena ranbena commented Oct 22, 2019

  • Feature

Description

Added ability to mute alert.

UX discussion in https://discuss.redash.io/t/alert-feature-toggle-notifications-on-off/4704/4

Added "Mute Notifications" to the menu button, with an extra unmute button in the prompt:

Screen Shot 2019-10-22 at 14 05 16

Alerts list page also shows muted status:

Screen Shot 2019-10-22 at 14 09 40

In action:

@ranbena ranbena mentioned this pull request Oct 22, 2019
2 tasks
right: 14px;
top: 9px;
right: 0;
top:-33px;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just locks the "+Add" button to its parent instead of the whole wrapper.
Needed cause this section gets pushed down by the "Notifications are muted" block.

@ranbena ranbena changed the title [WIP] New feature - Alert muting New feature - Alert muting Oct 22, 2019
@ranbena ranbena marked this pull request as ready for review October 22, 2019 16:38
@ranbena ranbena requested a review from arikfr October 22, 2019 16:39
@ranbena ranbena self-assigned this Oct 22, 2019
@ranbena
Copy link
Contributor Author

ranbena commented Oct 29, 2019

@arikfr requesting your review

arikfr
arikfr previously requested changes Oct 29, 2019
Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UI is great, but you also need to implement the actual muting... :-)

I would suggest to exit early in notify_subscriptions from redash.tasks.alerts when mute is on.

@ranbena ranbena requested a review from arikfr October 29, 2019 21:26
@arikfr arikfr merged commit 5fd78fd into master Nov 2, 2019
@arikfr arikfr deleted the alert-mute branch November 2, 2019 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants