You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(oplog-collections-transformer): address CodeRabbit findings on PR #363
- handler: recover degraded insert/replace (empty fullDocument + Degraded) via source
lookup instead of poisoning — mirrors oplog-transformer, stops dropping documents.
- rooms: a single update changing both name/fname AND ro now emits room_renamed AND
room_restricted (plus room_sync), not just the first; wrap bare returns with context.
- subscriptions: zero-guard ls/lr (→0) and ts (→now) so absent source times don't leak
negative year-0001 timestamps; emit role_updated even when roles are cleared on an
update; wrap resolver/documentKey returns with context.
- config: trim + non-empty-validate SITE_ID/NATS_URL/SOURCE_MONGO_URI/TARGET_MONGO_URI so
a whitespace-only required var fails at startup, not later.
- main: warn once at startup when ALL_SITE_IDS is empty (status fan-out disabled) — the
config half of the ALL_SITE_IDS handling.
- tests: combined name+ro and degraded-recovery room tests; zero-timestamp and role-clear
subscription tests; whitespace-config tests; tighten dispatch/error/fixture assertions
and restore the global meter provider in metrics_test.
- docs(SOURCE_DATA): read timestamp is max(ls,lr) (resolved), not an open question.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012X9qhQT4NwmCHjdndwNtFD
Derived: "has mention" = `userMentions>0 || groupMentions>0`; "muted" = `disableNotifications`;**read timestamp (`lastSeenAt`) = `max(ls, lr)`** (resolved per design D1 — the furthest point consumed by either the scrolled cursor or the explicit mark-read).
0 commit comments