From e9327a435794cb4d25f3299225376cc02cfc602c Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Wed, 9 Apr 2025 12:40:34 +0200 Subject: [PATCH] Add migration and instructions to reset kbo sync --- CHANGELOG.md | 9 +++++++++ ...eset-kbo-organization-modified-to-resync.sparql | 14 ++++++++++++++ docker-compose.yml | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 config/migrations/2025/20250409115500-reset-kbo-organization-modified-to-resync.sparql diff --git a/CHANGELOG.md b/CHANGELOG.md index 919422f..0ff6afd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,13 @@ # Changelog +## Unreleased +### Backend +- Fix KBO statuses not being displayed [OP-3584] +### Deploy Notes +``` +drc restart migrations; drc logs -ft --tail=200 migrations +drc up -d kbo-data-sync +drc exec kbo-data-sync curl -X POST http://localhost/sync-all-kbo-data +``` ## v1.31.2 (2025-04-02) ### Backend - Extend the public producer to include: [CLBV-980] diff --git a/config/migrations/2025/20250409115500-reset-kbo-organization-modified-to-resync.sparql b/config/migrations/2025/20250409115500-reset-kbo-organization-modified-to-resync.sparql new file mode 100644 index 0000000..7e43ac4 --- /dev/null +++ b/config/migrations/2025/20250409115500-reset-kbo-organization-modified-to-resync.sparql @@ -0,0 +1,14 @@ +DELETE { + GRAPH ?g { + ?s ?modified . + } +} INSERT { + GRAPH ?g { + ?s "1000-01-01"^^xsd:date . + } +} WHERE { + GRAPH ?g { + ?s a ; + ?modified . + } +} diff --git a/docker-compose.yml b/docker-compose.yml index e2f9409..30f9966 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -312,7 +312,7 @@ services: restart: always logging: *default-logging kbo-data-sync: - image: lblod/sync-wegwijs-organization-service:2.0.2 + image: lblod/sync-wegwijs-organization-service:2.0.2 # TODO bump when https://github.com/lblod/sync-wegwijs-organization-service/pull/9 is released links: - db:database labels: