brewlog/tests/cli
Jon Seager 97c00f2e33
feat(stats): add pre-computed stats cache with background recomputation
- Add CachedStats domain types (roast summary, consumption, brewing)
- Extend StatsRepository with summary queries and cache get/store
- Add StatsInvalidator + background task with 2s debounce
- Add invalidate() calls to all entity create/update/delete handlers
- Add POST /api/v1/stats/recompute endpoint for manual refresh
- Add stats_cache migration and include in database reset
- Add GeoStats::from_counts() and Serialize/Deserialize derives
- Add 6 integration tests for stats API
- Document Stats Cache pattern in CLAUDE.md
2026-02-08 15:20:01 +00:00
..
backup_cli.rs fix(backup): include brew quick_notes and cups in backup/restore 2026-02-06 18:26:28 +00:00
bags_cli.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00
brews_cli.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00
cafes_cli.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00
gear_cli.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00
helpers.rs feat(stats): add pre-computed stats cache with background recomputation 2026-02-08 15:20:01 +00:00
main.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00
roasters_cli.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00
roasts_cli.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00
test_macros.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00
tokens_cli.rs refactor(tests): add CLI test macros and deduplicate helpers 2026-02-06 14:27:43 +00:00