Set up auto sync of OVO numbers (#333)

* Add delta rules

* Remove delta rules

We need to use a direct endpoint to trigger the update instead of the
deltas to be able to see in the frontend the direct result of our change

* Add dispatching rule to sync ovo service

* Add released sync-ovo-number service
This commit is contained in:
Claire Lovisa
2023-10-06 11:31:40 +02:00
committed by GitHub
parent c35b3c6c3a
commit 60b9459854
3 changed files with 14 additions and 0 deletions

View File

@@ -305,6 +305,10 @@ defmodule Dispatcher do
forward conn, path, "http://construct-administrative-unit-relationships/create-relationships/"
end
post "/sync-ovo-number/*path", %{ layer: :api_services, accept: %{ json: true } } do
forward conn, path, "http://sync-ovo-numbers/sync-from-kbo/"
end
get "/ldes/*path", %{ layer: :api_services } do
forward conn, path, "http://ldes-backend/"
end

View File

@@ -84,6 +84,8 @@ services:
ldes-backend:
environment:
BASE_URL: "http://localhost/ldes/"
sync-ovo-numbers:
restart: "no"
# use this to test acmidm
# tlsproxy:
# image: caddy:2

View File

@@ -239,6 +239,14 @@ services:
- "logging=true"
restart: always
logging: *default-logging
sync-ovo-numbers:
image: lblod/sync-ovo-numbers-service:0.1.0
links:
- db:database
labels:
- "logging=true"
restart: always
logging: *default-logging
################################################################################
# DELTA GENERAL
################################################################################