Alerting: Fix missing pagination param in the oncall request (#81620)

Add skip_pagination param to the oncall request
This commit is contained in:
Konrad Lalik
2024-01-31 12:09:11 +01:00
committed by GitHub
parent 3b2352f066
commit ab891d92fb
@@ -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) => {