fix: Operational context nutzt korrekte Snapshot-Feldnamen.
All checks were successful
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 2m30s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 12s
All checks were successful
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 2m30s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 12s
initiative_title/initiative_status statt title/status — behebt test_operational_api_with_service_token. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
b8945556ad
commit
a097a82e17
|
|
@ -100,15 +100,18 @@ def operational_context(
|
|||
raise HTTPException(status_code=404, detail="Vorhaben nicht gefunden")
|
||||
subset = {
|
||||
"initiative_id": snapshot.get("initiative_id"),
|
||||
"title": snapshot.get("title"),
|
||||
"status": snapshot.get("status"),
|
||||
"title": snapshot.get("initiative_title"),
|
||||
"status": snapshot.get("initiative_status"),
|
||||
"method_key": snapshot.get("method_key"),
|
||||
"method_label": snapshot.get("method_label"),
|
||||
"archetype_key": snapshot.get("archetype_key"),
|
||||
"archetype_label": snapshot.get("archetype_label"),
|
||||
"steering_guidance": snapshot.get("steering_guidance"),
|
||||
"lifecycle": snapshot.get("lifecycle"),
|
||||
"lifecycle_state": snapshot.get("lifecycle_state"),
|
||||
"lifecycle_label": snapshot.get("lifecycle_label"),
|
||||
"signals": snapshot.get("signals"),
|
||||
"attention": snapshot.get("attention"),
|
||||
"attention_items": snapshot.get("attention_items"),
|
||||
"next_actions": snapshot.get("next_actions"),
|
||||
"active_work_cycle": snapshot.get("active_work_cycle"),
|
||||
}
|
||||
return _ok(ctx, subset)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user