Skip to content

Keep the Series and Tags a Project VIC record carried - #46

Merged
abrignoni merged 1 commit into
mainfrom
feat/vic-series-tags
Sep 9, 2026
Merged

abrignoni merged 1 commit into
mainfrom
feat/vic-series-tags

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

iter_records read a media entry's Series and Tags and import_vic then dropped both, so a known series name was lost at import and nothing downstream could show it.

  • Two additive columns, vic_series and vic_tags, schema version 11 with 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; 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.
  • 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.

`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]>
@abrignoni
abrignoni merged commit 65ddee1 into main Sep 9, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/vic-series-tags branch September 9, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant