acdh-oeaw / viecpro-backend-devops

MIT License
0 stars 0 forks source link

implement distinction between courts and institutions at multiple points #79

Open kaggl opened 3 months ago

kaggl commented 3 months ago

As far as I know, there are three instances where courts are still counted as institutions, with no possibility of distinction

  1. Relations: image ^ this should be a court, as there is no institution with this ID or name
  2. Detail pages: image It makes sense that detail pages have the same problem, since they are derived from relations
  3. Hierarchy image

It would be nice to have a distinguisher somewhere inside these objects

kaggl commented 3 months ago

ive created a workaround for now: if there are no Institutions with a given ID, the app will try the sames fetches for courts. If they exist, the user gets redirected. Its not pretty, but as long as there are no courts and institutions that share IDs, it should work