Single vocab table loading#31
Merged
Merged
Conversation
gkennos
requested changes
Jul 15, 2026
gkennos
self-requested a review
July 19, 2026 14:42
gkennos
approved these changes
Jul 19, 2026
nicoloesch
force-pushed
the
30-single-vocab
branch
from
July 20, 2026 06:37
acf95f8 to
3770e26
Compare
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.
Summary
Fixes Allow to load a singular vocabulary table #30
load_vocab_source()gains an optionaltables: list[str] | None = Noneparameter__tablename__is in the list are loadedUnknown table names are validated eagerly against the full vocabulary table set before any DB work begins.
load-vocab-sourceCLI command gains a repeatable--table <name>option that maps directly to the new parameter. No--tableflags = existing all-tables behaviour, unchanged.Test plan
load-vocab-source --table conceptloads onlyconceptload-vocab-source --table concept --table vocabularyloads exactly those twoload-vocab-source --table not_a_tableraisesValueErrorbefore any DB connectionload-vocab-source(no flag) behaves identically to the previous versionRuntimeError--tablewith a sparse source dir skips the all-required-files preflight correctlyfake_load_vocab_sourcestub updated to accepttableskwarg (regression guard)