From 920f78e51d9cdf50108e486113c80bdb89dc843d Mon Sep 17 00:00:00 2001 From: mirdono Date: Thu, 20 Feb 2025 18:20:51 +0100 Subject: [PATCH 1/2] chore: move status for municipalities and provinces in shared graph For new frontend functionality concerning local involvements a worship user should be able to read the status for municipalities and provinces. This migrations moves these triples to the shared graph such worship users have read access. The status for municipalities and provinces cannot be changed by users so no write access is needed. --- ...ities-and-provinces-to-shared-graph.sparql | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config/migrations/2025/20250220171921-move-status-for-municipalities-and-provinces-to-shared-graph.sparql diff --git a/config/migrations/2025/20250220171921-move-status-for-municipalities-and-provinces-to-shared-graph.sparql b/config/migrations/2025/20250220171921-move-status-for-municipalities-and-provinces-to-shared-graph.sparql new file mode 100644 index 0000000..92813b0 --- /dev/null +++ b/config/migrations/2025/20250220171921-move-status-for-municipalities-and-provinces-to-shared-graph.sparql @@ -0,0 +1,28 @@ +PREFIX regorg: +PREFIX besluit: +PREFIX org: + +DELETE { + GRAPH { + ?organisation regorg:orgStatus ?status. + } +} INSERT { + GRAPH { + ?organisation regorg:orgStatus ?status. + } +} WHERE { + GRAPH { + ?organisation a besluit:Bestuurseenheid; + org:classification ?class. + FILTER (?class IN + ( + , # Municipality + # Province + ) + ) + } + + GRAPH { + ?organisation regorg:orgStatus ?status. + } +} From a7d77241d0825db259842cca32689aa2401bcff4 Mon Sep 17 00:00:00 2001 From: mirdono Date: Mon, 24 Feb 2025 14:38:23 +0100 Subject: [PATCH 2/2] chore: update changelog --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51a30b2..eeec6ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog ## Unreleased +### Frontend +- Bump to version [TODO](Link to frontend release) +### Backend +- Datafix: move status for municipalities and provinces to the `shared` graph such that it can be read by worship users [OP-3469] +### Deploy notes +``` +drc restart migrations; drc logs -ft --tail=200 migrations +drc pull frontend; drc up -d frontend +``` ## v1.30.0 (2025-02-19) ### Frontend @@ -14,7 +23,6 @@ - Remove several OCMW bcsd faciliteitgemeenten [OP-3535] - Completely remove AGB Stekene's data. [OP-3409] - Remove reasoner service, replaced by new consumer logic - ### Deploy Notes - Before pulling the changes + Shut down the reasoner and thank it for its good service: `drc down reasoner`