Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
a2d6772
move reindexing servce into its own class
mattkime May 21, 2025
35b927f
restore routes
mattkime May 21, 2025
1916cde
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine May 21, 2025
00d9101
type fix
mattkime May 21, 2025
8c22d85
Merge branch 'shared_reindexing_service' of github.com:elastic/kibana…
mattkime May 21, 2025
e4e81ef
type fix
mattkime May 21, 2025
259ca3b
move everything into reindexing_service dir
mattkime May 22, 2025
32b0713
Start addressing todos
sabarasaba May 27, 2025
fd0f87a
Small refactor
sabarasaba May 27, 2025
e733903
Remove duped
sabarasaba May 27, 2025
f197336
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine May 27, 2025
6476f83
Merge branch 'main' into shared_reindexing_service
elasticmachine May 28, 2025
af24eab
Refactor remaining types and missing dependencies
sabarasaba May 29, 2025
316b485
Remove last comments
sabarasaba May 29, 2025
4486002
Merge branch 'main' into shared_reindexing_service
elasticmachine May 29, 2025
7e5d73a
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine May 29, 2025
4b15b39
Merge branch 'main' into shared_reindexing_service
elasticmachine May 30, 2025
311e040
create package to share code, better separateion between reindexing c…
mattkime Jun 1, 2025
d170c49
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Jun 1, 2025
964b6c4
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Jun 1, 2025
6da7897
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Jun 1, 2025
4164bf7
many ts fixes
mattkime Jun 1, 2025
8b36391
many ts fixes
mattkime Jun 1, 2025
84a2254
Merge branch 'shared_reindexing_service_v2' of github.com:elastic/kib…
mattkime Jun 1, 2025
7292c4c
[CI] Auto-commit changed files from 'node scripts/yarn_deduplicate'
kibanamachine Jun 1, 2025
669f584
ts fixe
mattkime Jun 1, 2025
1c02952
Merge branch 'shared_reindexing_service_v2' of github.com:elastic/kib…
mattkime Jun 1, 2025
9a57d1b
type fixes
mattkime Jun 1, 2025
2f94cb7
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Jun 1, 2025
b92140e
type fixes
mattkime Jun 1, 2025
ca88411
Merge branch 'shared_reindexing_service_v2' of github.com:elastic/kib…
mattkime Jun 1, 2025
33e73fa
type fixes
mattkime Jun 1, 2025
39773bb
type fixes
mattkime Jun 1, 2025
b36aca8
type fixes
mattkime Jun 1, 2025
45a7c03
partial progress
mattkime Jun 2, 2025
9c8ab32
partial progress
mattkime Jun 2, 2025
c449cb1
partial progress
mattkime Jun 2, 2025
2d0f35a
[CI] Auto-commit changed files from 'node scripts/build_plugin_list_d…
kibanamachine Jun 2, 2025
db69ece
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Jun 2, 2025
41a19c1
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Jun 2, 2025
7b9b822
partial progress
mattkime Jun 2, 2025
a77b197
Merge branch 'shared_reindexing_service_v2' of github.com:elastic/kib…
mattkime Jun 2, 2025
a7ec3b6
[CI] Auto-commit changed files from 'node scripts/yarn_deduplicate'
kibanamachine Jun 2, 2025
3e0bdf6
partial progress
mattkime Jun 2, 2025
6414103
partial progress
mattkime Jun 2, 2025
f4e200d
partial progress
mattkime Jun 2, 2025
48a9a2c
partial progress
mattkime Jun 2, 2025
ee567a8
partial progress
mattkime Jun 2, 2025
b7a9dc8
partial progress
mattkime Jun 2, 2025
55f10cb
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Jun 2, 2025
b270ce3
move saved object init
mattkime Jun 3, 2025
cef078a
Merge branch 'shared_reindexing_service_v2' of github.com:elastic/kib…
mattkime Jun 3, 2025
2f0c098
fix jest tests
mattkime Jun 3, 2025
8971698
remove version singleton, replace with passed object value
mattkime Jun 4, 2025
11a6ca0
Merge branch 'main' into shared_reindexing_service_v2
mattkime Jun 4, 2025
0fd872a
partial progress on fixing jest tests
mattkime Jun 4, 2025
05f7997
fix jest tests
mattkime Jun 4, 2025
af72820
Merge branch 'shared_reindexing_service_v2' of github.com:elastic/kib…
mattkime Jun 4, 2025
38dc1d5
add plugin
mattkime Jun 5, 2025
5b49ae4
Merge branch 'main' into shared_reindexing_service_v2
mattkime Jul 10, 2025
efb2bc9
fix tests and cleanup
mattkime Jul 16, 2025
c7cf7fb
fix saved object mapping
mattkime Jul 16, 2025
1fc0d09
typo fix
mattkime Jul 16, 2025
02a4c59
Merge branch 'main' into shared_reindexing_service_v3
mattkime Jul 20, 2025
633c4ed
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Jul 20, 2025
04dbc50
better types
mattkime Jul 20, 2025
e5a9c42
Merge branch 'shared_reindexing_service_v3' of github.com:elastic/kib…
mattkime Jul 21, 2025
e5ca0c3
cleanup
mattkime Jul 21, 2025
b4b498d
typefix
mattkime Jul 21, 2025
72f66a4
Merge branch 'main' into shared_reindexing_service_v3
mattkime Jul 21, 2025
e709396
fix saved object cleanup
mattkime Jul 22, 2025
2263989
fix jest test
mattkime Jul 22, 2025
65f45cb
Merge branch 'main' into shared_reindexing_service_v3
mattkime Jul 22, 2025
668c8bb
Merge branch 'main' into shared_reindexing_service_v3
mattkime Jul 22, 2025
27d4d5a
Merge branch 'main' into shared_reindexing_service_v3
mattkime Jul 22, 2025
113a6c1
cleanup and reenable test
mattkime Jul 23, 2025
aaf5e82
Merge branch 'shared_reindexing_service_v3' of github.com:elastic/kib…
mattkime Jul 23, 2025
b676e44
[CI] Auto-commit changed files from 'node scripts/styled_components_m…
kibanamachine Jul 23, 2025
1167b95
Merge branch 'main' into shared_reindexing_service_v3
mattkime Jul 23, 2025
8e29bfa
fix passing of version info
mattkime Jul 27, 2025
bdd22eb
cleanup
mattkime Jul 27, 2025
5d7856c
cleanup
mattkime Jul 30, 2025
cb89153
cleanup
mattkime Jul 30, 2025
62765a7
Merge branch 'main' into shared_reindexing_service_v3
mattkime Jul 31, 2025
df25ee4
update limits
mattkime Jul 31, 2025
d1fca8e
Merge branch 'shared_reindexing_service_v3' of github.com:elastic/kib…
mattkime Jul 31, 2025
7f702a9
[CI] Auto-commit changed files from 'node scripts/eslint_all_files --…
kibanamachine Jul 31, 2025
4843be3
Merge branch 'main' into shared_reindexing_service_v3
mattkime Jul 31, 2025
2aa8138
Merge branch 'main' into shared_reindexing_service_v3
mattkime Aug 4, 2025
8b1794b
Update limits.yml
mattkime Aug 4, 2025
79a87ab
Merge branch 'main' into shared_reindexing_service_v3
mattkime Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,9 @@ x-pack/platform/packages/private/security/authorization_core @elastic/kibana-sec
x-pack/platform/packages/private/security/authorization_core_common @elastic/kibana-security
x-pack/platform/packages/private/security/role_management_model @elastic/kibana-security
x-pack/platform/packages/private/security/ui_components @elastic/kibana-security
x-pack/platform/packages/private/upgrade-assistant @elastic/kibana-management
x-pack/platform/packages/private/upgrade-assistant/common @elastic/kibana-management
x-pack/platform/packages/private/upgrade-assistant/public @elastic/kibana-management
x-pack/platform/packages/private/upgrade-assistant/server @elastic/kibana-management
x-pack/platform/packages/shared/ai-assistant/ai-assistant-cta @elastic/appex-sharedux
x-pack/platform/packages/shared/ai-assistant/common @elastic/search-kibana
x-pack/platform/packages/shared/ai-assistant/icon @elastic/appex-sharedux
Expand Down Expand Up @@ -941,6 +943,7 @@ x-pack/platform/plugins/private/monitoring_collection @elastic/stack-monitoring
x-pack/platform/plugins/private/observability_ai_assistant_management @elastic/obs-ai-assistant
x-pack/platform/plugins/private/painless_lab @elastic/kibana-management
x-pack/platform/plugins/private/product_intercept @elastic/appex-sharedux
x-pack/platform/plugins/private/reindex_service @elastic/kibana-management
x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management
x-pack/platform/plugins/private/reporting @elastic/response-ops
x-pack/platform/plugins/private/rollup @elastic/kibana-management
Expand Down
1 change: 1 addition & 0 deletions docs/extend/plugin-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ mapped_pages:
| [productIntercept](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/private/product_intercept/README.md) | This is a standalone plugin that leverages the intercept plugin to display product intercept used to gather information that is turn used to compute CSAT about user's experience of Kibana. |
| [profiling](https://github.com/elastic/kibana/blob/main/x-pack/solutions/observability/plugins/profiling/README.md) | Universal Profiling provides fleet-wide, whole-system, continuous profiling with zero instrumentation. Get a comprehensive understanding of what lines of code are consuming compute resources throughout your entire fleet by visualizing your data in Kibana using the flamegraph, stacktraces, and top functions views. |
| [profilingDataAccess](https://github.com/elastic/kibana/blob/main/x-pack/solutions/observability/plugins/profiling_data_access) | WARNING: Missing or empty README. |
| [reindexService](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/private/reindex_service/README.md) | Reindexing as a service |
| [remoteClusters](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/private/remote_clusters/README.md) | This plugin helps users manage their remote clusters, which enable cross-cluster search and cross-cluster replication. |
| [reporting](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/private/reporting/README.md) | An awesome Kibana reporting plugin |
| [rollup](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/private/rollup/README.md) | Welcome to the Kibana rollup plugin! This plugin provides Kibana support for Elasticsearch's rollup feature. Please refer to the Elasticsearch documentation to understand rollup indices and how to create rollup jobs. |
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@
"@kbn/react-kibana-mount": "link:src/platform/packages/shared/react/kibana_mount",
"@kbn/react-mute-legacy-root-warning": "link:src/platform/packages/private/kbn-react-mute-legacy-root-warning",
"@kbn/recently-accessed": "link:src/platform/packages/shared/kbn-recently-accessed",
"@kbn/reindex-service-plugin": "link:x-pack/platform/plugins/private/reindex_service",
"@kbn/remote-clusters-plugin": "link:x-pack/platform/plugins/private/remote_clusters",
"@kbn/rendering-plugin": "link:src/platform/test/plugin_functional/plugins/rendering_plugin",
"@kbn/repo-info": "link:src/platform/packages/shared/kbn-repo-info",
Expand Down Expand Up @@ -1051,7 +1052,9 @@
"@kbn/unified-tabs-examples-plugin": "link:examples/unified_tabs_examples",
"@kbn/unsaved-changes-badge": "link:src/platform/packages/private/kbn-unsaved-changes-badge",
"@kbn/unsaved-changes-prompt": "link:src/platform/packages/shared/kbn-unsaved-changes-prompt",
"@kbn/upgrade-assistant": "link:x-pack/platform/packages/private/upgrade-assistant",
"@kbn/upgrade-assistant-pkg-common": "link:x-pack/platform/packages/private/upgrade-assistant/common",
"@kbn/upgrade-assistant-pkg-public": "link:x-pack/platform/packages/private/upgrade-assistant/public",
"@kbn/upgrade-assistant-pkg-server": "link:x-pack/platform/packages/private/upgrade-assistant/server",
"@kbn/upgrade-assistant-plugin": "link:x-pack/platform/plugins/private/upgrade_assistant",
"@kbn/uptime-plugin": "link:x-pack/solutions/observability/plugins/uptime",
"@kbn/url-drilldown-plugin": "link:x-pack/platform/plugins/private/drilldowns/url_drilldown",
Expand Down
1 change: 1 addition & 0 deletions packages/kbn-optimizer/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ pageLoadAssetSize:
productDocBase: 3058
productIntercept: 9860
profiling: 20716
reindexService: 2781
remoteClusters: 10170
reporting: 58600
rollup: 12709
Expand Down
2 changes: 1 addition & 1 deletion src/dev/storybook/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ export const storybookAliases = {
unified_doc_viewer: 'src/platform/plugins/shared/unified_doc_viewer/.storybook',
unified_search: 'src/platform/plugins/shared/unified_search/.storybook',
unified_tabs: 'src/platform/packages/shared/kbn-unified-tabs/.storybook',
upgrade_assistant: 'x-pack/platform/packages/private/upgrade-assistant/.storybook',
upgrade_assistant: 'x-pack/platform/packages/private/upgrade-assistant/public/.storybook',
};
10 changes: 8 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,8 @@
"@kbn/react-mute-legacy-root-warning/*": ["src/platform/packages/private/kbn-react-mute-legacy-root-warning/*"],
"@kbn/recently-accessed": ["src/platform/packages/shared/kbn-recently-accessed"],
"@kbn/recently-accessed/*": ["src/platform/packages/shared/kbn-recently-accessed/*"],
"@kbn/reindex-service-plugin": ["x-pack/platform/plugins/private/reindex_service"],
"@kbn/reindex-service-plugin/*": ["x-pack/platform/plugins/private/reindex_service/*"],
"@kbn/relocate": ["packages/kbn-relocate"],
"@kbn/relocate/*": ["packages/kbn-relocate/*"],
"@kbn/remote-clusters-plugin": ["x-pack/platform/plugins/private/remote_clusters"],
Expand Down Expand Up @@ -2184,8 +2186,12 @@
"@kbn/unsaved-changes-badge/*": ["src/platform/packages/private/kbn-unsaved-changes-badge/*"],
"@kbn/unsaved-changes-prompt": ["src/platform/packages/shared/kbn-unsaved-changes-prompt"],
"@kbn/unsaved-changes-prompt/*": ["src/platform/packages/shared/kbn-unsaved-changes-prompt/*"],
"@kbn/upgrade-assistant": ["x-pack/platform/packages/private/upgrade-assistant"],
"@kbn/upgrade-assistant/*": ["x-pack/platform/packages/private/upgrade-assistant/*"],
"@kbn/upgrade-assistant-pkg-common": ["x-pack/platform/packages/private/upgrade-assistant/common"],
"@kbn/upgrade-assistant-pkg-common/*": ["x-pack/platform/packages/private/upgrade-assistant/common/*"],
"@kbn/upgrade-assistant-pkg-public": ["x-pack/platform/packages/private/upgrade-assistant/public"],
"@kbn/upgrade-assistant-pkg-public/*": ["x-pack/platform/packages/private/upgrade-assistant/public/*"],
"@kbn/upgrade-assistant-pkg-server": ["x-pack/platform/packages/private/upgrade-assistant/server"],
"@kbn/upgrade-assistant-pkg-server/*": ["x-pack/platform/packages/private/upgrade-assistant/server/*"],
"@kbn/upgrade-assistant-plugin": ["x-pack/platform/plugins/private/upgrade_assistant"],
"@kbn/upgrade-assistant-plugin/*": ["x-pack/platform/plugins/private/upgrade_assistant/*"],
"@kbn/uptime-plugin": ["x-pack/solutions/observability/plugins/uptime"],
Expand Down
5 changes: 4 additions & 1 deletion x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@
"xpack.triggersActionsUI": "platform/plugins/shared/triggers_actions_ui",
"xpack.upgradeAssistant": [
"platform/plugins/private/upgrade_assistant",
"platform/packages/private/upgrade-assistant"
"platform/plugins/private/reindex_service",
"platform/packages/private/upgrade-assistant/common",
"platform/packages/private/upgrade-assistant/public",
"platform/packages/private/upgrade-assistant/server"
],
"xpack.uptime": [
"solutions/observability/plugins/uptime"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @kbn/upgrade-assistant-common

Contains Upgrade Assistant related common code
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

export * from './src/types';
export * from './src/constants';
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/packages/private/upgrade-assistant'],
rootDir: '../../../../../..',
roots: ['<rootDir>/x-pack/platform/packages/private/upgrade-assistant/common'],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "shared-common",
"id": "@kbn/upgrade-assistant-pkg-common",
"owner": [
"@elastic/kibana-management"
],
"group": "platform",
"visibility": "private"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@kbn/upgrade-assistant",
"name": "@kbn/upgrade-assistant-pkg-common",
"private": true,
"version": "1.0.0",
"license": "Elastic License 2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

const ML_UPGRADE_OP_TYPE = 'upgrade-assistant-ml-upgrade-operation';
const REINDEX_OP_TYPE = 'upgrade-assistant-reindex-operation';
const UA_BASE_PATH = '/api/upgrade_assistant';

export { ML_UPGRADE_OP_TYPE, REINDEX_OP_TYPE, UA_BASE_PATH };
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { SavedObject } from '@kbn/core/types';

// 8.0 -> 9.0 warnings
export type IndexWarningType = 'indexSetting' | 'replaceIndexWithAlias' | 'makeIndexReadonly';

export interface IndexWarning {
warningType: IndexWarningType;
flow: 'reindex' | 'readonly' | 'all';
/**
* Optional metadata for deprecations
*
* @remark
* For "indexSetting" we want to surface the deprecated settings.
*/
meta?: {
[key: string]: string | string[] | boolean;
};
}

export interface QueueSettings {
/**
* A Unix timestamp of when the reindex operation was enqueued.
*
* @remark
* This is used by the reindexing scheduler to determine execution
* order.
*/
queuedAt: number;

/**
* A Unix timestamp of when the reindex operation was started.
*
* @remark
* Updating this field is useful for _also_ updating the saved object "updated_at" field
* which is used to determine stale or abandoned reindex operations.
*
* For now this is used by the reindex worker scheduler to determine whether we have
* A queue item at the start of the queue.
*
*/
startedAt?: number;
}

export interface ReindexOptions {
/**
* Whether to treat the index as if it were closed. This instructs the
* reindex strategy to first open the index, perform reindexing and
* then close the index again.
*/
openAndClose?: boolean;

/**
* Set this key to configure a reindex operation as part of a
* batch to be run in series.
*/
queueSettings?: QueueSettings;
}

export interface ReindexStatusResponse {
meta: {
indexName: string;
reindexName: string;
// Array of aliases pointing to the index being reindexed
aliases: string[];
isReadonly: boolean;
isFrozen: boolean;
isInDataStream: boolean;
isFollowerIndex: boolean;
};
warnings?: IndexWarning[];
reindexOp?: ReindexOperation;
hasRequiredPrivileges?: boolean;
}

export interface ReindexOperation {
indexName: string;
newIndexName: string;
status: ReindexStatus;
lastCompletedStep: ReindexStep;
locked: string | null;
reindexTaskId: string | null;
reindexTaskPercComplete: number | null;
errorMessage: string | null;
// This field is only used for the singleton IndexConsumerType documents.
runningReindexCount: number | null;
rollupJob?: string;

/**
* The original index settings to set after reindex is completed.
* The target index is created with other defaults to improve reindexing performance.
* https://github.com/elastic/kibana/issues/201605
*/
backupSettings?: {
'index.number_of_replicas'?: number;
'index.refresh_interval'?: number;
};

/**
* Options for the reindexing strategy.
*
* @remark
* Marked as optional for backwards compatibility. We should still
* be able to handle older ReindexOperation objects.
*/
reindexOptions?: ReindexOptions;
}

export interface ReindexOperationCancelResponse {
acknowledged: true;
}

export enum ReindexStep {
// Enum values are spaced out by 10 to give us room to insert steps in between.
created = 0,
readonly = 20,
newIndexCreated = 30,
reindexStarted = 40,
reindexCompleted = 50,
indexSettingsRestored = 55,
aliasCreated = 60,
originalIndexDeleted = 70,
existingAliasesUpdated = 80,
}

export enum ReindexStatus {
inProgress,
completed,
failed,
paused,
cancelled,
// Used by the UI to differentiate if there was a failure retrieving
// the status from the server API
fetchFailed,
}

export type ReindexSavedObject = SavedObject<ReindexOperation>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": "../../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
"jest",
"node",
"react"
]
},
"include": [
"**/*.ts",
"**/*.tsx",
],
"exclude": [
"target/**/*"
],
"kbn_references": [
"@kbn/core",
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @kbn/upgrade-assistant
# @kbn/upgrade-assistant-pkg-public

Contains Upgrade Assistant related components and constants to be used by the Upgrade Assistant app.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../..',
roots: ['<rootDir>/x-pack/platform/packages/private/upgrade-assistant/public'],
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "shared-browser",
"id": "@kbn/upgrade-assistant",
"id": "@kbn/upgrade-assistant-pkg-public",
"owner": [
"@elastic/kibana-management"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@kbn/upgrade-assistant-pkg-public",
"private": true,
"version": "1.0.0",
"license": "Elastic License 2.0"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../../../tsconfig.base.json",
"extends": "../../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @kbn/upgrade-assistant-pkg-server

Contains Upgrade Assistant related server side utilities.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

export type {
FlatSettings,
IndexWarning,
IndexWarningType,
ResolveIndexResponseFromES,
} from './src/types';
export { getRollupJobByIndexName } from './src/rollup_job';
export { getReindexWarnings } from './src/index_settings';
export { Version } from './src/version';
export { esIndicesStateCheck } from './src/es_indices_state_check';
export { getIndexState } from './src/get_index_state';
export {
reindexOperationSavedObjectType,
mlSavedObjectType,
REINDEX_OP_TYPE,
} from './src/saved_object_types';
export { versionCheckHandlerWrapper } from './src/es_version_precheck';
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../..',
roots: ['<rootDir>/x-pack/platform/packages/private/upgrade-assistant/server'],
};
Loading
Loading