isogr / register-system-transition

Covers GR system transition from 2013 Java-based version to 2023 static site based version
1 stars 0 forks source link

CRS items have wrong data shape under `baseCRS`, `operation` fields #16

Closed strogonoff closed 5 months ago

strogonoff commented 5 months ago

These fields are expected to have the following format:

  baseCRS?: {
    classID: string
    itemID: string
  }
  operation?: {
    /**
     * Transformation or Conversion.
     * Contingent on baseCRS?
     */
    classID: string
    itemID: string
  }

The value can be undefined or nonexistent, but if it exists it should contain an object with classID and itemID properties.

However, in migrated data baseCRS and operation fields contain strings.

This breaks our widgets (try opening Projected CRS 958 in Paneron or on https://isogr.demo.paneron.org/ and see for yourself).

So far I noticed this only in case of Projected CRS items, but there may be others affected.

stefanomunarini commented 5 months ago

Fixed in https://github.com/isogr/registry/commit/7b88e7a479dd9005e2a23702e76338a37ffc2938