Repository navigation
Keep the Series and Tags a Project VIC record carried - #46
Merged
Merged
Conversation
`iter_records` read a media entry's Series and Tags into its dataclass and `import_vic` then dropped both: neither reached `upsert_file`, so a known series name was lost at import and nothing downstream could show it. Two additive columns, `vic_series` and `vic_tags`, with schema version 11 and the usual migration, so a case made by an earlier version gains them on open. Series can arrive as a string or as an object naming one, and both are handled. They are the importing organisation's record, so they are stored and reported apart from the examiner's own tags rather than merged into them: the Tags column elsewhere in the report keeps meaning what its notes say it means. Project VIC Records in the LAVA report gains Series and VIC Tags. `export_vic` never wrote Tags back despite its docstring saying so. It re-reads the original document, so whatever it carried survives untouched; the docstring now says what the code does. Co-Authored-By: Claude Opus 5 <[email protected]>
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.
iter_recordsread a media entry's Series and Tags andimport_victhen dropped both, so a known series name was lost at import and nothing downstream could show it.vic_seriesandvic_tags, schema version 11 with the usual migration, so a case made by an earlier version gains them on open.export_vicnever wrote Tags back despite its docstring saying so. It re-reads the original document, so whatever it carried survives untouched; the docstring now says what the code does.