From 0c8dd95b18c3c758f91a18408e37d93d7a131e21 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Wed, 11 Dec 2024 17:43:21 +0100 Subject: [PATCH] [#484] initial commit --- docker/setup_configuration/data.yaml | 7 +++++++ requirements/base.in | 1 + requirements/base.txt | 2 +- requirements/ci.txt | 2 +- requirements/dev.txt | 2 +- src/objects/conf/base.py | 3 +++ 6 files changed, 14 insertions(+), 3 deletions(-) diff --git a/docker/setup_configuration/data.yaml b/docker/setup_configuration/data.yaml index 4691e1e6..63daf5e3 100644 --- a/docker/setup_configuration/data.yaml +++ b/docker/setup_configuration/data.yaml @@ -20,3 +20,10 @@ objects_api_objecttypes_connection: user_id: objects-api user_representation: Objects API timeout: 60 + +notifications_config_enable: true +notifications_config: + notifications_api_service_identifier: notifications-api + notification_delivery_max_retries: 1 + notification_delivery_retry_backoff: 2 + notification_delivery_retry_backoff_max: 3 diff --git a/requirements/base.in b/requirements/base.in index 8621c029..6473c837 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -8,3 +8,4 @@ furl # Common ground libraries notifications-api-common zgw-consumers[setup-configuration] +git+https://github.com/maykinmedia/notifications-api-common@feature/setup-configuration#egg=notifications_api_common diff --git a/requirements/base.txt b/requirements/base.txt index 716ada15..234aac6d 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -242,7 +242,7 @@ mozilla-django-oidc==4.0.0 # via mozilla-django-oidc-db mozilla-django-oidc-db==0.19.0 # via open-api-framework -notifications-api-common==0.3.1 +notifications-api-common @ git+https://github.com/maykinmedia/notifications-api-common@feature/setup-configuration # via # -r requirements/base.in # commonground-api-common diff --git a/requirements/ci.txt b/requirements/ci.txt index f7f994b2..1bf2a027 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -404,7 +404,7 @@ multidict==6.0.5 # via yarl mypy-extensions==1.0.0 # via black -notifications-api-common==0.3.1 +notifications-api-common @ git+https://github.com/maykinmedia/notifications-api-common@feature/setup-configuration # via # -r requirements/base.txt # commonground-api-common diff --git a/requirements/dev.txt b/requirements/dev.txt index 6d358b47..6a893e05 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -426,7 +426,7 @@ multidict==6.0.5 # via yarl mypy-extensions==0.4.3 # via black -notifications-api-common==0.3.1 +notifications-api-common @ git+https://github.com/maykinmedia/notifications-api-common@feature/setup-configuration # via # -r requirements/base.txt # commonground-api-common diff --git a/src/objects/conf/base.py b/src/objects/conf/base.py index 5ad3e3ca..1da98409 100644 --- a/src/objects/conf/base.py +++ b/src/objects/conf/base.py @@ -83,7 +83,10 @@ # # Django setup configuration # +# TODO: TODO: update documentation +# TODO: include zgw-consumers configuration step (required for NotificationConfigurationStep) SETUP_CONFIGURATION_STEPS = ( "objects.setup_configuration.steps.sites.SitesConfigurationStep", "objects.setup_configuration.steps.objecttypes.ObjectTypesConnectionConfigurationStep", + "notifications_api_common.contrib.setup_configuration.steps.NotificationConfigurationStep" )