-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Kibana API endpoint for histogram chart data #70976
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1743e9e
[ML] Introduce ML API server side histograms endpoint.
walterra b66de70
[ML] Use histogram endpoint for analytics results pages.
walterra e079df8
[ML] Use histogram endpoint for analytics wizard.
walterra 8296524
[ML] Fix DataLoader dependencies and constructor. Use API endpoint fo…
walterra b939a87
[ML] Sampler support. Reintroduce KBN_FIELD_TYPES.
walterra 5daa854
[ML] Sample info tooltip.
walterra 3f45214
[ML] Added jest and API integration tests.
walterra ea91900
[ML] Fix TS.
walterra 4371a65
Merge branch 'master' into ml-api-histograms
walterra 0984587
Merge branch 'master' into ml-api-histograms
walterra 84203df
[ML] Use setDependencyCache to initialize http when using DataLoader …
walterra 45857f9
Merge branch 'master' into ml-api-histograms
elasticmachine a117e43
[ML] Histogram API endpoint for transforms.
walterra 02f1fc6
Merge branch 'master' into ml-api-histograms
walterra 1b16be3
Merge branch 'ml-api-histograms' of github.com:walterra/kibana into m…
walterra 7a0a599
Merge branch 'master' into ml-api-histograms
walterra 3306ff8
[ML] Fix API endpoint for transform.
walterra 8eedef2
[ML] e2e tests for outlier detection histogram charts.
walterra b794e97
[ML] schema comments.
walterra 3883477
[ML] Use useMemo() for DataLoader.
walterra 5b2ecdc
[ML] Fix API code structure.
walterra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,8 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
// Default sampler shard size used for field histograms | ||
export const DEFAULT_SAMPLER_SHARD_SIZE = 5000; |
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
18 changes: 18 additions & 0 deletions
18
x-pack/plugins/ml/public/application/components/data_grid/use_column_chart.test.ts
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,18 @@ | ||
/* | ||
* 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 { getFieldType } from './use_column_chart'; | ||
|
||
describe('getFieldType()', () => { | ||
it('should return the Kibana field type for a given EUI data grid schema', () => { | ||
expect(getFieldType('text')).toBe('string'); | ||
expect(getFieldType('datetime')).toBe('date'); | ||
expect(getFieldType('numeric')).toBe('number'); | ||
expect(getFieldType('boolean')).toBe('boolean'); | ||
expect(getFieldType('json')).toBe('object'); | ||
expect(getFieldType('non-aggregatable')).toBe(undefined); | ||
}); | ||
}); |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we use
FormattedMessage
in templates?