Skip to content

Commit

Permalink
Clean up unused status (#131558)
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang authored May 4, 2022
1 parent 6f0e4fa commit 42ec15b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/fleet/common/constants/epm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,4 @@ export const installationStatuses = {
Installing: 'installing',
InstallFailed: 'install_failed',
NotInstalled: 'not_installed',
InstalledBundled: 'installed_bundled',
} as const;
13 changes: 2 additions & 11 deletions x-pack/plugins/fleet/common/types/models/epm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ export interface DefaultPackagesInstallationError {
export type InstallType = 'reinstall' | 'reupdate' | 'rollback' | 'update' | 'install' | 'unknown';
export type InstallSource = 'registry' | 'upload' | 'bundled';

export type EpmPackageInstallStatus =
| 'installed'
| 'installing'
| 'install_failed'
| 'installed_bundled';
export type EpmPackageInstallStatus = 'installed' | 'installing' | 'install_failed';

export type DetailViewPanelName = 'overview' | 'policies' | 'assets' | 'settings' | 'custom';
export type ServiceName = 'kibana' | 'elasticsearch';
Expand Down Expand Up @@ -431,8 +427,7 @@ export type Installable<T> =
| InstalledRegistry<T>
| Installing<T>
| NotInstalled<T>
| InstallFailed<T>
| InstalledBundled<T>;
| InstallFailed<T>;

export type InstallStatusExcluded<T = {}> = T & {
status: undefined;
Expand All @@ -443,10 +438,6 @@ export type InstalledRegistry<T = {}> = T & {
savedObject: SavedObject<Installation>;
};

export type InstalledBundled<T = {}> = T & {
status: InstallationStatus['InstalledBundled'];
};

export type Installing<T = {}> = T & {
status: InstallationStatus['Installing'];
savedObject: SavedObject<Installation>;
Expand Down

0 comments on commit 42ec15b

Please sign in to comment.