Commit Graph

729 Commits

Author SHA1 Message Date
mirdono
4602842e99 fix: combine merger change events
- add the missing original organisation and matching change event result to one
  merger change event
- remove the superfluous merger change event, except for its reused change event
  result
2024-07-18 13:48:35 +00:00
mirdono
07687f5e35 Merge branch 'master' into development 2024-06-21 18:06:39 +02:00
mirdono
11508cf310 fix: added migration to import the participating municipalities
The original migration to import the participants for public OCMW associations
contained a bug causing it to not match municipalities. More specifically:
- the type triple for municipalities is located in the `shared` graph;
- consequently the `FILTER EXISTS` statements to limit matches to administrative
  units could not succeed for municipalities as the queries are limited to the
  `administrative-unit` graph.

This new migration fixes this problem by changing the `FILTER EXISTS` into a
`FILTER NOT EXISTS` to exclude resourses of type `ext:KboOrganisatie`.
2024-06-21 09:40:50 +00:00
mirdono
43cf1fd323 chore: removed unneeded migration
With the addition of the migration removing relations with `ext:KboOrganisatie`
resources this migration becomes unnecessary.
2024-06-21 09:40:50 +00:00
mirdono
a6b7321cf0 fix: remove org:memberOf triples with KBO organizations as object
The migration importing related organizations for public OCMW associations was
incorrect in that it did not exclude resources of type `ext:KboOrganisatie`
being matched. This migration removes all incorrectly inserted triples.
2024-06-19 13:41:03 +00:00
mirdono
155162eb45 feat: added classification code for associations and corporations 2024-06-14 13:18:58 +00:00
mirdono
592b728611 Merge branch 'master' into development 2024-06-12 11:13:20 +02:00
mirdono
f562d711f9 fix: corrected typo in search configuration 2024-06-10 14:17:09 +02:00
Laurent Deketelaere
826a9cdf08 fix: Disable cache on /kbo-organizations/* 2024-06-07 11:39:55 +02:00
Laurent Deketelaere
e6111fffff feat: Enable cache on domaine doutes 2024-06-06 15:40:20 +02:00
Laurent Deketelaere
73492d0217 Merge branch 'master' into development 2024-06-06 10:19:51 +02:00
Laurent Deketelaere
97361f7f48 fix: Add migration to delete duplicate identifier 2024-06-05 08:38:22 +02:00
mirdono
714994bc3c fix: remove faulty contact data for some AGBs
The migrations importing the public OCMW association's contact data contained a
faulty query that matched on empty KBO numbers. As a result contact data was
incorrectly inserted to some AGBs that also do not have a KBO number. This
migration removes the incorrect data.
2024-06-03 16:07:52 +02:00
mirdono
74a0c92b31 fix: remove faulty address data for some AGBs
The migrations importing the public OCMW association's address data contained a
faulty query that matched on empty KBO numbers. As a result address data was
incorrectly inserted to some AGBs that also do not have a KBO number.

This migration removes the incorrect data, which as inserted into the
triplestore next to actual address. Furthermore, this also (re-)inserts the
correct provinces for the affected AGBs.
2024-06-03 14:55:12 +02:00
mirdono
a9e9e761c0 chore: removed faulty queries from migration
Removed incorrect queries that match on empty KBO numbers. This is to avoid the
same incorrect data being imported in case the migration is executed again at
some point.
2024-06-03 13:27:13 +02:00
mirdono
681fa0ce0a refactor: updated dispatcher to new service name 2024-06-03 07:48:41 +00:00
mirdono
b4b599d091 feat: add recently onboarded organisations to producers
* `organizations` and `organizations-public-info`
- Add the new type of registered organisations to the export configuration

* `public`
- Use a migration to add the classification codes of all recently onboarded
  classes of organisations to the `concept-scheme` used by the producer. These
  were not added during the initial onboarding:
  This includes:
  + public OCMW associations
    - Welzijnsvereniging
    - Autonome verzorgingsinstelling
  + private OCMW associations
    - Ziekenhuisvereniging
    - Vereniging of vennootschap voor sociale dienstverlening
    - Woonzorgvereniging of woonzorgvennootschap
  + PEVAs
    - PEVA gemeente
    - PEVA province
- Add the new type of registered organisations to the export configuration
2024-05-24 14:56:32 +00:00
mirdono
fd0a417ad1 fix: exclude KBO organisations as participants
The initial version of the migration to import related organisations only
matched based on KBO numbers. This risks including resources from the type
`ext:KboOrganisatie` as participants. The migration was regenerated including an
additional `FILTER` to exclude organisations of that type from matching.
2024-05-24 14:56:32 +00:00
mirdono
cd2ee5bea3 feat: added participants for private OCMW associations 2024-05-24 14:56:32 +00:00
mirdono
a94bb7f7e2 fix: regenerated migrations after business data update 2024-05-24 14:56:32 +00:00
mirdono
b9be63f193 fix: corrected the provinces in the address import 2024-05-24 14:56:32 +00:00
mirdono
4b45093572 feat: import contact details for private ocmw associations 2024-05-24 14:56:32 +00:00
mirdono
6c7e5428dc feat: import addresses for private ocmw associations 2024-05-24 14:56:32 +00:00
mirdono
29f0b3e9a1 feat: import core data for private ocmw associations 2024-05-24 14:56:32 +00:00
mirdono
a3dff637e3 fix: exclude KBO organisations as participants
The initial version of the migration to import related organisations only
matched based on KBO numbers. This risks including resources from the type
`ext:KboOrganisatie` as participants. The migration was regenerated including an
additional `FILTER` to exclude organisations of that type from matching.
2024-05-24 14:52:46 +00:00
mirdono
71b21e4716 feat: added participants for private OCMW associations 2024-05-24 14:52:46 +00:00
mirdono
d49ebea0bd fix: regenerated migrations after business data update 2024-05-24 14:52:46 +00:00
mirdono
d35b9fc3a1 fix: corrected the provinces in the address import 2024-05-24 14:52:46 +00:00
mirdono
80a503c132 feat: import contact details for private ocmw associations 2024-05-24 14:52:46 +00:00
mirdono
a0400563da feat: import addresses for private ocmw associations 2024-05-24 14:52:46 +00:00
mirdono
369a2ad483 feat: import core data for private ocmw associations 2024-05-24 14:52:46 +00:00
Laurent Deketelaere
66c3703f22 refactor: Remove obsolete kbo-data-sync endpoint 2024-05-23 11:28:31 +02:00
mirdono
660c9b6848 fix: exclude KBO organisations as participants
The initial version of these migrations were defined too broadly. Since they
only matched on KBO numbers they also included the KBO organisations, imported
from wegwijs, adding them as participants.

This commit adds extra checks to exclude KBO organisations from being added as a
participant for a public OCMW association. Furthermore, the main migration is
split into two parts to work around an error otherwise encountered when
executing the migration as a single whole.
2024-05-22 12:29:06 +00:00
mirdono
bf77794d08 fix: removed faulty trailing comma 2024-05-22 12:22:50 +00:00
mirdono
994c26b58d feat: added paths for registered organizations 2024-05-22 12:22:50 +00:00
mirdono
dd3cbc16e8 feat: added registered organization classification codes 2024-05-22 12:22:50 +00:00
mirdono
89435073c7 feat: include registered organizations in search index 2024-05-22 12:22:50 +00:00
mirdono
5ff3f5b121 feat: added registered organizations to resources service 2024-05-22 12:22:50 +00:00
mirdono
288bf42aa3 feat: import participants for public OCMW associations 2024-05-22 07:39:49 +00:00
mirdono
178f5c17e6 refactor: dispatch requests on organization path to resources service
Forwarding requests on the organizations path to the cache leads to issues were
changes that the user just made are not shown. For example, when adding a
related organization the newly added organization would not show up in the list
unless the cache was restarted.
2024-05-16 15:03:54 +00:00
mirdono
d28cb221da refactor: renamed units index to organizations
Soon we want to introduce (additional) non-administrative unit
organizations. This renaming makes it more clear this index is not limited to
administrative units, both here as where it is used in the frontend. Note,
technically the 'units' name was already incorrect as a 'Representatief orgaan'
is not an administrative unit.
2024-05-16 15:03:54 +00:00
mirdono
8423d24230 refactor: moved classification relation to organization 2024-05-16 15:03:54 +00:00
Laurent Deketelaere
a7708255f9 fix: kbo-data-sync rewrite all fullAddress and override sameAs
- Bump `sync-wegwijs-organization-service` to v2.0.2
- Stop using v0.1.0 when feature flag off on frontend
2024-05-02 22:18:26 +02:00
YJouhar47
697fd814fc add site to representative organs 2024-05-02 10:14:16 +00:00
mirdono
f30fcfda22 fix: remove dangling change event results
The change events related to an organisation contains some data errors:
- There is a change event result without any corresponding change event. This
  causes an error when visiting the change events page for this organisation.
- There are two identical change event results for the same change event. This
  causes the change event to be shown twice in the table. (Only on PROD)

The added migration removes these unnecessary elements change event results.
2024-05-02 07:39:50 +00:00
Laurent Deketelaere
26d5a23a3c Merge pull request #417 from lblod/fix/adminitrative-unit-dump-publisher
Fix prefLabel missing in Kalliope dump after edition
2024-04-29 14:40:43 +02:00
Laurent Deketelaere
e7129dc41d chore: Clear producer organizations graph from main triplestore 2024-04-29 11:08:13 +02:00
Laurent Deketelaere
94baeb539f chore: Bump delta-producer-publication-graph-maintainer to 1.0.9-rc2 + enable other producers 2024-04-25 16:10:28 +02:00
Elias Papanikitas
007b0a35ee removed references to administrative units 2024-04-25 10:47:35 +02:00
Elias Papanikitas
131ecd4f1e fixed migraition 2024-04-24 14:41:29 +02:00