Skip to content

Commit

Permalink
Remove.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Oct 7, 2021
1 parent a9bf190 commit 0a1c0f2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 35 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/upgrade_assistant/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ export const DEPRECATION_LOGS_SOURCE_ID = 'deprecation_logs';
export const DEPRECATION_LOGS_INDEX = '.logs-deprecation.elasticsearch-default';
export const DEPRECATION_LOGS_INDEX_PATTERN = '.logs-deprecation.elasticsearch-default';

export const CLUSTER_UPGRADE_STATUS_POLL_INTERVAL_MS = 45000;
export const CLOUD_BACKUP_STATUS_POLL_INTERVAL_MS = 60000;
export const DEPRECATION_LOGS_COUNT_POLL_INTERVAL_MS = 15000;
2 changes: 0 additions & 2 deletions x-pack/plugins/upgrade_assistant/public/application/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ const App: React.FunctionComponent = () => {
services: { api },
} = useAppContext();

api.useClusterUpgradeStatus();

const [clusterUpgradeState, setClusterUpradeState] =
useState<ClusterUpgradeState>('isPreparingForUpgrade');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
} from '../../../common/types';
import {
API_BASE_PATH,
CLUSTER_UPGRADE_STATUS_POLL_INTERVAL_MS,
DEPRECATION_LOGS_COUNT_POLL_INTERVAL_MS,
CLOUD_BACKUP_STATUS_POLL_INTERVAL_MS,
} from '../../../common/constants';
Expand Down Expand Up @@ -72,14 +71,6 @@ export class ApiService {
this.clusterUpgradeStateListeners.push(listener);
}

public useClusterUpgradeStatus() {
return this.useRequest({
path: `${API_BASE_PATH}/cluster_upgrade_status`,
method: 'get',
pollIntervalMs: CLUSTER_UPGRADE_STATUS_POLL_INTERVAL_MS,
});
}

public useLoadCloudBackupStatus() {
return this.useRequest<CloudBackupStatus>({
path: `${API_BASE_PATH}/cloud_backup_status`,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { RouteDependencies } from '../types';

import { registerAppRoutes } from './app';
import { registerCloudBackupStatusRoutes } from './cloud_backup_status';
import { registerClusterUpgradeStatusRoutes } from './cluster_upgrade_status';
import { registerESDeprecationRoutes } from './es_deprecations';
import { registerDeprecationLoggingRoutes } from './deprecation_logging';
import { registerReindexIndicesRoutes, registerBatchReindexIndicesRoutes } from './reindex_indices';
Expand All @@ -22,7 +21,6 @@ import { registerUpgradeStatusRoute } from './status';
export function registerRoutes(dependencies: RouteDependencies, getWorker: () => ReindexWorker) {
registerAppRoutes(dependencies);
registerCloudBackupStatusRoutes(dependencies);
registerClusterUpgradeStatusRoutes(dependencies);
registerESDeprecationRoutes(dependencies);
registerDeprecationLoggingRoutes(dependencies);
registerReindexIndicesRoutes(dependencies, getWorker);
Expand Down

0 comments on commit 0a1c0f2

Please sign in to comment.