lightcraft/crates/catalog/src
Nathaniel Ledford bb50127de4
LRC-LIB-SMARTCOLL: report saved smart albums whose rules no longer check
Rules are checked when they are made, but a saved smart album can go
bad later. The usual case is a rule testing an album that is then
deleted; it silently matches nothing.

Catalog::smart_album_problems(id) checks a saved album's rules as they
are now (RuleSet::upgrade, then RuleSet::check). It is empty for a sound
smart album, a plain album or no album. albums.list reports `problems`
for every smart album, e.g. ["rule 1: no album 8"].

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 10:54:57 -04:00
..
dates.rs LRC-LIB-SMARTCOLL: "in the last N" can't overflow; shift_iso stays in years 0–9999 2026-10-09 10:54:56 -04:00
folders.rs Folders: every folder its own node; choosing one loads it like an album 2026-10-08 09:06:18 -04:00
journal.rs Catalog: albums can be ordered by hand (format version 3) 2026-10-08 21:02:07 -04:00
keywords.rs Perf: big libraries — keyword tree 5.6× faster, per-frame library queries cached 2026-10-03 00:05:38 -04:00
lib.rs LRC-LIB-SMARTCOLL: report saved smart albums whose rules no longer check 2026-10-09 10:54:57 -04:00
local.rs Catalog: albums can be ordered by hand (format version 3) 2026-10-08 21:02:07 -04:00
lock.rs Issue #99: Library: exclusive lock so two processes can't open one library 2026-10-05 17:48:34 -04:00
model.rs LRC-LIB-SMARTCOLL: dot files have no extension; reuse CropGeometry::is_identity 2026-10-09 10:54:56 -04:00
query.rs LRC-LIB-SMARTCOLL: Keyword Count, People and People Count rules 2026-10-09 10:54:56 -04:00
rules.rs LRC-LIB-SMARTCOLL: one reading of Album rule ids; folders refused; old album operators upgraded 2026-10-09 10:54:57 -04:00
safe_file.rs Issue #134: Exports: atomic without fsync; Copy import verifies against the probe hash 2026-10-06 10:08:29 -04:00
stacks.rs Never crash: codecs and catalog free of panicking calls 2026-10-04 12:18:11 -04:00
store.rs Issue #101: catalog.log: cut a partial append back before retrying 2026-10-05 18:13:00 -04:00
tests.rs LRC-LIB-SMARTCOLL: report saved smart albums whose rules no longer check 2026-10-09 10:54:57 -04:00
tests_album_order.rs Catalog: tidy a test assertion 2026-10-08 21:02:07 -04:00
tests_background.rs Issue #102: Catalog format version 2; refuse newer libraries untouched 2026-10-05 18:13:00 -04:00
tests_folders.rs Folders: round-4 review fixes (counts at the edge, edge-space names, smart albums) 2026-10-08 09:06:18 -04:00
tests_format_version.rs Catalog: albums can be ordered by hand (format version 3) 2026-10-08 21:02:07 -04:00
tests_journal.rs Catalog: albums can be ordered by hand (format version 3) 2026-10-08 21:02:07 -04:00
tests_local.rs Local: forget untouched browse records of folders not browsed for 30 days 2026-10-05 02:26:49 -04:00
tests_lock.rs Issue #99: Library: exclusive lock so two processes can't open one library 2026-10-05 17:48:34 -04:00
tests_torn_append.rs Issue #101: catalog.log: cut a partial append back before retrying 2026-10-05 18:13:00 -04:00