From ab891d92fb4da9a1328abe7ef95cbfde0ae2511f Mon Sep 17 00:00:00 2001 From: Konrad Lalik Date: Wed, 31 Jan 2024 12:09:11 +0100 Subject: [PATCH] Alerting: Fix missing pagination param in the oncall request (#81620) Add skip_pagination param to the oncall request --- public/app/features/alerting/unified/api/onCallApi.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/api/onCallApi.ts b/public/app/features/alerting/unified/api/onCallApi.ts index bd4baad847a..a3a4ebdfb6b 100644 --- a/public/app/features/alerting/unified/api/onCallApi.ts +++ b/public/app/features/alerting/unified/api/onCallApi.ts @@ -42,7 +42,11 @@ export const onCallApi = alertingApi.injectEndpoints({ url: getProxyApiUrl('/api/internal/v1/alert_receive_channels/'), // 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'] }, + params: { + filters: true, + integration: [GRAFANA_ONCALL_INTEGRATION_TYPE, 'legacy_grafana_alerting'], + skip_pagination: true, + }, showErrorAlert: false, }), transformResponse: (response: AlertReceiveChannelsResult) => {