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

[ML] Transforms: API schemas and integration tests #75164

Merged
merged 53 commits into from
Sep 14, 2020
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
2a2c3f3
[ML] Transform list API integration test.
walterra Aug 12, 2020
3bdeb4f
[ML] Get single transform API integration test.
walterra Aug 18, 2020
3c5eaf2
[ML] Transform stats API integration test.
walterra Aug 18, 2020
9f3643a
[ML] Transform preview API integration test.
walterra Aug 18, 2020
ed353b0
[ML] Transform update API integration test.
walterra Aug 19, 2020
9a657b1
[ML] Fix flakyness.
walterra Aug 19, 2020
9de6d56
[ML] WIP: API schemas and API integration tests for starting transforms.
walterra Aug 20, 2020
53240e8
[ML] Delete tmp utility file.
walterra Aug 20, 2020
a2014c0
[Ml] Fix to import types only of schema based definitions and not bre…
walterra Aug 20, 2020
ddb8a0a
[ML] Fix types and tests imports.
walterra Aug 20, 2020
251787a
[ML] Fix imports.
walterra Aug 21, 2020
130d389
[ML] Fix delete transforms endpoint.
walterra Aug 21, 2020
c980a1a
[ML] Fix start transforms API tests.
walterra Aug 21, 2020
41b9e46
[ML] Stabilize tests. Adds stop API integration tests.
walterra Aug 21, 2020
d5c9732
[ML] Type related fixes.
walterra Aug 21, 2020
367ae78
[ML] Stabilize tests.
walterra Aug 22, 2020
b79763a
[ML] Stabilize tests.
walterra Aug 24, 2020
fb95487
[ML] Improve types for transforms API endpoint.
walterra Aug 26, 2020
1a1f7e7
[ML] Improve types for transforms stats API endpoint.
walterra Aug 26, 2020
da88f4f
[ML] More API schemas.
walterra Aug 27, 2020
5770291
[ML] Fix source index name.
walterra Aug 27, 2020
572ff97
[ML] Fix imports.
walterra Aug 27, 2020
e907bf8
[ML] Fix import to avoid breaking the optimizer.
walterra Aug 27, 2020
15850c2
[ML] API schema for update transform endpoint.
walterra Aug 31, 2020
df55fa5
[ML] API schema for audit messages transform endpoint.
walterra Aug 31, 2020
2c3223d
[ML] Add API docs.
walterra Aug 31, 2020
6398c95
[ML] Fix apidoc config.
walterra Aug 31, 2020
e6ccf1d
[ML] Fix TS projects.
walterra Aug 31, 2020
794d2d0
[ML] Revert script changes.
walterra Aug 31, 2020
15649c1
[ML] Extend time to wait for updated message.
walterra Sep 1, 2020
f3fda76
[ML] Make e2e transform ids more unique.
walterra Sep 1, 2020
082527a
[ML] Delete all transform notification indices as part of cleanup.
walterra Sep 1, 2020
0776ed3
Merge branch 'master' into ml-transforms-api-tests
walterra Sep 7, 2020
7fbd278
[ML] Infer type for IndexPatternTitleSchema.
walterra Sep 7, 2020
a35ea1e
[ML] Simplify mock.
walterra Sep 7, 2020
cfe297f
[ML] Improve types for guardApiRoute.
walterra Sep 7, 2020
8b22029
[ML] Refactor transform client API.
walterra Sep 8, 2020
c7e7144
Merge branch 'master' into ml-transforms-api-tests
walterra Sep 9, 2020
5cfce0b
Merge branch 'master' into ml-transforms-api-tests
walterra Sep 9, 2020
894b1f8
[ML] Fix type guards.
walterra Sep 9, 2020
e434c4f
[ML] Use TRANSFORM_STATE instead of raw strings.
walterra Sep 10, 2020
7725de8
Merge branch 'master' into ml-transforms-api-tests
walterra Sep 10, 2020
7329dea
[ML] Fix types.
walterra Sep 10, 2020
b63d86d
[ML] Extend stats assertions.
walterra Sep 10, 2020
c47f2b0
[ML] Fix error toasts.
walterra Sep 10, 2020
28ad1f2
[ML] Extend transforms assertions.
walterra Sep 10, 2020
2320fbc
[ML] Text tweak.
walterra Sep 10, 2020
efcf9b3
[ML] Extend stop transforms assertions.
walterra Sep 10, 2020
c6f388f
[ML] Extend transforms assertions.
walterra Sep 10, 2020
cd3703a
[ML] Better transforms ids.
walterra Sep 10, 2020
221c920
[ML] Add comment to clarify destructuring.
walterra Sep 10, 2020
00bdc3b
Merge branch 'master' into ml-transforms-api-tests
walterra Sep 14, 2020
67b32a8
Merge branch 'master' into ml-transforms-api-tests
walterra Sep 14, 2020
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
[ML] Delete all transform notification indices as part of cleanup.
walterra committed Sep 1, 2020
commit 082527ac3f8944165dca555aeef3ef0d8ba869bb
6 changes: 6 additions & 0 deletions x-pack/test/functional/services/transform/api.ts
Original file line number Diff line number Diff line change
@@ -83,6 +83,8 @@ export function TransformAPIProvider({ getService }: FtrProviderContext) {
},

async cleanTransformIndices() {
// Delete all transforms using the API since we mustn't just delete
// all `.transform-*` indices since this might result in orphaned ES tasks.
const {
body: { transforms },
} = await esSupertest.get(`/_transform/`).expect(200);
@@ -97,6 +99,10 @@ export function TransformAPIProvider({ getService }: FtrProviderContext) {
await esSupertest.delete(`/_transform/${transformId}`).expect(200);
await this.waitForTransformNotToExist(transformId);
});

// Delete all transform related notifications to clear messages tabs
// in the transforms list expanded rows.
await this.deleteIndices('.transform-notifications-*');
},

async getTransformStats(transformId: string): Promise<TransformStats> {