From 48e0c3b3eaef94b12ede22df1f8bf373509edbae Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Fri, 8 Aug 2025 10:12:41 +0200 Subject: [PATCH] Fix province value of addresses in Brussel's area (#568) * Add municipalities of Brussels and remove province of addresses in Brussel * Update changelog * Add missing restart entry in Changelog * Remove migrations creating municipalities of Brussels --- CHANGELOG.md | 2 + ...ce-for-addresses-in-brussels-gewest.sparql | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 config/migrations-triggering-indexing/2025/20250703095300-remove-province-for-addresses-in-brussels-gewest.sparql diff --git a/CHANGELOG.md b/CHANGELOG.md index 9035e3d..48d9872 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - datafix: cleanup of general memberships if specific ones exist [OP-3640] - datafix: cleanup of duplicate memberships [OP-3634] - Fix KBO organizations' date formats [OP-3560] +- Remove province for addresses in the Brussels area [OP-3638] & [OP-3648] ### Deploy notes ``` @@ -20,6 +21,7 @@ drc restart db resource dispatcher drc pull frontend; drc up -d frontend drc restart migrations; drc logs -ft --tail=200 migrations drc up -d kbo-data-sync +drc restart migrations-triggering-indexing; drc logs -ft --tail=200 migrations-triggering-indexing ``` The labels for new location resources created when setting the scope of operation for worship services are not necessarily alphabetically sorted. To correct this run the `correct-location-labels` project script using [mu-cli](https://github.com/mu-semtech/mu-cli) and restart the migrations service once more to execute the generated local migrations. diff --git a/config/migrations-triggering-indexing/2025/20250703095300-remove-province-for-addresses-in-brussels-gewest.sparql b/config/migrations-triggering-indexing/2025/20250703095300-remove-province-for-addresses-in-brussels-gewest.sparql new file mode 100644 index 0000000..5d19fa3 --- /dev/null +++ b/config/migrations-triggering-indexing/2025/20250703095300-remove-province-for-addresses-in-brussels-gewest.sparql @@ -0,0 +1,38 @@ +DELETE { + GRAPH { + ?s ?province ; + ?werkingsgebied . + } +} WHERE { + GRAPH { + VALUES ?postCode { + "1070" + "1000" + "1020" + "1120" + "1130" + "1050" + "1040" + "1140" + "1083" + "1090" + "1081" + "1160" + "1030" + "1082" + "1060" + "1080" + "1210" + "1200" + "1150" + "1180" + "1190" + "1170" + } + + ?s a ; + ?postCode ; + ?province ; + ?werkingsgebied . + } +}