Merge remote-tracking branch 'origin/main' into codex/sre-typed-automation-20260715
This commit is contained in:
@@ -1959,7 +1959,25 @@ class IwoooSSecurityAssetControlPlaneService:
|
||||
NULLIF(route.incident_id::text, ''),
|
||||
NULLIF(route.input ->> 'incident_id', '')
|
||||
) IS NOT NULL
|
||||
AND NULLIF(route.input ->> 'catalog_id', '') IS NOT NULL)
|
||||
AND (
|
||||
NULLIF(route.input ->> 'catalog_id', '') IS NOT NULL
|
||||
OR EXISTS (
|
||||
SELECT 1
|
||||
FROM jsonb_array_elements(
|
||||
CASE
|
||||
WHEN jsonb_typeof(
|
||||
route.input -> 'executor_candidates'
|
||||
) = 'array'
|
||||
THEN route.input -> 'executor_candidates'
|
||||
ELSE '[]'::jsonb
|
||||
END
|
||||
) candidate(candidate_payload)
|
||||
WHERE NULLIF(
|
||||
candidate.candidate_payload ->> 'catalog_id',
|
||||
''
|
||||
) IS NOT NULL
|
||||
)
|
||||
))
|
||||
AS correlated_controlled_route_count_24h,
|
||||
(SELECT count(*) FROM incident_evidence verifier
|
||||
WHERE verifier.collected_at >= NOW() - INTERVAL '24 hours'
|
||||
|
||||
Reference in New Issue
Block a user