EQAR / eqar_backend

REST API backend for the DEQAR database.
GNU General Public License v3.0
1 stars 0 forks source link

OrgReg sync: handling of deleted names #477

Closed ctueck closed 1 year ago

ctueck commented 1 year ago

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:

$ 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