Skip to content

Commit

Permalink
[#484] initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyBA committed Dec 11, 2024
1 parent 4f1767d commit 0c8dd95
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions docker/setup_configuration/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/objects/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit 0c8dd95

Please sign in to comment.