From 3bc47a7fb0d9be8c4ea94c84bd0f7843c0df0cde Mon Sep 17 00:00:00 2001 From: mirdono Date: Tue, 14 Jan 2025 10:32:56 +0100 Subject: [PATCH] fix: merger change event between St.-Amandus and Sint-Martinus The worship service St.-Amandus was not included as `orginalOrganization` in the merger change event somehow. As a result it was not listed as involved organisation in the change event details. Furthermore, its status was not correctly updated to "Not active". --- ...ange-event-sint_martinus-st_amandus.sparql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config/migrations-triggering-indexing/20250114093158-fix-merger-change-event-sint_martinus-st_amandus.sparql diff --git a/config/migrations-triggering-indexing/20250114093158-fix-merger-change-event-sint_martinus-st_amandus.sparql b/config/migrations-triggering-indexing/20250114093158-fix-merger-change-event-sint_martinus-st_amandus.sparql new file mode 100644 index 0000000..cafa7f5 --- /dev/null +++ b/config/migrations-triggering-indexing/20250114093158-fix-merger-change-event-sint_martinus-st_amandus.sparql @@ -0,0 +1,23 @@ +PREFIX regorg: +PREFIX org: + +DELETE { + GRAPH { + ?stAmandus regorg:orgStatus ?oldStatus. + } +} INSERT { + GRAPH { + ?stAmandus regorg:orgStatus ?notActiveStatus. + + ?mergerChangeEvent org:originalOrganization ?stAmandus. + } +} WHERE { + GRAPH { + ?stAmandus regorg:orgStatus ?oldStatus. + } + VALUES ?stAmandus { + + } + BIND ( AS ?mergerChangeEvent) + BIND ( AS ?notActiveStatus) +}