Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement first stages of the ZDT migration algorithm #152219

Merged
merged 32 commits into from
Mar 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1a5cc56
add model version compare base utils
pgayvallet Feb 27, 2023
e5c341a
add compare function
pgayvallet Feb 27, 2023
087bc30
work in progress
pgayvallet Feb 28, 2023
b647ac7
update unit tests for init stage
pgayvallet Feb 28, 2023
8951569
build mappings for initial index creation
pgayvallet Feb 28, 2023
d2e9a4f
continue the implementation
pgayvallet Feb 28, 2023
e891e15
adding first integration test
pgayvallet Mar 1, 2023
6fd0bb3
implement update mapping part - untested
pgayvallet Mar 1, 2023
78efa7d
remove dead code
pgayvallet Mar 1, 2023
4dc5d87
adding mapping test
pgayvallet Mar 1, 2023
361c8e3
Merge remote-tracking branch 'upstream/main' into kbn-150309-base-zdt…
pgayvallet Mar 1, 2023
7822670
update the meta too
pgayvallet Mar 1, 2023
f0e394d
fix tests
pgayvallet Mar 1, 2023
c5b51e8
remove unused stage
pgayvallet Mar 1, 2023
affe313
fix ts errors
pgayvallet Mar 1, 2023
8a05ba2
update doc
pgayvallet Mar 1, 2023
0d0d51e
more doc
pgayvallet Mar 1, 2023
ecb4535
self review / nits
pgayvallet Mar 1, 2023
c424058
review nits
pgayvallet Mar 2, 2023
4c1fce6
add some unit tests
pgayvallet Mar 2, 2023
6d0b3f0
extract createDelayFn
pgayvallet Mar 6, 2023
7bfb926
tsdoc
pgayvallet Mar 6, 2023
d615419
add more unit tests on stages
pgayvallet Mar 6, 2023
ae22351
last stage unit tests
pgayvallet Mar 6, 2023
a70b1f3
just some doc
pgayvallet Mar 6, 2023
0cd232e
some utils unit tests
pgayvallet Mar 6, 2023
19a82b1
more unit tests
pgayvallet Mar 6, 2023
5bb6732
add integration test on mapping version mismatch
pgayvallet Mar 6, 2023
97f8de0
Merge remote-tracking branch 'upstream/main' into kbn-150309-base-zdt…
pgayvallet Mar 6, 2023
c033770
more utility unit tests
pgayvallet Mar 6, 2023
1d244db
review nits
pgayvallet Mar 8, 2023
33a9d5e
Merge remote-tracking branch 'upstream/main' into kbn-150309-base-zdt…
pgayvallet Mar 8, 2023
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
Prev Previous commit
Next Next commit
review nits
  • Loading branch information
pgayvallet committed Mar 8, 2023
commit 1d244dbe1fce4f8a515050c2686c4923ee4eaf3d
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ describe('logStateTransition', () => {
});
});

it('logs a debug message with the ', () => {
it('logs a debug message with the correct meta', () => {
const previous: LogAwareState = {
controlState: 'PREVIOUS',
logs: [],
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ import { createContextMock, MockedMigratorContext } from '../test_helpers';
import type { RetryableEsClientError } from '../../actions';
import type { State, BaseState, FatalState, AllActionStates } from '../state';
import type { StateActionResponse } from './types';
import type { ResponseType } from '../next';
import { model } from './model';

describe('model', () => {
@@ -120,14 +119,14 @@ describe('model', () => {
controlState,
} as unknown as State);

const createStubResponse = (): ResponseType<AllActionStates> =>
const createStubResponse = () =>
Either.right({
'.kibana_7.11.0_001': {
aliases: {},
mappings: { properties: {} },
settings: {},
},
}) as StateActionResponse<'INIT'>;
});

const stageMapping: Record<AllActionStates, Function> = {
INIT: StageMocks.init,