Skip to content
Snippets Groups Projects
Commit b0031619 authored by pka065's avatar pka065
Browse files

Add legacy_stedkode for OU with a filter correction option specific for UiB

parent 14627379
No related branches found
No related tags found
1 merge request!357Add legacy_stedkode for OU with a filter correction option specific for UiB
Pipeline #163718 failed
......@@ -72,7 +72,8 @@ class OrgregImporter:
matching_ids = [
x
for x in ou.external_keys
if x.source_system == extra_id["source"] and x.type == extra_id["type"]
if ((x.source_system == extra_id["source"] and x.type == extra_id["type"])
or (x.type == "legacy_stedkode" and settings.INSTITUTION == "uib"))
]
if not matching_ids:
......
......@@ -294,6 +294,10 @@ INTERNAL_RK_PREFIX = "no.{instance}.greg".format(instance=INSTANCE_NAME)
# No trailing slash
BASE_URL = "https://example.org"
#Three-letter abbreviation, e.g. "uio", "uib".
#Is used while importing data from dependent services for correction of filters.
INSTITUTION = "uib"
FEIDE_SOURCE = "feide"
# The default duration for a new invitation link, in days
......@@ -305,7 +309,7 @@ ORGREG_NAME = "orgreg_id"
# Extra ids to be imported from orgreg, list of dict with source/type.
# [{"source": "sapuio", "type": "legacy_stedkode"}]
ORGREG_EXTRA_IDS = []
ORGREG_EXTRA_IDS = [{"source": "", "type": "legacy_stedkode"}]
# Acronyms to be imported as identifiers from orgreg. List of acronym values, supported ones are: nob, nno, eng
# Example list: ["nob"]
......
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