Skip to content
Snippets Groups Projects

Introduce OuIdentifiers

Merged Andreas Ellewsen requested to merge GREG-88-ou-identifiers into master
All threads resolved!

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

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • elg
  • Andreas Ellewsen added 2 commits

    added 2 commits

    • 460f2133 - Introduce OuIdentifiers
    • 0a6963b1 - Remove remaining traces of _id field suffix

    Compare with previous version

  • Andreas Ellewsen resolved all threads

    resolved all threads

  • Tore.Brede approved this merge request

    approved this merge request

  • mentioned in commit b722d63c

  • Please register or sign in to reply
    Loading