fix(awooop): count timeline and playbook log sources
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 17s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-29 15:44:51 +08:00
parent a498a53d53
commit b33ef23f59
2 changed files with 4 additions and 16 deletions

View File

@@ -2437,21 +2437,9 @@ _RUNTIME_TIMELINE_COUNTS_SQL = """
WHERE created_at >= NOW() - (:lookback_hours * INTERVAL '1 hour')
) AS recent
FROM timeline_events
WHERE event_type IN (
'mcp_call',
'verifier',
'ai_agent_deploy_control_plane_decision',
'controlled_apply',
'auto_repair',
'km_writeback'
)
OR actor IN (
'ansible_check_mode_worker',
'ansible_controlled_apply_worker',
'post_apply_verifier',
'truth_chain_reconciliation'
)
OR actor_role IN ('mcp', 'replay', 'verifier', 'executor')
WHERE event_type IS NOT NULL
OR actor IS NOT NULL
OR actor_role IS NOT NULL
"""
@@ -2469,7 +2457,6 @@ _RUNTIME_PLAYBOOK_TRUST_COUNTS_SQL = """
WHERE updated_at >= NOW() - (:lookback_hours * INTERVAL '1 hour')
) AS recent
FROM playbooks
WHERE project_id = :project_id
GROUP BY
CASE
WHEN review_required IS TRUE THEN 'review_required'