78ce1f7071921f1b1ab939f5fe96562a0242f36e
For each of the governing bodies created by the migrations in the previous commit, now add the corresponding mandates and functions. Within a organisation some governing bodies share the same mandates. For example, for municipalities the governing body "Burgemeester" and "College van burgemeester en schepen" both refer to the SAME instance of mandates for "Burgemeester" and "Aangewezen burgemeester". To achieve this the some migrations contain a second `INSERT` clause in which the other governing body that contains the necessary mandates is selected to be able to determine the correct mandate URI. This only works on two conditions: 1. Migrations that depend on each must be executed in the correct order. For example, the migration inserting the mandates for "College van burgemeester en schepen" must be executed after that for "Burgemeester". The former will reuse mandates created by the latter. 2. The UUID for the shared mandates is calculated in exactly the same way in migrations that depend on each other.
Organization portal
Backend for the organization portal application, based on the mu.semte.ch microservices stack.
How to
Boot up the system in DEV environment
cd /path/to/mu-project
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
You can shut down using docker-compose stop and remove everything using docker-compose rm.
Setting up the delta-producers related services
To make sure the app can share data, producers need to be set up. There is an intial sync, that is potentially very expensive, and must be started manually
producers administrative-units
- make sure the app is up and running, the migrations have run
- in docker-compose.override.yml, make sure the following configuration is provided:
delta-producer-pub-graph-maintainer-administrative-units:
environment:
START_INITIAL_SYNC: 'true'
drc up -d delta-producer-pub-graph-maintainer-administrative-units- You can follow the status of the job, ideally through the dashboard, but this hasn't been setup yet. The following query should also give results:
PREFIX task: <http://redpencil.data.gift/vocabularies/tasks/>
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT DISTINCT ?job ?operation ?created ?modified ?status WHERE {
GRAPH ?g {
?job a <http://vocab.deri.ie/cogs#Job>;
task:operation ?operation;
adms:status ?status;
dct:created ?created;
dct:modified ?modified.
}
FILTER( ?operation IN (
<http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/initialPublicationGraphSyncing/administrative-units>,
<http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/healingOperation/administrative-units>
)
)
}
Description
Languages
JavaScript
48.4%
Elixir
19.9%
Common Lisp
15.3%
Ruby
12.6%
TypeScript
3.2%
Other
0.6%