BDMS 122: lexicon updates & other updates#126
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
|
| {"categories": [{"name": "sample_type", "description": null}], "term": "Standard field sample", "definition": "Standard field sample"}, | ||
| {"categories": [{"name": "sample_type", "description": null}], "term": "Soil or Rock sample", "definition": "Soil or Rock sample"}, | ||
| {"categories": [{"name": "sample_type", "description": null}], "term": "Trip blank", "definition": "Trip blank"}, | ||
| {"categories": [{"name": "sample_type", "description": null}], "term": "Source water blank", "definition": "Source water blank"} | ||
| ] |
There was a problem hiding this comment.
I worry about transferring the formation and lithology fields without doing some cleanup.
For instance, is there a distinction between Sand, silt and gravel and Gravel, sand and silt, or would one record suffice? Doesn't the USGS have a controlled vocabulary for lithology?
Formation records seem a mess
There was a problem hiding this comment.
To facilitate the transfer of data we can keep all of the lookup table values as-is, then we can work to clean up those terms. Since a lexicon_term has onupdate="CASCADE" any changes should propagate to the appropriate places. I could also remove formation and lithology from the lexicon, but I'd be concerned that would inhibit data transfers. (If we wait to record lexicon terms for formation and lithology we could just wait to transfer all formation and lithology values until it's cleaned up and mapped to the new terms.)
ksmuczynski
left a comment
There was a problem hiding this comment.
Looks good. I agree that there are several lookup tables that could benefit from a clean up. Modifying the lexicon terms later doesn't seem like a big deal, but what about cases where the cleanup is significant and lexicon terms are removed (but the removed terms are referenced in other tables? Should we set some kind of an ON DELETE constraint or flag it in some other way? Is it important to figure out now or later?
|
That's a good point, particularly if some are duplicative and we decide to just keep one (e.g. So remove them for now? |
|
Lets remove for now. We need AMP to review and cleanup. This could be something Kimball could help with |
Why
This PR addresses the following problem / context:
How
Implementation summary - the following was changed / added / removed:
core/lexicon.jsonNotes
Any special considerations, workarounds, or follow-up work to note?