Implement analytics beacon endpoint with idempotency and CDC integration: - Add `check_and_mark_beacon_event` to TaskStore trait for idempotency - Implement for both Redis (HSET with 24h TTL) and SQLite (table with cleanup) - Add JWT session extraction for session_id in beacon events - Add server-side event_id generation fallback for old browsers (SHA256 hash) - Integrate with CDC manager to publish AnalyticsEvents (click_through, latency) - Respect cdc.emit_internal_writes for latency events - Add Display impl for JwtValidationError for proper error logging - Add jwt_decode_with_fallback helper for JWT rotation support - Add unit tests for beacon idempotency (SQLite and Redis) Closes: miroir-uhj.21.6 |
||
|---|---|---|
| .. | ||
| admin-ui/dist | ||
| src | ||
| static | ||
| tests | ||
| Cargo.toml | ||