-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
64 changed files
with
4,806 additions
and
125 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,7 @@ | |
"@scant/router": "^0.1.0", | ||
"@slack/client": "^4.8.0", | ||
"@turf/boolean-contains": "6.0.1", | ||
"@types/json-stable-stringify": "^1.0.32", | ||
"angular-resource": "1.4.9", | ||
"angular-sanitize": "1.6.5", | ||
"angular-ui-ace": "0.2.3", | ||
|
@@ -187,6 +188,7 @@ | |
"io-ts": "^1.4.2", | ||
"joi": "^13.5.2", | ||
"jquery": "^3.3.1", | ||
"json-stable-stringify": "^1.0.1", | ||
"jsonwebtoken": "^8.3.0", | ||
"lodash": "npm:@elastic/[email protected]", | ||
"lodash.keyby": "^4.6.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { | ||
SavedObject, | ||
SavedObjectAttributes, | ||
} from 'src/server/saved_objects/service/saved_objects_client'; | ||
|
||
export enum ReindexStep { | ||
// Enum values are spaced out by 10 to give us room to insert steps in between. | ||
created = 0, | ||
indexConsumersStopped = 10, | ||
readonly = 20, | ||
newIndexCreated = 30, | ||
reindexStarted = 40, | ||
reindexCompleted = 50, | ||
aliasCreated = 60, | ||
indexConsumersStarted = 70, | ||
} | ||
|
||
export enum ReindexStatus { | ||
inProgress, | ||
completed, | ||
failed, | ||
paused, | ||
} | ||
|
||
export const REINDEX_OP_TYPE = 'upgrade-assistant-reindex-operation'; | ||
export interface ReindexOperation extends SavedObjectAttributes { | ||
indexName: string; | ||
newIndexName: string; | ||
status: ReindexStatus; | ||
lastCompletedStep: ReindexStep; | ||
locked: string | null; | ||
reindexTaskId: string | null; | ||
reindexTaskPercComplete: number | null; | ||
errorMessage: string | null; | ||
mlReindexCount: number | null; | ||
} | ||
|
||
export type ReindexSavedObject = SavedObject<ReindexOperation>; | ||
|
||
export enum ReindexWarning { | ||
// 6.0 -> 7.0 warnings, now unused | ||
allField = 0, | ||
booleanFields = 1, | ||
|
||
// 7.0 -> 8.0 warnings | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"upgrade-assistant-reindex-operation": { | ||
"dynamic": true, | ||
"properties": { | ||
"indexName": { | ||
"type": "keyword" | ||
}, | ||
"status": { | ||
"type": "integer" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
x-pack/plugins/upgrade_assistant/public/components/tabs/checkup/deprecations/_index.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.