feat(review): propagate false_trigger/reviewed_real to twins on sidecar PATCH

This commit is contained in:
2026-08-25 00:42:27 +00:00
parent 5ffa92ab87
commit 7aae0208f8
3 changed files with 60 additions and 0 deletions
+7
View File
@@ -2481,6 +2481,13 @@ def db_event_sidecar_patch(event_id: str, body: SidecarPatchBody) -> dict:
if body.review is not None:
_get_db().update_event_review(event_id, new_sidecar.get("review", {}))
# Propagate the review to the event's histogram/waveform twin(s) so
# flagging one flags both (column-level; twins share serial+PVS+near time).
try:
_get_db().propagate_review_to_twins(event_id)
except Exception as exc:
log.warning("twin review-propagation failed for %s: %s", event_id, exc)
return new_sidecar