brewlog/tests/server
Jon Seager 0e3847ade9
feat: sync timeline events with entity edits
Add background timeline rebuild task (mirroring stats cache pattern)
that refreshes denormalized timeline event snapshots when entities are
updated. Includes cascade logic so editing a roaster refreshes timeline
events for its roasts, bags, brews, and cups.

- Add update_by_entity/delete_by_entity/delete_all to TimelineEventRepository
- Add TimelineInvalidator with debounced background rebuild task
- Add invalidate() calls to all 7 entity update handlers
- Add delete_by_entity cleanup to define_delete_handler! macro
- Add gear_id filter to BrewFilter for cascade traversal
- Add `brewlog timeline rebuild` CLI command for full rebuild
- Add 5 integration tests for timeline sync behavior
2026-02-15 11:11:07 +00:00
..
auth_api.rs test: add integration tests for webauthn, passkeys, and input validation 2026-02-13 13:06:27 +00:00
backup.rs feat: include entity images in backup, restore, and reset 2026-02-10 17:50:23 +00:00
bags_api.rs test: add integration tests for webauthn, passkeys, and input validation 2026-02-13 13:06:27 +00:00
brews_api.rs test: add integration tests for webauthn, passkeys, and input validation 2026-02-13 13:06:27 +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: add integration and E2E tests for edit functionality 2026-02-10 19:42:52 +00:00
datastar.rs test: add integration and E2E tests for edit functionality 2026-02-10 19:42:52 +00:00
extraction_api.rs test: add coverage for homepage, check-in, scan, and AI extraction 2026-02-05 19:19:05 +00:00
form_submissions.rs test: add integration and E2E tests for edit functionality 2026-02-10 19:42:52 +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: sync timeline events with entity edits 2026-02-15 11:11:07 +00:00
images_api.rs test: add integration and e2e tests for image API 2026-02-10 17:50:30 +00:00
main.rs fix: address static assets code review findings 2026-02-13 17:13:02 +00:00
nearby_api.rs refactor: move NearbyCafe to domain layer to fix dependency violation 2026-02-13 16:20:20 +00:00
pages.rs fix: address static assets code review findings 2026-02-13 17:13:02 +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
static_assets.rs fix: address static assets code review findings 2026-02-13 17:13:02 +00:00
stats_api.rs fix: address static assets code review findings 2026-02-13 17:13:02 +00:00
test_macros.rs test: add integration and E2E tests for edit functionality 2026-02-10 19:42:52 +00:00
timeline.rs feat: sync timeline events with entity edits 2026-02-15 11:11:07 +00:00
webauthn_api.rs test: add integration tests for webauthn, passkeys, and input validation 2026-02-13 13:06:27 +00:00