diff --git a/CHANGELOG.md b/CHANGELOG.md index 208ee38..3066c60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,18 @@ drc restart migrations; drc logs -ft --tail=200 migrations drc pull frontend; drc up -d frontend ``` +## v1.30.2 (2025-02-28) +### Backend +- 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 +#### 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] @@ -17,6 +29,7 @@ drc pull frontend; drc up -d frontend ``` 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) 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 + } +} 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) +}