From 0d87feb11911e8ac310d0ec2639700bb207f3b8f Mon Sep 17 00:00:00 2001 From: wolfderechter <60930264+wolfderechter@users.noreply.github.com> Date: Tue, 1 Apr 2025 09:42:56 +0200 Subject: [PATCH 1/3] Remove change events from ckb's and update their status (#535) * Remove change events from ckb's and update their status * move status migration to triggering-indexing * remove unneeded code * update changelog --- CHANGELOG.md | 8 ++- .../20250327135401-update-ckb-statuses.sparql | 42 +++++++++++++++ ...20250327135321-delete-change-events.sparql | 53 +++++++++++++++++++ 3 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 config/migrations-triggering-indexing/2025/20250327135401-update-ckb-statuses.sparql create mode 100644 config/migrations/2025/20250327135321-delete-change-events.sparql diff --git a/CHANGELOG.md b/CHANGELOG.md index d6bac3a..d6b4418 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog ## Unreleased - +### Backend +- Removal of change events of 8 ckb's + update of their status [OP-3562] +### Deploy Notes +``` +drc restart migrations-triggering-indexing; drc logs -ft --tail=200 migrations-triggering-indexing +drc restart migrations; drc logs -ft --tail=200 migrations +``` ## v1.31.0 (2025-03-27) ### Frontend - Bump to version [v1.30.0](https://github.com/lblod/frontend-organization-portal/blob/v1.30.0/CHANGELOG.md#v1300-2025-03-27) diff --git a/config/migrations-triggering-indexing/2025/20250327135401-update-ckb-statuses.sparql b/config/migrations-triggering-indexing/2025/20250327135401-update-ckb-statuses.sparql new file mode 100644 index 0000000..1ad5864 --- /dev/null +++ b/config/migrations-triggering-indexing/2025/20250327135401-update-ckb-statuses.sparql @@ -0,0 +1,42 @@ +PREFIX regorg: + +DELETE { + GRAPH { + ?s regorg:orgStatus ?activeStatus. + } +} INSERT { + GRAPH { + ?s regorg:orgStatus ?notActiveStatus. + } +} WHERE { + VALUES ?s { + + + + + + + + } + BIND ( AS ?notActiveStatus) + BIND ( AS ?activeStatus) +} + +; + +DELETE { + GRAPH { + ?s regorg:orgStatus ?notActiveStatus. + } +} INSERT { + GRAPH { + ?s regorg:orgStatus ?activeStatus. + } +} WHERE { + VALUES ?s { + + + } + BIND ( AS ?notActiveStatus) + BIND ( AS ?activeStatus) +} diff --git a/config/migrations/2025/20250327135321-delete-change-events.sparql b/config/migrations/2025/20250327135321-delete-change-events.sparql new file mode 100644 index 0000000..07d1934 --- /dev/null +++ b/config/migrations/2025/20250327135321-delete-change-events.sparql @@ -0,0 +1,53 @@ +PREFIX core: +PREFIX org: +PREFIX lblodorg: +PREFIX euro: +PREFIX besluit: + +DELETE { + GRAPH { + ?event ?ep ?eo . + + ?result ?rp ?ro . + + ?decision ?de ?do . + } +} +WHERE { + GRAPH { + VALUES ?changeEventUuid { + "675AFDCA29299CC832892989" # CKB Beveren + + "675AC8C529299CC83289296D" # CKB De Pinte + + "675AC99229299CC83289296F" # CKB Merelbeke + + "675AB94329299CC83289295D" # CKB Galmaarden + "675AD32529299CC83289297B" # CKB Galmaarden + + "675AB98C29299CC83289295F" # CKB Gooik + "675AD47629299CC83289297D" # CKB Gooik + + "675AD50229299CC83289297F" # CKB Herne + "675AB9D229299CC832892961" # CKB Herne + + "675ACA5F29299CC832892971" # CKB Tessenderlo + + "6774F73E29299CC8328929D3" # CKB Ham + } + + ?event a org:ChangeEvent ; + core:uuid ?changeEventUuid ; + lblodorg:veranderingsgebeurtenisResultaat ?result ; + ?ep ?eo . + + ?result a lblodorg:VeranderingsgebeurtenisResultaat ; + ?rp ?ro . + + OPTIONAL { + ?event euro:hasFormalFramework ?decision . + ?decision a besluit:Besluit ; + ?de ?do . + } + } +} From 0497b23facb4932f41558b02194d05216cf97f17 Mon Sep 17 00:00:00 2001 From: wolfez Date: Tue, 1 Apr 2025 09:53:23 +0200 Subject: [PATCH 2/3] release v1.31.1 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6b4418..8ef9dba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # Changelog -## Unreleased +## v1.31.1 (2025-04-01) ### Backend - Removal of change events of 8 ckb's + update of their status [OP-3562] ### Deploy Notes From c0d23e6178556acc59bb3297a6733aac531099b9 Mon Sep 17 00:00:00 2001 From: mirdono Date: Tue, 1 Apr 2025 17:26:28 +0200 Subject: [PATCH 3/3] chore: corrected changelog The entries about the public producer changes accidentally ended up in the v1.31.0 section but were not actually part of this release. This moves them back to the unreleased section so they are correctly included in the next release. --- CHANGELOG.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5419751..5e2674a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Changelog +## Unreleased +### Backend +- Extend the public producer to include NIS codes and more info in representative organs (sites, status) [CLBV-980] +### Deploy notes +``` +drc restart delta-producer-publication-graph-maintainer +``` + ## v1.31.1 (2025-04-01) ### Backend - Removal of change events of 8 ckb's + update of their status [OP-3562] @@ -7,6 +15,7 @@ drc restart migrations-triggering-indexing; drc logs -ft --tail=200 migrations-triggering-indexing drc restart migrations; drc logs -ft --tail=200 migrations ``` + ## v1.31.0 (2025-03-27) ### Frontend - Bump to version [v1.30.0](https://github.com/lblod/frontend-organization-portal/blob/v1.30.0/CHANGELOG.md#v1300-2025-03-27) @@ -18,14 +27,12 @@ drc restart migrations; drc logs -ft --tail=200 migrations - Set up the dashboard app [OP-3103] - Datafix: correct date of change event of kerkfabriek st petrus [OP-3555] - Update OCMWv to VVMW [OP-3565] and back. It's technically a nil-operation. But you should run the migrations nevertheless. -- Extend the public producer to include NIS codes and more info in representative organs (sites, status) [CLBV-980] ### Deploy notes ``` drc restart migrations-triggering-indexing drc restart migrations; drc logs -ft --tail=200 migrations drc pull frontend; drc up -d frontend drc up -d mandatarissen-consumer leidinggevenden-consumer worship-services-main-info-consumer worship-services-private-info-consumer -drc restart delta-producer-publication-graph-maintainer ``` #### For upgrade databases [This README](https://github.com/Riadabd/upgrade-virtuoso) provides the necessary steps for upgrading the database. **NOTE**: This will involve shutting down the app for small period of time (around 30 minutes).