Stop dual-writing workstream_id on State Hub progress POSTs
Progress scope helpers and schedule-miss alerts now send workplan_id only. Legacy workstream_id in sink config still maps to workplan_id on the wire.
This commit is contained in:
parent
f171bb037a
commit
5a9292319e
6 changed files with 10 additions and 12 deletions
|
|
@ -124,7 +124,7 @@ def test_state_hub_progress_sink_posts_compact_probe_summary(monkeypatch) -> Non
|
|||
body = posts[0]["json"]
|
||||
assert body["summary"] == "Ops inventory probe: 1 ok, 0 degraded, 0 down, 1 skipped"
|
||||
assert body["workplan_id"] == "workstream-1"
|
||||
assert body["workstream_id"] == "workstream-1"
|
||||
assert "workstream_id" not in body
|
||||
assert body["task_id"] == "task-1"
|
||||
assert body["detail"]["activity_core_run_id"] == _run_id()
|
||||
assert body["detail"]["idempotency_key"] == result[0]["idempotency_key"]
|
||||
|
|
@ -192,7 +192,7 @@ def test_legacy_meter_weekly_review_sink_posts_progress(monkeypatch) -> None:
|
|||
assert body["event_type"] == "legacy_meter_weekly_review"
|
||||
assert "2 retirement candidate(s)" in body["summary"]
|
||||
assert body["workplan_id"] == "923bb94a-d16c-422c-b81e-16328bd7b60c"
|
||||
assert body["workstream_id"] == "923bb94a-d16c-422c-b81e-16328bd7b60c"
|
||||
assert "workstream_id" not in body
|
||||
|
||||
|
||||
def test_state_hub_progress_prefers_workplan_id(monkeypatch) -> None:
|
||||
|
|
@ -221,7 +221,7 @@ def test_state_hub_progress_prefers_workplan_id(monkeypatch) -> None:
|
|||
|
||||
body = posts[0]["json"]
|
||||
assert body["workplan_id"] == "workplan-1"
|
||||
assert body["workstream_id"] == "workplan-1"
|
||||
assert "workstream_id" not in body
|
||||
|
||||
|
||||
def test_core_hub_stabilization_sink_posts_progress(monkeypatch) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue