We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193a8d5 commit 45554aeCopy full SHA for 45554ae
1 file changed
services/libs/data-access-layer/src/osspckgs/api.ts
@@ -78,7 +78,7 @@ export async function getOsspreyMetrics(qx: QueryExecutor): Promise<OsspreyMetri
78
COUNT(*) FILTER (WHERE s.status IN ('assessing','active','needs_attention'))::text AS covered,
79
COUNT(*) FILTER (WHERE s.status = 'needs_attention')::text AS "needsAttention",
80
COUNT(*) FILTER (WHERE s.status = 'escalated')::text AS escalated,
81
- COUNT(*) FILTER (WHERE s.status = 'unassigned' OR s.id IS NULL)::text AS "unassignedCritical"
+ COUNT(*) FILTER (WHERE s.id IS NULL OR s.status IS NULL OR s.status IN ('unassigned','open','blocked','inactive'))::text AS "unassignedCritical"
82
FROM packages p
83
LEFT JOIN stewardships s ON s.package_id = p.id
84
WHERE p.is_critical = true
0 commit comments