brewlog/tests/server
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
..
auth_api.rs test(auth): update tests for passkey migration 2026-02-05 11:00:20 +00:00
backup.rs feat(brews): add brew time field 2026-02-07 11:24:07 +00:00
bags_api.rs test: update test struct initializers for created_at field 2026-02-07 09:48:26 +00:00
brews_api.rs feat(brews): add brew time field 2026-02-07 11:24:07 +00:00
cafes_api.rs test: update test struct initializers for created_at field 2026-02-07 09:48:26 +00:00
checkin_api.rs test: add coverage for homepage, check-in, scan, and AI extraction 2026-02-05 19:19:05 +00:00
cups_api.rs test: update test struct initializers for created_at field 2026-02-07 09:48:26 +00:00
datastar.rs test: update test struct initializers for created_at field 2026-02-07 09:48:26 +00:00
extraction_api.rs test: add coverage for homepage, check-in, scan, and AI extraction 2026-02-05 19:19:05 +00:00
gear_api.rs test: update test struct initializers for created_at field 2026-02-07 09:48:26 +00:00
helpers.rs feat(stats): add pre-computed stats cache with background recomputation 2026-02-08 15:20:01 +00:00
main.rs feat(stats): add pre-computed stats cache with background recomputation 2026-02-08 15:20:01 +00:00
nearby_api.rs feat(nearby): add city-based search via Foursquare near param 2026-02-03 20:36:59 +00:00
pages.rs refactor: rename Account to Admin across filenames, routes, and docs 2026-02-08 09:39:37 +00:00
roasters_api.rs test: update test struct initializers for created_at field 2026-02-07 09:48:26 +00:00
roasts_api.rs test: update test struct initializers for created_at field 2026-02-07 09:48:26 +00:00
scan_api.rs feat(scan): show cards for existing roasters/roasts during bag scan 2026-02-06 12:27:25 +00:00
stats_api.rs feat(stats): add pre-computed stats cache with background recomputation 2026-02-08 15:20:01 +00:00
test_macros.rs refactor(tests): add generic server helpers and CRUD test macros 2026-02-06 14:26:54 +00:00
timeline.rs feat(brews): add brew time field 2026-02-07 11:24:07 +00:00