Skip to content

Commit

Permalink
Merge pull request #450 from grafana/dev
Browse files Browse the repository at this point in the history
Merge dev to main
  • Loading branch information
mderynck authored Aug 31, 2022
2 parents 5f17425 + 66bcccc commit b259352
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## v1.0.30 (2022-08-31)
- Bug fix: check user notification policy before access

## v1.0.29 (2022-08-31)
- Add arm64 docker image

Expand Down Expand Up @@ -82,7 +85,7 @@
## 1.0.2 (2022-06-17)

- Fix Grafana Alerting integration to handle API changes in Grafana 9
- Improve public api endpoint for for outgoing webhooks (/actions) by adding ability to create, update and delete outgoing webhook instance
- Improve public api endpoint for outgoing webhooks (/actions) by adding ability to create, update and delete outgoing webhook instance

## 1.0.0 (2022-06-14)

Expand Down
10 changes: 7 additions & 3 deletions engine/apps/alerts/tasks/notify_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,16 @@ def notify_group_task(alert_group_pk, escalation_policy_snapshot_order=None):
user=user,
important=escalation_policy_step == EscalationPolicy.STEP_NOTIFY_GROUP_IMPORTANT,
)
usergroup_notification_plan += "\n_{} (".format(
step.get_user_notification_message_for_thread_for_usergroup(user, notification_policies.first())
)

if notification_policies:
usergroup_notification_plan += "\n_{} (".format(
step.get_user_notification_message_for_thread_for_usergroup(user, notification_policies.first())
)

notification_channels = []
if notification_policies.filter(step=UserNotificationPolicy.Step.NOTIFY).count() == 0:
usergroup_notification_plan += "Empty notifications"

for notification_policy in notification_policies:
if notification_policy.step == UserNotificationPolicy.Step.NOTIFY:
notification_channels.append(
Expand Down
5 changes: 4 additions & 1 deletion grafana-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## v1.0.30 (2022-08-31)
- Bug fix: check user notification policy before access

## v1.0.29 (2022-08-31)
- Add arm64 docker image

Expand Down Expand Up @@ -82,7 +85,7 @@
## 1.0.2 (2022-06-17)

- Fix Grafana Alerting integration to handle API changes in Grafana 9
- Improve public api endpoint for for outgoing webhooks (/actions) by adding ability to create, update and delete outgoing webhook instance
- Improve public api endpoint for outgoing webhooks (/actions) by adding ability to create, update and delete outgoing webhook instance

## 1.0.0 (2022-06-14)

Expand Down

0 comments on commit b259352

Please sign in to comment.