microbiomedata / nmdc-schema

National Microbiome Data Collaborative (NMDC) unified data model
https://microbiomedata.github.io/nmdc-schema/
Creative Commons Zero v1.0 Universal
26 stars 8 forks source link

`berkeley-schema-fy24`: Schema version underlying `SchemaView` instance changes from one release to the next #2100

Open eecavanna opened 1 week ago

eecavanna commented 1 week ago

One of the "Berkeley" migrators creates a SchemaView of the schema contained within the Python package. When the migrator was written, that schema was at some version. When the migrator gets run, the schema might be at some different version. This is a logical bug.

Here's a link to the offending code: migrator_from_10_2_0_to_11_0_0_part_10.py

turbomam commented 20 hours ago

We could pin the SchemView() so that its input is a YAML file from a named release if you can tolerate a dependency on a GH raw file. Most LinkML methods that operate on a schema are very tolerant of different input types.