implement court overrides for sub-jurisdictions #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Countries may define courts on different jurisdiction levels, e.g. courts of first and second instance must exist by federal mandate, but naming is delegated to direct sub-jurisdictions and the actual courts exist on a sub-sub-jurisdiction. The current implementation allows court information only to be defined globally or by jurisdiction - but knows no inheritance.
I propose to implement an inheritance of court information down the sub-jurisdiction path. This allows to easily implement the following scenario
That's how it's implemented (more or less) in Switzerland. The federal government mandates to instances but leaves everything else to the cantons/states. The cantons define the naming of the courts, also for the district level. The districts have the courts of first instance. Now, while all districts have a court of first instance, in one canton they are called 'Kreisgericht', in another 'Bezirksgericht'. I can not define this name globally and I don't want to override it for every district.
To keep everything compatible, I suggest adapting a new keyword
overrides
in jurisdictions that contains the 'overridden' court definitions for that jurisdictions and all sub-jurisdictions.