fix(service): use list_decisions in robot helper
The Robot helper called the non-existent get_decisions_for_plan method on DecisionService. The correct method is list_decisions. ISSUES CLOSED: #172
This commit is contained in:
@@ -108,7 +108,7 @@ def _record_integration() -> None:
|
||||
# Start strategize -> should record a strategy_choice decision
|
||||
lifecycle_svc.start_strategize(plan_id)
|
||||
|
||||
decisions = decision_svc.get_decisions_for_plan(plan_id)
|
||||
decisions = decision_svc.list_decisions(plan_id)
|
||||
strategy_decisions = [
|
||||
d for d in decisions if str(d.decision_type) == "strategy_choice"
|
||||
]
|
||||
@@ -128,7 +128,7 @@ def _record_integration() -> None:
|
||||
# Start execute -> should record an implementation_choice decision
|
||||
lifecycle_svc.start_execute(plan_id)
|
||||
|
||||
decisions = decision_svc.get_decisions_for_plan(plan_id)
|
||||
decisions = decision_svc.list_decisions(plan_id)
|
||||
impl_decisions = [
|
||||
d for d in decisions if str(d.decision_type) == "implementation_choice"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user