BDMS 55: lexicon coverage & other updates#106
Merged
Conversation
…sociated with categories
Codecov Report❌ Patch coverage is
|
jirhiker
requested changes
Aug 27, 2025
jirhiker
left a comment
Member
There was a problem hiding this comment.
the images in the transfer folder should not be included. the transfer directory contains an assets folder where images go. this folder is in .gitignore. All the data in the transfer folder is just for testing and does not need to be version controlled
jirhiker
requested changes
Aug 27, 2025
jirhiker
left a comment
Member
There was a problem hiding this comment.
all the changes to transfer should be removed. These are in conflict with https://github.com/DataIntegrationGroup/NMSampleLocations/tree/jir-transfer
jirhiker
approved these changes
Aug 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This PR addresses the following problem / context:
lexiconrouter should be fully covered with GET, GET by ID, POST, PATCH, and DELETE endpointsHow
Implementation summary - the following was changed / added / removed:
/tripleand/categoryto adhere with most recent styles (i.e. usemodel_adder)/term/{term_id},/category/{category_id},/triple/{triple_id}/category/{category_id},/triple,/triple/{triple_id}/term/{term_id},/category/{category_id},/triple/{triple_id}Notes
Any special considerations, workarounds, or follow-up work to note?
adderwas moved fromdb/__init__.pytoservices/crud_helper/pyand renamedmodel_adderto maintain a consistent style and nomenclature for crud functions.Lexiconwas renamedLexiconTermfor clarity.Categorywas renamedLexiconCategoryfor clarity.LexiconTermandLexiconCategoryare now associated via their IDs, not the term's term and category's name.LexiconTermcould only be associated with a singleLexiconCategory. In this PR it can now be associated with multipleLexiconCategories.LexiconTerm, if any associatedLexiconCategoriesare not present in the database they will be added (this functionality was maintained, though expanded to create multiple new records if they didn't previously exist). Do we want to maintain this functionality? Or should categories only be created via POST/category?LexiconTermsmust be associated with at least one category.categorycategories, which evaluates to a list of dictionaries with the categorynameanddescription.LexiconTripleis now deleted if thesubjectorobject_are deleted because of foreign key constraints.LexiconTripleis added it can be associated with anyLexiconTerm(subjectandobject_). If thatLexiconTermdoes not exist it will be created (and therefore newLexiconCategoriescan be created when the terms are created). Do we want to maintain this functionality? Or should terms and categories only be created via their POST endpoints?transfers/transfer.pywas deleted since it is out of date.transfers/transfer2.pywas then renamedtransfers/transfer.py.__init__.pywas added totransfers/and all import paths are defined relative to the root directory.python -m transfers.transferfrom the root directory.