Alerting: Hide error messages for failing HTTP calls to Grafana OnCall (#78919)

This commit is contained in:
Gilles De Mey 2023-11-30 22:30:24 +01:00 committed by GitHub
parent 243c7583c9
commit 69e1046ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@ export const onCallApi = alertingApi.injectEndpoints({
// legacy_grafana_alerting is necessary for OnCall.
// We do NOT need to differentiate between these two on our side
params: { filters: true, integration: [GRAFANA_ONCALL_INTEGRATION_TYPE, 'legacy_grafana_alerting'] },
showErrorAlert: false,
}),
transformResponse: (response: AlertReceiveChannelsResult) => {
if (isPaginatedResponse(response)) {
@ -71,6 +72,7 @@ export const onCallApi = alertingApi.injectEndpoints({
features: build.query<OnCallFeature[], void>({
query: () => ({
url: getProxyApiUrl('/api/internal/v1/features/'),
showErrorAlert: false,
}),
}),
}),