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
|
|
@ -41,15 +41,15 @@ def test_apply_progress_scope_prefers_workplan_id() -> None:
|
|||
{"workplan_id": "wp-1", "workstream_id": "ws-legacy", "topic_id": "topic-1"},
|
||||
)
|
||||
assert body["workplan_id"] == "wp-1"
|
||||
assert body["workstream_id"] == "wp-1"
|
||||
assert "workstream_id" not in body
|
||||
assert body["topic_id"] == "topic-1"
|
||||
|
||||
|
||||
def test_apply_progress_scope_dual_writes_legacy_workstream_id() -> None:
|
||||
def test_apply_progress_scope_maps_legacy_workstream_config_to_workplan_id() -> None:
|
||||
body: dict[str, str] = {}
|
||||
apply_progress_scope_fields(body, {"workstream_id": "ws-1"})
|
||||
assert body["workplan_id"] == "ws-1"
|
||||
assert body["workstream_id"] == "ws-1"
|
||||
assert "workstream_id" not in body
|
||||
|
||||
|
||||
def test_distinct_identities_get_distinct_keys() -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue