diff --git a/public/app/api/clients/reporting/baseAPI.ts b/public/app/api/clients/reporting/baseAPI.ts deleted file mode 100644 index fa05615b859..00000000000 --- a/public/app/api/clients/reporting/baseAPI.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { createApi } from '@reduxjs/toolkit/query/react'; - -import { createBaseQuery } from '../../createBaseQuery'; - -export const BASE_URL = '/api/reports'; - -export const reportingAPI = createApi({ - baseQuery: createBaseQuery({ baseURL: BASE_URL }), - reducerPath: 'reportingAPI', - endpoints: () => ({}), - keepUnusedDataFor: 30, - refetchOnMountOrArgChange: true, - tagTypes: ['Reports', 'Report'], -}); diff --git a/public/app/core/reducers/root.ts b/public/app/core/reducers/root.ts index a42d1b9ec66..99877d65c90 100644 --- a/public/app/core/reducers/root.ts +++ b/public/app/core/reducers/root.ts @@ -32,7 +32,6 @@ import { folderAPI } from '../../api/clients/folder'; import { iamAPI } from '../../api/clients/iam'; import { playlistAPI } from '../../api/clients/playlist'; import { provisioningAPI } from '../../api/clients/provisioning'; -import { reportingAPI } from '../../api/clients/reporting/baseAPI'; import { alertingApi } from '../../features/alerting/unified/api/alertingApi'; import { userPreferencesAPI } from '../../features/preferences/api'; import { cleanUpAction } from '../actions/cleanUp'; @@ -72,7 +71,6 @@ const rootReducers = { [provisioningAPI.reducerPath]: provisioningAPI.reducer, [folderAPI.reducerPath]: folderAPI.reducer, [advisorAPI.reducerPath]: advisorAPI.reducer, - [reportingAPI.reducerPath]: reportingAPI.reducer, // PLOP_INJECT_REDUCER // Used by the API client generator }; diff --git a/public/app/store/configureStore.ts b/public/app/store/configureStore.ts index 3f0f41b5504..b161a695acf 100644 --- a/public/app/store/configureStore.ts +++ b/public/app/store/configureStore.ts @@ -2,7 +2,6 @@ import { configureStore as reduxConfigureStore, createListenerMiddleware } from import { setupListeners } from '@reduxjs/toolkit/query'; import { Middleware } from 'redux'; -import { reportingAPI } from 'app/api/clients/reporting/baseAPI'; import { browseDashboardsAPI } from 'app/features/browse-dashboards/api/browseDashboardsAPI'; import { publicDashboardApi } from 'app/features/dashboard/api/publicDashboardApi'; import { cloudMigrationAPI } from 'app/features/migrate-to-cloud/api'; @@ -52,7 +51,6 @@ export function configureStore(initialState?: Partial) { provisioningAPI.middleware, folderAPI.middleware, advisorAPI.middleware, - reportingAPI.middleware, // PLOP_INJECT_MIDDLEWARE // Used by the API client generator ...extraMiddleware