Use nmdc-schema
-provided function to extract typecode from id
regex pattern
#866
Labels
X SMALL
Less than 1 day
Background
Currently, the Runtime has its own logic and code for extracting a typecode from an
id
regex pattern.nmdc-runtime/nmdc_runtime/minter/config.py
Line 15 in 12332bf
In
nmdc-schema
version 11.3.0 (release notes), a function was introduced into thenmdc-schema
package (i.e., in its nmdc_schema/id_helpers.py module) that can be used to do the same thing.Task
The task here is to update the Runtime to import and use that function instead of maintaining its own independent copy, whose logic could drift from the "authoritative" logic in the
nmdc-schema
repo.Footnote
Once the schema presents the typecode in its own schema element—as opposed to it being in a special spot in a regex pattern—we can stop using a regex pattern parsing function for this.
The text was updated successfully, but these errors were encountered: