feat: release 1.5.1 with human review and batch filters
This commit is contained in:
1 parent
53c5680260
commit
bdd1aa2c14
36 files changed
+672
-57
No files matched your search
@@ -20,7 +20,7 @@ from fastapi import APIRouter, HTTPException
|
||||
|
||||
from artemis.config import DB_PATH, TRACES_PATH
|
||||
from artemis.runtime import trace_store
|
||||
from artemis.runtime.case_result import read_case_result
|
||||
from apps.admin_console.services.case_review import read_reviewed_result
|
||||
|
||||
try:
|
||||
from admin_console.core.state import state
|
||||
@@ -83,6 +83,7 @@ def _list_sessions_sync():
|
||||
job = jobs_by_id.get(s_id)
|
||||
if job:
|
||||
case = job.get("case") or {}
|
||||
row_dict["batch_id"] = job.get("batch_id")
|
||||
row_dict["case_id"] = case.get("case_id") or ""
|
||||
row_dict["display_name"] = execution_title(job) or row_dict.get("initial_goal")
|
||||
row_dict["iteration"] = job.get("iteration", 1)
|
||||
@@ -131,8 +132,12 @@ def _list_sessions_sync():
|
||||
else:
|
||||
row_dict["video_url"] = None
|
||||
row_dict["recording_status"] = recording_status
|
||||
row_dict["test_result"] = read_case_result(
|
||||
s_id, row_dict.get("status") or "", row_dict.get("error") or "", root=TRACES_PATH
|
||||
row_dict["test_result"] = read_reviewed_result(
|
||||
s_id,
|
||||
row_dict.get("status") or "",
|
||||
row_dict.get("error") or "",
|
||||
root=TRACES_PATH,
|
||||
storage=store,
|
||||
)
|
||||
|
||||
agent_names = agent_names_by_session.get(s_id, [])
|
||||
@@ -194,8 +199,10 @@ async def get_session_details(session_id: str):
|
||||
if not row:
|
||||
raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
|
||||
result = dict(row)
|
||||
result["test_result"] = read_case_result(
|
||||
session_id, result.get("status") or "", root=TRACES_PATH
|
||||
job = store.job(session_id) or {}
|
||||
result["batch_id"] = job.get("batch_id")
|
||||
result["test_result"] = read_reviewed_result(
|
||||
session_id, result.get("status") or "", root=TRACES_PATH, storage=store
|
||||
)
|
||||
return result
|
||||
|
||||
|
||||
Reference in new issue
Block a user