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

[Draft] ✨ Add config option for recipients for failed notif emails #204

Draft
wants to merge 1 commit into
base: feature/notification-retry
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 3.2.13 on 2022-06-28 12:29

import django.contrib.postgres.fields
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("notifications", "0010_auto_20220627_1340"),
]

operations = [
migrations.AddField(
model_name="notificationsconfig",
name="failed_notification_admin_recipients",
field=django.contrib.postgres.fields.ArrayField(
base_field=models.EmailField(max_length=254),
blank=True,
default=list,
help_text="Komma-gescheiden lijst van emailadressen die een email moeten ontvangen als het niet gelukt is om een notificatie te versturen (na de laatste retry).",
size=None,
verbose_name="failed notification email admin recipients",
),
),
]
10 changes: 10 additions & 0 deletions vng_api_common/notifications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ class NotificationsConfig(ClientConfig):
help_text=_("an upper limit to the exponential backoff time."),
default=48,
)
failed_notification_admin_recipients = ArrayField(
models.EmailField(max_length=254),
verbose_name=_("failed notification email admin recipients"),
help_text=_(
"Komma-gescheiden lijst van emailadressen die een email moeten ontvangen "
"als het niet gelukt is om een notificatie te versturen (na de laatste retry)."
),
default=list,
blank=True,
)

class Meta:
verbose_name = _("Notificatiescomponentconfiguratie")
Expand Down