wrolpi/wrolpi/collections
Roland f2dda20116
tags.yaml imports by diffing
tags.yaml declares three sections (Tags, tagged files, tagged Zim
entries), so its import reads the file once, diffs it against a snapshot,
and writes only the differences, with the file's version, in one write.
An unchanged import writes nothing.

A removed Tag is deleted with its tagged files and Zim entries; a
Collection using it loses only the Tag.  A removed tagged file or Zim
entry is untagged.  A tagged file whose Tag the config does not list is
skipped.  prepare finds files without a FileGroup on disk, skips missing
ones before the write, moves Zim entries of a replaced Zim to the newest
one, and maps a file named by a secondary member to its group; the
config is then saved with the database's paths.

Moving a tagged FileGroup counts as a tags.yaml change (ORM, the bulk
move, and a refresh that changes the primary file), so a restart before
the save does not untag it.

Sections can define `same` (a tagged file without a date matches any
date), and prepare can count skipped rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 19:08:20 -06:00
..
test Database configs carry a version the database keeps too (#866) 2026-10-24 14:58:18 -06:00
__init__.py Add ordered collections (playlists): polymorphic items + item API (#475) 2026-06-11 19:46:34 -06:00
api.py Reorganize conflicts and no-move reorganize wait for a concurrent writer (#847) 2026-10-20 17:16:17 -06:00
config.py tags.yaml imports by diffing 2026-10-24 19:08:20 -06:00
errors.py Add ordered collections (playlists): polymorphic items + item API (#475) 2026-06-11 19:46:34 -06:00
lib.py Other search tab: search Channels by name, add Domains and Playlists, fix the estimate (#785) 2026-10-07 18:22:12 -06:00
models.py Database configs carry a version the database keeps too (#866) 2026-10-24 14:58:18 -06:00
reorganize.py Reorganize conflicts and no-move reorganize wait for a concurrent writer (#847) 2026-10-20 17:16:17 -06:00
schema.py Playlists can be tagged on creation. Playlist destination is no longer empty by default. 2026-06-11 19:46:35 -06:00
sync.py Add ordered collections (playlists): polymorphic items + item API (#475) 2026-06-11 19:46:34 -06:00
types.py Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00