EQAR / eqar_backend

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

Record sub-country HE systems separately (BE, UK) #450

Closed ctueck closed 1 year ago

ctueck commented 1 year ago

As discussed, we need to record sub-units of Belgium and UK separately, as they have separate HE systems.

Per our discussion, these should just be "Country" records in addition to the entire countries.

Changes needed to the Country model:

Related changes for the Country model:

The new fields that take URLs should be long enough not to cause issues.

In addition, I think we should declare all 4 new code fields, iso_3166_alpha2 and iso_3166_alpha3 as unique to ensure integrity. If you define them with blank=True and null=True then empty fields should be saved as null value, which means several would be allowed.

The OrgReg sync (#444) should follow this logic to translate a location's country: if Sub-Country (LOCAT.SUBCOUNTRY) field is present in OrgReg, look for a country where Sub-Country name matches and parent's EU 2-letter code (new field) matches - else match on EU 2-letter code.