From c72093ad4be008085cc6dd9b5dbfe6c29fd8b5cb Mon Sep 17 00:00:00 2001 From: mirdono Date: Tue, 25 Feb 2025 11:49:00 +0100 Subject: [PATCH 1/5] feat: set end date for AGB's governing bodies The governing bodies for an AGB have the same legislature as the corresponding municipality. This sets the end date for the existing Raad van bestuur and Algemene vergadering governing bodies. --- ...sert-end-dates-agb-governing-bodies.sparql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config/migrations/2025/20250225102801-agb-update-governing-bodies-new-legislature/20250225102801-insert-end-dates-agb-governing-bodies.sparql diff --git a/config/migrations/2025/20250225102801-agb-update-governing-bodies-new-legislature/20250225102801-insert-end-dates-agb-governing-bodies.sparql b/config/migrations/2025/20250225102801-agb-update-governing-bodies-new-legislature/20250225102801-insert-end-dates-agb-governing-bodies.sparql new file mode 100644 index 0000000..1ef9f2a --- /dev/null +++ b/config/migrations/2025/20250225102801-agb-update-governing-bodies-new-legislature/20250225102801-insert-end-dates-agb-governing-bodies.sparql @@ -0,0 +1,23 @@ +PREFIX mandaat: +PREFIX besluit: +PREFIX org: +PREFIX generiek: + +INSERT { + GRAPH { + ?timedBody mandaat:bindingEinde "2024-12-31"^^xsd:dateTime + } +} WHERE { + GRAPH { + ?agb a besluit:Bestuurseenheid; + org:classification . # AGB + ?body besluit:bestuurt ?agb; + org:classification ?classification. + ?timedBody generiek:isTijdspecialisatieVan ?body. + FILTER NOT EXISTS {?timedBody mandaat:bindingEinde ?endDate.} + } + VALUES ?classification { + # Algemene vergadering + # Raad van bestuur + } +} From 9a71662b49c62e8c49a8a68ec4e74ce13693ca9f Mon Sep 17 00:00:00 2001 From: mirdono Date: Wed, 26 Feb 2025 12:55:54 +0100 Subject: [PATCH 2/5] feat: add timed governing bodies for new legislature for AGBs The governing bodies for an AGB have the same legislature as the corresponding municipality. This adds new time specialised governing bodies for the new (current) legislature for Raad van bestuur and Algemene vergadering. --- ...ed-governing-bodies-new-legislature.sparql | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 config/migrations/2025/20250225102801-agb-update-governing-bodies-new-legislature/20250225112043-insert-timed-governing-bodies-new-legislature.sparql diff --git a/config/migrations/2025/20250225102801-agb-update-governing-bodies-new-legislature/20250225112043-insert-timed-governing-bodies-new-legislature.sparql b/config/migrations/2025/20250225102801-agb-update-governing-bodies-new-legislature/20250225112043-insert-timed-governing-bodies-new-legislature.sparql new file mode 100644 index 0000000..f115434 --- /dev/null +++ b/config/migrations/2025/20250225102801-agb-update-governing-bodies-new-legislature/20250225112043-insert-timed-governing-bodies-new-legislature.sparql @@ -0,0 +1,32 @@ +PREFIX mandaat: +PREFIX besluit: +PREFIX org: +PREFIX generiek: +PREFIX mu: +PREFIX skos: + +INSERT { + GRAPH { + ?timedGoverningBody a besluit:Bestuursorgaan; + mu:uuid ?timedGoverningBodyUuid; + generiek:isTijdspecialisatieVan ?governingBody; + mandaat:bindingStart "2025-01-02"^^xsd:dateTime; + mandaat:bindingEinde "2030-12-31"^^xsd:dateTime. + } +} WHERE { + VALUES ?governingBodyClassification { + # Algemene vergadering + # Raad van bestuur + } + + GRAPH { + ?agb a besluit:Bestuurseenheid; + org:classification ; # AGB + mu:uuid ?organizationUuid. + ?governingBody besluit:bestuurt ?agb; + org:classification ?governingBodyClassification. + } + + BIND(SHA256(CONCAT(STR(?governingBodyClassification), " 2025 ", STR(?governingBody), STR(?organizationUuid))) AS ?timedGoverningBodyUuid) + BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", STR(?timedGoverningBodyUuid))) AS ?timedGoverningBody) +} From ee8dbbe72db0b2423b0bc91ddd3d74654612a508 Mon Sep 17 00:00:00 2001 From: mirdono Date: Wed, 26 Feb 2025 12:47:55 +0100 Subject: [PATCH 3/5] chore: update changelog --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71cd429..b31b36c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Changelog ## Unreleased +## v1.30.2 (TODO) +### Backend +- Datafix: add new timed governing bodies for new legislature for AGBs [DL-6418] +### Deploy notes +- Restart the migration service +- Start a healing job the public producer, or wait for it to kick in overnight +#### Deploy commands +``` +drc restart migrations; drc logs -ft --tail=200 migrations +drc exec delta-producer-background-jobs-initiator curl -X POST http://localhost/public/healing-jobs +``` + ## v1.30.1 (2025-02-20) ### Backend - Bestuursorgaanclassificatiecode of VGC was in wrong graph, so it wouldn't export. [DL-6428] @@ -8,6 +20,7 @@ ``` drc restart migrations ``` + ## v1.30.0 (2025-02-19) ### Frontend - Bump to version [v1.29.0](https://github.com/lblod/frontend-organization-portal/releases/tag/v1.29.0) From 853b2ddd858e81bf8e7411487fecae5a1ff320e1 Mon Sep 17 00:00:00 2001 From: mirdono Date: Fri, 28 Feb 2025 15:06:47 +0100 Subject: [PATCH 4/5] chore: update changelog with pre-release --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b31b36c..4bf1d4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # Changelog ## Unreleased -## v1.30.2 (TODO) +## v1.30.2 (Pre-release v1.30.2-0 on 2025-02-28) ### Backend -- Datafix: add new timed governing bodies for new legislature for AGBs [DL-6418] +- Datafix: add new timed governing bodies for new legislature for AGBs [OP-3552] ### Deploy notes - Restart the migration service - Start a healing job the public producer, or wait for it to kick in overnight From 395707593dc710c4fc47b9e9e1b1053cc36f2057 Mon Sep 17 00:00:00 2001 From: mirdono Date: Fri, 28 Feb 2025 16:56:23 +0100 Subject: [PATCH 5/5] chore: update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bf1d4a..b1a755b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ## Unreleased -## v1.30.2 (Pre-release v1.30.2-0 on 2025-02-28) +## v1.30.2 (2025-02-28) ### Backend - Datafix: add new timed governing bodies for new legislature for AGBs [OP-3552] ### Deploy notes