Skip to content
Snippets Groups Projects
Verified Commit 460f2133 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Introduce OuIdentifiers

To facilitate multiple identifiers of OUs we introduce the OuIdentifier
model and removed the orgreg_id field from OrganizationalUnit.

All current orgreg_ids are recreated as OuIdentifiers with name
'orgreg_id' and source 'orgreg'. Both values are configurable in the
base settings file in the gregsite app. Note that changing this value
after migration will require manual work changing all OuIdentifiers
already created before the next run of the orgreg_import management
command since that assumes all current orgreg identifiers uses these
values.

All endpoints that previously exposed the orgreg_id field now exposes an
identifiers field with a list of OuIdentifiers connected to that model
with fields id, name, source, and value.

Resolves: GREG-88
parent cdb2a423
No related branches found
No related tags found
1 merge request!128Introduce OuIdentifiers
Showing
with 235 additions and 53 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment