feat: add project script to correct aggregate location labels

The previously added migrations can create new aggregate location resources for
worship administrative units that have multiple locations as scope of
operation. While those migrations did insert a label for these new location
resources, the contained names are typically not sorted alphabetically as
`GROUP_CONCAT` does not provide guarantees on sorting.

This script allows to generate additional migrations to correct those labels.

Co-authored-by: @cecemel
This commit is contained in:
mirdono
2025-07-10 11:10:09 +02:00
parent 387ef1eeea
commit 6dfb0a656f
2 changed files with 122 additions and 0 deletions

View File

@@ -17,6 +17,22 @@
"app": "/app/"
}
},
{
"documentation": {
"command": "correct-location-labels",
"description": "generate migrations to correct the labels of aggregated locations",
"arguments": []
},
"environment": {
"image": "nvdk/ruby-semantic-works-cli",
"interactive": true,
"script": "correct-location-labels/run.rb",
"join_networks": true
},
"mounts": {
"app": "/app/"
}
},
{
"documentation": {
"command": "mu-search-delta",