luomus / meta

A meta-repo for adding items that don't belong anywhere else
0 stars 0 forks source link

Remove collection non-multilang properties hack #135

Open olzraiti opened 2 weeks ago

olzraiti commented 2 weeks ago

These fields are multilang in our schema. api.laji.fi transform them into strings using "en" lang, and all front-ends treat them as non-multilang:

"temporalCoverage", "taxonomicCoverage", "collectionLocation", "dataLocation", "methods", "coverageBasis", "geographicCoverage"

We are going to make those fields non-multilang. This requires work in multiple repos and the deployment must be done in sync:

  1. old laji api
  2. old Kotka frontend
  3. new kotka frontend
  4. laji.fi

Because the deployment must be done in sync, the code changes to each repo should be done in a separate branch, so normal deployment can continue while waiting for the migration operation.

WHY THE HACK?

There's some historical, hypothetical reason for this hack this that was never implemented.

WHY FIX IT?

The hack creates discord between our schema and front-ends - schema says one thing while API says another thing.