fix(web): show Runs incident status-chain focus
Some checks failed
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m34s
CD Pipeline / build-and-deploy (push) Successful in 3m43s
CD Pipeline / post-deploy-checks (push) Successful in 1m29s
Ansible / Reboot Recovery Contract / validate (push) Has been cancelled
Some checks failed
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m34s
CD Pipeline / build-and-deploy (push) Successful in 3m43s
CD Pipeline / post-deploy-checks (push) Successful in 1m29s
Ansible / Reboot Recovery Contract / validate (push) Has been cancelled
This commit is contained in:
@@ -4539,10 +4539,13 @@ export default function RunsPage() {
|
||||
};
|
||||
}, [runs]);
|
||||
const runIncidentIds = useMemo(() => {
|
||||
return Array.from(new Set(
|
||||
runs.flatMap((run) => linkedIncidentIds(run.remediation_summary))
|
||||
));
|
||||
}, [runs]);
|
||||
const normalizedIncidentFilter = incidentFilter.trim().toUpperCase();
|
||||
const ids = runs.flatMap((run) => linkedIncidentIds(run.remediation_summary));
|
||||
if (INCIDENT_ID_FILTER_RE.test(normalizedIncidentFilter)) {
|
||||
ids.unshift(normalizedIncidentFilter);
|
||||
}
|
||||
return Array.from(new Set(ids));
|
||||
}, [runs, incidentFilter]);
|
||||
const {
|
||||
statusChains: runStatusChains,
|
||||
isLoading: runStatusChainsLoading,
|
||||
|
||||
Reference in New Issue
Block a user