Skip to content

Commit 58cdea9

Browse files
committed
feat: update url limit
1 parent a086b87 commit 58cdea9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/components/Incidents/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { PrometheusEndpoint, PrometheusResponse } from '@openshift-console/dynam
44
import { getPrometheusBasePath, buildPrometheusUrl } from '../utils';
55
import { PROMETHEUS_QUERY_INTERVAL_SECONDS } from './utils';
66

7-
const MAX_URL_LENGTH = 5000;
7+
const MAX_URL_LENGTH = 2048;
88

99
/**
1010
* Creates a single Prometheus alert query string from a grouped alert value.

web/src/components/Incidents/processAlerts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export function convertToAlerts(
275275
alertsEndFiring: lastTimestamp,
276276
resolved,
277277
x: 0, // Will be set after sorting
278-
silenced: matchingIncident.silenced,
278+
silenced: matchingIncident.silenced ?? false,
279279
};
280280
})
281281
.filter((alert): alert is Alert => alert !== null)

0 commit comments

Comments
 (0)