City-of-Helsinki / linkedevents

Linked Events event database and API
MIT License
26 stars 41 forks source link

Change `replaced_by` to ManyToOneField in django-orghierarchy and fix filters accordingly #272

Open Rikuoja opened 6 years ago

Rikuoja commented 6 years ago

Currently, an organization may replace one old organization.

If we want the same organization to replace several old organizations (@aleksisalonen will have to decide on that), django-orghierarchy needs to be updated, along with the organization filters in api.py.

Rikuoja commented 6 years ago

As the only cases needing this are Ympäristökeskus, Rakennusvalvontavirasto, Rakennusvirasto (Kaupunginympäristön toimiala already replaces Kaupunkisuunnitteluvirasto), Varhaiskasvatusvirasto (Kasvatuksen ja koulutuksen toimiala already replaces Opetusvirasto) and Tietokeskus (Kaupunginkanslia already replaces Kaupunginkanslia), I suggest it is easier to just transfer a few users by hand to the new organization, than start coding this feature separately.