fix: restore stage-based Alpha check classification
This commit is contained in:
@@ -207,7 +207,7 @@ def router(runner, ai):
|
||||
return {
|
||||
"snapshot": fingerprint(context),
|
||||
"checks": alpha.checks,
|
||||
"check_summary": check_summary(alpha.checks),
|
||||
"check_summary": check_summary(alpha.checks, check_type=alpha.check_type),
|
||||
"sections": context["sections"],
|
||||
"descriptions": {key: item["description"] for key, item in context["sections"].items()},
|
||||
"model": config.description_model,
|
||||
@@ -355,7 +355,7 @@ async def run_check(runner, job_id, payload):
|
||||
alpha.checks = sanitize(checks)
|
||||
alpha.is_metrics = {**alpha.is_metrics, "checks": alpha.checks}
|
||||
alpha.raw = {**alpha.raw, "is": {**(alpha.raw.get("is") or {}), "checks": alpha.checks}}
|
||||
for key, value in snapshot_columns(alpha.settings, alpha.is_metrics, alpha.checks).items():
|
||||
for key, value in snapshot_columns(alpha.settings, alpha.is_metrics, alpha.checks, checked=True).items():
|
||||
setattr(alpha, key, value)
|
||||
db.add(JobItem(job_id=job_id, alpha_id=alpha_id))
|
||||
job.processed = 1
|
||||
|
||||
Reference in New Issue
Block a user