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/2] 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/2] 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