diff --git a/CHANGELOG.md b/CHANGELOG.md index 38c9346..5e2674a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # 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] +### 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 @@ -12,14 +27,12 @@ - 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). 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 . + } + } +}