It seems names marked as deleted on OrgReg's side aren't handled correctly in two regards:
if there is an InstitutionName record matching an OrgReg characteristic (based on OrgReg's ID) it is not deleted even if marked so on OrgReg side
if there is no matching record the synchroniser adds the name despite being marked as deleted in OrgReg
Example case is SI0800, it has two names in OrgReg: one current and correct one (CHARSI0800-1), one name that was listed by mistake earlier and is now marked deleted (CHARSI0800-2).
When deleting the latter one in DEQAR manually, the next sync attempts to re-create it:
$ manage-deqar-live orgreg_sync --dry-run --institution SI0800
/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.14) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Creating deqar-live-backend_api_run ... done
####################################################################################################
OrgReg Report Sync - 2023-07-14 15:03:51.606374
####################################################################################################
----------------------------------------------------------------------------------------------------
Institution record SI0800 / DEQARINST2341 (UPDATE)
University of Novo mesto
----------------------------------------------------------------------------------------------------
**ADD - NAME RECORD
Name English: University of Novo mesto Faculty of Economics and Informatics
Name Official: Univerza v Novem mestu Fakulteta za ekonomijo in informatiko
Acronym: FEI
Valid To: None
Source Note: OrgReg-2023-CHARSI0800-2
It seems names marked as deleted on OrgReg's side aren't handled correctly in two regards:
Example case is
SI0800
, it has two names in OrgReg: one current and correct one (CHARSI0800-1
), one name that was listed by mistake earlier and is now marked deleted (CHARSI0800-2
).When deleting the latter one in DEQAR manually, the next sync attempts to re-create it: