collectionspace / cspace-config-untangler

Generate CollectionSpace data overviews from profile/tenant configs
MIT License
0 stars 4 forks source link

Output mapper manifest #31

Closed kspurgin closed 3 years ago

kspurgin commented 4 years ago

From @mark-cooper:

here's what a mapper manifest currently looks like: https://cs-public-shared-files.s3-us-west-2.amazonaws.com/mappers/mappers.json it does not need to be hosted in s3, and if the manifest does end up being generated by the untangler it would make sense to link to it in the untangler repo profile = profile / tenant name version = version matches cspace ui type = record type enabled = true # indicator this mapper can be used (if a mapper is deleted or deprecated / old / shouldn't be used for whatever reason would be set to false) url = direct link to the mapper json comment = a note about it (maybe why disabled) -- this doesn't exist currently, may be useful?

{
  "mappers": [
    {
      "profile": "anthro",
      "version": "4.0.0",
      "type": "collectionobject",
      "enabled": true,
      "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/master/data/mappers/anthro_4_0_0-collectionobject.json"
    },
    {
      "profile": "anthro",
      "version": "4.0.0",
      "type": "concept",
      "enabled": true,
      "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/master/data/mappers/anthro_4_0_0-concept.json"
    },
    {
      "profile": "core",
      "version": "6.0.0",
      "type": "collectionobject",
      "enabled": true,
      "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/master/data/mappers/core_6_0_0-collectionobject.json"
    },
    {
      "profile": "core",
      "version": "6.0.0",
      "type": "concept",
      "enabled": true,
      "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/master/data/mappers/core_6_0_0-concept.json"
    },
    {
      "profile": "fcart",
      "version": "2.0.0",
      "type": "collectionobject",
      "enabled": true,
      "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/master/data/mappers/fcart_2_0_0-collectionobject.json"
    },
    {
      "profile": "fcart",
      "version": "2.0.0",
      "type": "concept",
      "enabled": true,
      "url": "https://raw.githubusercontent.com/collectionspace/cspace-config-untangler/master/data/mappers/fcart_2_0_0-concept.json"
    }
  ]
}
kspurgin commented 3 years ago

Fixed in https://github.com/collectionspace/cspace-config-untangler/pull/57