Chore: Remove unused+experimental /dashboards/calculate-diff API support (#114151)

This commit is contained in:
Ryan McKinley
2025-11-25 12:39:29 +03:00
committed by GitHub
parent 18bf4d99cd
commit fbc0540528
6 changed files with 0 additions and 258 deletions
@@ -656,10 +656,6 @@ const injectedRtkApi = api
}),
providesTags: ['dashboards', 'snapshots'],
}),
calculateDashboardDiff: build.mutation<CalculateDashboardDiffApiResponse, CalculateDashboardDiffApiArg>({
query: (queryArg) => ({ url: `/dashboards/calculate-diff`, method: 'POST', body: queryArg.body }),
invalidatesTags: ['dashboards'],
}),
postDashboard: build.mutation<PostDashboardApiResponse, PostDashboardApiArg>({
query: (queryArg) => ({ url: `/dashboards/db`, method: 'POST', body: queryArg.saveDashboardCommand }),
invalidatesTags: ['dashboards'],
@@ -2556,18 +2552,6 @@ export type SearchDashboardSnapshotsApiArg = {
/** Limit the number of returned results */
limit?: number;
};
export type CalculateDashboardDiffApiResponse = /** status 200 (empty) */ number[];
export type CalculateDashboardDiffApiArg = {
body: {
base?: CalculateDiffTarget;
/** The type of diff to return
Description:
`basic`
`json` */
diffType?: 'basic' | 'json';
new?: CalculateDiffTarget;
};
};
export type PostDashboardApiResponse = /** status 200 (empty) */ {
/** FolderUID The unique identifier (uid) of the folder the dashboard belongs to. */
folderUid?: string;
@@ -4400,11 +4384,6 @@ export type DashboardSnapshotDto = {
name?: string;
updated?: string;
};
export type CalculateDiffTarget = {
dashboardId?: number;
unsavedDashboard?: Json;
version?: number;
};
export type SaveDashboardCommand = {
UpdatedAt?: string;
dashboard?: Json;
@@ -6636,7 +6615,6 @@ export const {
useLazyRouteConvertPrometheusGetRuleGroupQuery,
useSearchDashboardSnapshotsQuery,
useLazySearchDashboardSnapshotsQuery,
useCalculateDashboardDiffMutation,
usePostDashboardMutation,
useGetHomeDashboardQuery,
useLazyGetHomeDashboardQuery,