Files
SubMiner/backlog/tasks/task-95 - Invalidate-old-character-dictionary-snapshots-after-kana-alias-schema-change.md

1.6 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, references, priority
id title status assignee created_date updated_date labels dependencies references priority
TASK-95 Invalidate old character dictionary snapshots after kana alias schema change Done
2026-03-06 09:25 2026-03-06 09:28
dictionary
cache
/home/sudacode/projects/japanese/SubMiner/src/main/character-dictionary-runtime.ts
/home/sudacode/projects/japanese/SubMiner/src/main/character-dictionary-runtime.test.ts
high

Description

Bump character dictionary snapshot format/version so cached AniList snapshots created before kana alias generation are rebuilt automatically on next auto-sync or generation run.

Acceptance Criteria

  • #1 Old cached character dictionary snapshots are treated as invalid after the schema/version bump
  • #2 Current snapshot generation tests cover rebuild behavior across version mismatch
  • #3 No manual cache deletion is required for users to pick up kana alias term generation

Final Summary

Bumped the character dictionary snapshot format version so cached AniList snapshots created before kana alias generation are automatically treated as stale and rebuilt. Added regression coverage that seeds an older-format snapshot and verifies getOrCreateCurrentSnapshot fetches fresh data and overwrites the stale cache.

Verified with bun test src/main/character-dictionary-runtime.test.ts and bun run tsc --noEmit.