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

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Aug 17, 2020

Summary

Part of #63700.

  • Adds schema definitions to transform API endpoints and adds API integration tests.
  • The type definitions based on the schema definitions can be used on the client side too.
  • Adds apidoc documentation. (The scripts to create the docs will be added in a follow up pending a fix for apidocs on master)
  • As part of creating the schema definitions some code cleanup and consolidation was done (to make certain types available on both server and client side they had to be moved to common).

  • /api/transform/transforms
  • /api/transform/transforms/{transformId}
  • /api/transform/transforms/_stats
  • /api/transform/transforms/_preview
  • /api/transform/transforms/{transformId}/_update
  • /api/transform/start_transforms
  • /api/transform/stop_transforms

Checklist

For maintainers

@walterra walterra self-assigned this Aug 17, 2020
@walterra walterra added release_note:skip Skip the PR/issue when compiling release notes and removed backport:skip This commit does not require backporting labels Aug 19, 2020
@walterra walterra force-pushed the ml-transforms-api-tests branch from 7fe69ff to c53ae25 Compare August 20, 2020 15:39
@walterra walterra changed the title [ML] Transforms: API integration tests [ML] Transforms: API schemas integration tests Aug 20, 2020
@walterra walterra changed the title [ML] Transforms: API schemas integration tests [ML] Transforms: API schemas and integration tests Aug 20, 2020
@walterra
Copy link
Contributor Author

@elasticmachine merge upstream

@walterra walterra force-pushed the ml-transforms-api-tests branch 4 times, most recently from b006475 to 4b1ca22 Compare August 27, 2020 16:05
@walterra walterra force-pushed the ml-transforms-api-tests branch from 4b1ca22 to 07e0b8d Compare August 31, 2020 09:38
@kibanamachine
Copy link
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

History

  • 💔 Build #71225 failed 6353ef329d6a6e51f172357feb98b488a46b2566
  • 💔 Build #71202 failed 07e0b8d4e8cb4668dc49920b99a86524b87a6506
  • 💔 Build #70924 failed 4b1ca22b005ba3c6aa769af6ab836620f157cf6e
  • 💔 Build #70906 failed b00647513b2365553d1d7955fb8a9bf15ba92320
  • 💔 Build #70902 failed 50534e56c2a1326b8e984f247e74db1655ff25e9

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@walterra walterra force-pushed the ml-transforms-api-tests branch 2 times, most recently from 5af74bc to 87647ba Compare September 1, 2020 07:12
Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API integration tests LGTM 🎉

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
transform 460 +1 459

async chunks size

id value diff baseline
transform 768.7KB +9.1KB 759.6KB

page load bundle size

id value diff baseline
ml 844.6KB -244.0B 844.8KB
transform 25.5KB +230.0B 25.3KB
total -14.0B

distributable file count

id value diff baseline
default 45545 +20 45525

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@qn895
Copy link
Member

qn895 commented Sep 14, 2020

Changes LGTM 💯

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@walterra walterra merged commit dd18220 into elastic:master Sep 14, 2020
@walterra walterra deleted the ml-transforms-api-tests branch September 14, 2020 14:34
walterra added a commit to walterra/kibana that referenced this pull request Sep 14, 2020
- Adds schema definitions to transform API endpoints and adds API integration tests.
- The type definitions based on the schema definitions can be used on the client side too.
- Adds apidoc documentation.
gmmorris added a commit to gmmorris/kibana that referenced this pull request Sep 14, 2020
* master: (26 commits)
  updating datatable type (elastic#77320)
  [ML] Fix custom URLs processing for security app (elastic#76957)
  [telemetry] add schema guideline + schema_check new check for --path config (elastic#75747)
  [ML] Transforms: API schemas and integration tests (elastic#75164)
  [Mappings editor] Add support for wildcard field type (elastic#76574)
  [Ingest Manager] Fix flyout instruction selection (elastic#77071)
  [Telemetry Tools] update lodash to 4.17 (elastic#77317)
  [APM] Service inventory redesign (elastic#76744)
  Hide management sections based on cluster/index privileges (elastic#67791)
  [Snapshot Restore] Disable steps when form is invalid (elastic#76540)
  [Mappings editor] Add support for positive_score_impact to rank_feature (elastic#76824)
  Update apm.ts (elastic#77310)
  [OBS] Remove beta badge, change news feed size and add external icon to news feed link (elastic#77164)
  [Discover] Convert legacy sort to be compatible with multi sort (elastic#76986)
  [APM] API Snapshot Testing (elastic#77229)
  [ML] Functional tests - increase wait time for DFA start (elastic#77307)
  [UiActions][Drilldowns] Fix actions sorting in context menu (elastic#77162)
  [Drilldowns] Wire up new links to new docs (elastic#77154)
  Fix APM issue template
  [Ingest Pipelines] Drop into an empty tree (elastic#76885)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Sep 14, 2020
* master: (65 commits)
  [Security Solution][Resolver] Analyzed event styling (elastic#77115)
  filter invalid SOs from the searc hresults in Task Manager (elastic#76891)
  [RUM Dashboard] Visitors by region map (elastic#77135)
  [Security Solution][Endpoint][Admin] Task/endpoint list actions (elastic#76555)
  [Ingest pipelines] Forms for processors T-U (elastic#76710)
  updating datatable type (elastic#77320)
  [ML] Fix custom URLs processing for security app (elastic#76957)
  [telemetry] add schema guideline + schema_check new check for --path config (elastic#75747)
  [ML] Transforms: API schemas and integration tests (elastic#75164)
  [Mappings editor] Add support for wildcard field type (elastic#76574)
  [Ingest Manager] Fix flyout instruction selection (elastic#77071)
  [Telemetry Tools] update lodash to 4.17 (elastic#77317)
  [APM] Service inventory redesign (elastic#76744)
  Hide management sections based on cluster/index privileges (elastic#67791)
  [Snapshot Restore] Disable steps when form is invalid (elastic#76540)
  [Mappings editor] Add support for positive_score_impact to rank_feature (elastic#76824)
  Update apm.ts (elastic#77310)
  [OBS] Remove beta badge, change news feed size and add external icon to news feed link (elastic#77164)
  [Discover] Convert legacy sort to be compatible with multi sort (elastic#76986)
  [APM] API Snapshot Testing (elastic#77229)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Sep 14, 2020
* master: (65 commits)
  [Security Solution][Resolver] Analyzed event styling (elastic#77115)
  filter invalid SOs from the searc hresults in Task Manager (elastic#76891)
  [RUM Dashboard] Visitors by region map (elastic#77135)
  [Security Solution][Endpoint][Admin] Task/endpoint list actions (elastic#76555)
  [Ingest pipelines] Forms for processors T-U (elastic#76710)
  updating datatable type (elastic#77320)
  [ML] Fix custom URLs processing for security app (elastic#76957)
  [telemetry] add schema guideline + schema_check new check for --path config (elastic#75747)
  [ML] Transforms: API schemas and integration tests (elastic#75164)
  [Mappings editor] Add support for wildcard field type (elastic#76574)
  [Ingest Manager] Fix flyout instruction selection (elastic#77071)
  [Telemetry Tools] update lodash to 4.17 (elastic#77317)
  [APM] Service inventory redesign (elastic#76744)
  Hide management sections based on cluster/index privileges (elastic#67791)
  [Snapshot Restore] Disable steps when form is invalid (elastic#76540)
  [Mappings editor] Add support for positive_score_impact to rank_feature (elastic#76824)
  Update apm.ts (elastic#77310)
  [OBS] Remove beta badge, change news feed size and add external icon to news feed link (elastic#77164)
  [Discover] Convert legacy sort to be compatible with multi sort (elastic#76986)
  [APM] API Snapshot Testing (elastic#77229)
  ...
walterra added a commit that referenced this pull request Sep 15, 2020
- Adds schema definitions to transform API endpoints and adds API integration tests.
- The type definitions based on the schema definitions can be used on the client side too.
- Adds apidoc documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Transforms ML transforms :ml release_note:skip Skip the PR/issue when compiling release notes test-api-integration v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants