Commit Graph

1635 Commits

Author SHA1 Message Date
mirdono
6dfb0a656f 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
2025-07-11 15:35:29 +02:00
mirdono
387ef1eeea feat: set scope of operation for worship administrative units
Add migrations to set the initial scope of operation for worship administrative
units. These migrations work in several steps:
1. Extract the necessary relations between worship administrative units and
   locations based on the rules provided by business and insert this data in a
   temporary graph.
2. For worship administrative units related to only a single location. Simply
   add the triple setting that location as its scope of operation.
3. For worship administrative units related to multiple locations. Create new
   location resources that aggregates all locations linked to a single worship
   administrative unit and set this new location resource as scope of operation.
4. Clear the temporary graph.
2025-07-11 15:29:03 +02:00
mirdono
5a3ae13eb0 chore: bump scope of operation service 2025-07-11 15:26:40 +02:00
mirdono
57dca52171 chore: update changelog 2025-07-11 15:26:34 +02:00
mirdono
e7e76c187b feat: allow a location to be within multiple other locations
Due to the restriction that an organisation can have only 1
location (nl. werkingsgebied) we need to create ad-hoc locations containing
multiple locations. As such enforcing that a location can only be contained in a
single other location is too restrictive. For example, this would prevent the
same municipality location to be within two (or more) different locations for
different organisations.
2025-07-11 15:07:57 +02:00
mirdono
6a85ec7c96 refactor: move prov:Location to public types
In #542 the location data was moved to the public graph. This ensures that
resources type is readable from that graph.
2025-07-11 15:07:57 +02:00
mirdono
b272e1500c feat: dispatch requests to the scope of operation service 2025-07-11 15:07:57 +02:00
mirdono
7c2a54264a feat: add scope-of-operation-service to stack
This service provides functionality to manage an organisation's scope of
operation. To this end it facilitates that each organisation can be linked with
exactly one location resources as scope of operation, internally creating and
linking the appropriate resources.
2025-07-11 15:07:57 +02:00
mirdono
74327cc371 chore: release v1.34.0 v1.34.0 2025-07-11 11:16:18 +02:00
mirdono
bfb28bb698 Merge branch 'development' 2025-07-11 11:12:57 +02:00
Kike Franssen
cc8125cb14 Migration - harmonize date formats of change events (#562) 2025-07-11 10:51:13 +02:00
mirdono
329a63a0b9 chore: pre-release v1.34.0-0 v1.34.0-0 2025-07-10 17:16:56 +02:00
mirdono
4891b6829d Merge branch 'master' into development 2025-07-04 16:24:14 +02:00
mirdono
eef379f7ed feat: add AGB Havenbedrijf Antwerpen
This organisation was removed from OP as it is officially not an administrative
unit. But it needs to be recreated to allow them to finalise subsidies via the
subsidie app.
As the resources has to be created with the same URI as before we re-add it
using a migrations instead of creating it manually via the frontend.
v1.33.3
2025-07-04 14:41:44 +02:00
mirdono
ea2d25d177 chore: bump frontend 2025-07-04 10:25:07 +02:00
Claire Lovisa
8c49134011 Merge pull request #560 from lblod/revert/remove-brussels-province-migrations
Remove migrations inserting/deleting Brussel as a province and municipality
2025-07-04 10:16:47 +02:00
Claire Lovisa
d203077364 Merge pull request #559 from lblod/revert/brussel-province-and-municipality
Add migrations to revert Brussels' province and municipality
2025-07-04 10:14:24 +02:00
Claire Lovisa
eee9f18561 Remove migrations inserting/deleting brussel 2025-07-04 08:47:16 +02:00
Alexander van den Berghe
a8681a02f3 Merge pull request #558 from lblod/fix/organisations-report
fix: organisations report
2025-07-03 17:33:21 +02:00
Claire Lovisa
edbba1eeaa Remove skos:note from organization 2025-07-03 16:48:49 +02:00
Claire Lovisa
0c9355c94f Add migrations to revert Brussels' province and municipality 2025-07-03 11:11:39 +02:00
mirdono
b6a42c66cf chore: update changelog 2025-07-02 16:25:56 +02:00
mirdono
96b36d2cf6 fix: reorder graph and optional clauses
Putting the optional clause within the graph clause causes to query causes,
using DEV data, some organisations to be missed by the query. Turning the order
around resolves this without losing any organisations, tested with DEV and PROD data.
2025-07-02 13:54:41 +02:00
mirdono
19a0804b56 chore: remove unnecessary graph
The `shared` graph does not contain triples for `org:hasPrimarySite` predicate.
2025-07-02 13:44:14 +02:00
mirdono
a4684811df refactor: remove values clauses with single value 2025-07-02 12:29:46 +02:00
mirdono
dc18662517 fix: remove unneeded resource type
All resources with type `besluit:Bestuurseenheid` also have `org:Organization`
as type. Including both types in the queries leads to some organisations,
specifically municipalities in the `shared` graph, being included twice in the
results. Once with all data and once without label etc. This leads to the
results of both queries being incorrectly combined and having entries in the
final result without label.
2025-07-02 12:26:51 +02:00
mirdono
c6ba52a6bc chore: formatted organisations report configuration 2025-07-02 12:26:51 +02:00
mirdono
ee1c92b5fe chore: bump report-generation service to latest version
This version comes, amongst others, with `curl` installed. This makes it easier
to manually trigger the report generation (during development.)
2025-07-02 12:26:51 +02:00
Claire Lovisa
32b6520bfa Merge pull request #557 from lblod/fix/membership-brussel-shared-graph
Move membership to shared graph
2025-06-30 11:18:09 +02:00
Claire Lovisa
0e9483b4f8 Move membership to shared graph 2025-06-30 10:22:38 +02:00
mirdono
b65e0cbeaa chore: add frontend bump to deploy instructions 2025-06-30 08:45:27 +02:00
mirdono
fbf8a4e2dc feat: include URI in responses for organisations
This includes an organisation's URI in the response from the resource
service. This allows to easily get the URI for an organisation without having to
determine it based to UUID and classification and/or explicitly querying the
triplestore.

This is mostly a convenience for developers, but can be leveraged to add a link
to Centrale Vindplaats in the frontend.
2025-06-27 10:34:23 +02:00
mirdono
1bff031596 chore: add missing ticket number
The ticked was created retroactively, adding it to the changelog for future reference.
2025-06-26 20:12:36 +02:00
Claire Lovisa
b2deb421bc Merge pull request #555 from lblod/feature/brussels-municipality
Add brussel municipality via migration
2025-06-26 16:17:59 +02:00
Claire Lovisa
e078ae48a7 Remove province-specific properties from municipality location 2025-06-26 15:51:06 +02:00
Niels Vandekeybus
e2479f626a feature: add script to generate exports
Script to export the data for administrative units and their governing bodies.
2025-06-26 13:05:51 +02:00
Claire Lovisa
df8512d8f9 Add brussel municipality via migration 2025-06-25 20:36:37 +02:00
Claire Lovisa
ed0863c0bf Merge pull request #553 from lblod/feature/brussels-gewest
Add Brussels Hoofdstedelijk Gewest
2025-06-23 14:44:46 +02:00
Claire Lovisa
4131395159 Merge branch 'development' into feature/brussels-gewest 2025-06-23 14:42:58 +02:00
Claire Lovisa
325ebe991c Update changelog 2025-06-23 10:46:18 +02:00
Claire Lovisa
179ba7b315 Add skos:note to domain.json 2025-06-23 10:34:56 +02:00
mirdono
714fda3dc8 chore: bump delta-notifier service 2025-06-20 16:50:46 +02:00
mirdono
b31d6c65e6 fix: update label for locations to match their merged municipality
As part of the 2025 municipality mergers, three municipalities kept their URI
but were renamed. This updates the labels for their scope of
operation (nl. werkingsgebied) locations accordingly. This way the label of the
location resources matches the name of the municipality administrative unit.
v1.33.2
2025-06-20 12:52:41 +02:00
Claire Lovisa
0be27e1ef2 Add Brussels Hoofdstedelijk Gewest 2025-06-20 10:54:01 +02:00
cecemel
c77f1e9139 Merge pull request #551 from lblod/hotfix/add-vlaamse-regering-as-eenheid
Hotfix/add vlaamse regering as eenheid
2025-06-17 13:39:28 +02:00
felix
8a76be40e8 Release v1.33.1 v1.33.1 2025-06-16 14:50:16 +02:00
felix
3dffca6623 Added migration for Vlaams Parlement
Note:
  `<http://mu.semte.ch/graphs/shared>` is only needed when data needs to
    be availible to worship and non-worship users
2025-06-16 14:49:13 +02:00
mirdono
f6fe8ac87d chore: update changelog v1.33.0 2025-06-05 14:00:34 +02:00
mirdono
7defbf9009 chore: bump frontend 2025-06-05 14:00:20 +02:00
mirdono
5f1bfe96c7 feat: cleanup jobs municipality and province relations
Add cleanup jobs to automatically insert and delete `org:hasSubOrganization`
relations between provinces and municipalities. These memberships were moved to
the `shared` graph causing the existing cleanup jobs to no longer work for them.
2025-06-04 11:41:21 +02:00