-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[lens] Show field details on click #44697
Merged
Merged
Changes from 175 commits
Commits
Show all changes
200 commits
Select commit
Hold shift + click to select a range
1c3bfaa
[lens] Initial Commit (#35627)
11a9173
[lens] Initial state for IndexPatternDatasource (#36052)
wylieconlon 38ce5a4
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon c7e0704
[lens] Editor frame initializes datasources and visualizations (#36060)
wylieconlon abc6f04
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 0dfd683
[lens][draft] Lens/drag drop (#36268)
chrisdavies dd51978
remove local package (#36456)
flash1293 3329f33
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 ddb68e2
[lens] Native renderer (#36165)
flash1293 87c1d81
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 2961d76
[Lens] No explicit any (#36515)
flash1293 83b864c
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 4581a2f
[Lens] Implement basic editor frame state handling (#36443)
flash1293 7837bd5
[lens] Load index patterns and render in data panel (#36463)
wylieconlon 77bee20
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 63d59da
[draft] Lens/line chart renderer (#36827)
chrisdavies 37202a5
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 3902b92
[lens] Index pattern data panel (initial) (#37015)
76556f3
[Lens] Editor state 2 (#36513)
flash1293 f88ee1e
[lens] Dimension panel that generates columns (#37117)
35a28e9
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon c3df4c2
[lens] Generate esdocs queries from index pattern (#37361)
de5bb7f
Merge branch 'origin/master' into feature/lens
wylieconlon f179ee6
Update yarn.lock from yarn kbn bootstrap
wylieconlon 51996f9
Merge branch 'master' into feature/lens
flash1293 d362819
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 6575000
[Lens] Add basic Lens xy chart suggestions (#37030)
chrisdavies f67a1ba
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 9d5b3ea
[Lens] Expression rendering (#37648)
flash1293 bca7b17
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 98a3e69
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 b5ffb12
[Lens] Expression handling (#37876)
flash1293 bbf80f2
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 717eaff
[Lens] Lens/xy config panel (#37391)
chrisdavies 21b9431
[Lens] Xy expression building (#37967)
flash1293 b594b6c
[Lens] Initialize visualization with datasource api (#38142)
flash1293 8f231d2
[lens] Dimension panel lets users select operations and fields indivi…
f67878e
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 142cb9d
[Lens] Rename columns (#38278)
flash1293 307cb12
[Lens] Lens/index pattern drag drop (#37711)
chrisdavies c83651c
[lens] Only allow aggregated dimensions (#38820)
f73057c
[lens] Suggest on drop (#38848)
1bba073
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 acad4e7
fix merge
flash1293 f780d02
[Lens] Parameter configurations and new dimension config flow (#38863)
flash1293 4ce7fe6
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 1f4d7ae
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 8bf1626
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 4c69044
fix eslint failure
flash1293 abed39a
[lens] Fix build by updating saved objects and i18n (#39391)
2a1eea8
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 8e1fdbf
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 85d4543
[lens] Fix arguments to esaggs using booleans (#39462)
02a3698
[lens] Datatable visualization plugin (#39390)
cbcabf1
[lens] Use first suggestion when switching visualizations (#39377)
6cb569f
[lens] Label each Y axis with its operation label (#39461)
306d384
[Lens] Suggestion preview rendering (#39576)
flash1293 2297f95
[Lens] Popover configs (#39565)
flash1293 95d7735
[Lens] Basic layouting (#39587)
flash1293 d857227
remove datasource public API in suggestions (#39772)
flash1293 1dd57f6
[Lens] Basic save / load (#39257)
chrisdavies 54ae4c2
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon b7bd0cd
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 1130e56
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 6bf5018
[lens] Fix lint error
wylieconlon aefc18b
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 8b4807b
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon d2b8d91
[lens] Use node scripts/eslint.js --fix to fix errors
wylieconlon 9c754fe
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon e2dc494
[lens] Include link to lens from Visualize (#40542)
65ab82d
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon cbccad6
[lens] Support stacking in xy visualization (#40546)
b0a2325
[Lens] Add xy split series support (#39726)
chrisdavies 5c6f552
[lens] Lens Filter Ratio (#40196)
4e361a6
[Lens] Terms order direction (#39884)
flash1293 97f6818
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 d0ae61c
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 dd49f8a
fix types
flash1293 9202916
[Lens] Data panel styling and optimizations (#40787)
chrisdavies 292aa40
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 9581e4e
[Lens] Optimize dimension panel flow (#41114)
flash1293 7933175
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 e5b7cad
[Lens] re-introduce no-explicit-any (#41454)
flash1293 e071976
[Lens] No results marker (#41450)
flash1293 1a0d705
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 7db032c
[lens] Support layers for visualizing results of multiple queries (#4…
0143fcd
[Lens] Embeddable (#41361)
flash1293 a68aacf
[lens] Move XY chart config into popover and fix layering (#41927)
e60f6c7
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 3bbac9a
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 112c5b0
[Lens] Fix bugs in date_histogram and filter ratio (#42046)
flash1293 9ff1638
[Lens] Performance improvements (#41784)
flash1293 8f76203
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 2d9fbb3
fix type error
flash1293 4a1c899
switch default size of terms operation to 3 (#42334)
flash1293 8b1105d
[lens] Improve suggestions for split series (#42052)
flash1293 78ea487
[lens] Add chart switcher (#42093)
chrisdavies d73a483
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon b00f3df
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 b10ddc8
solve merge conflicts
flash1293 c94e3fe
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 9941757
fix test case
flash1293 ce1f652
[Lens] Allow only current visualization on field drop in workspace (#…
flash1293 79ceaa1
[Lens] Remove indexpattern id on column (#42429)
flash1293 b8eba00
[lens] Implement app-level filtering and time picker (#42031)
23d453f
[Lens] Add some tests around document handling in dimension panel (#4…
flash1293 13ea53e
[Lens] Terms operation boolean support (#42817)
flash1293 36cd955
[lens] Minor UX/UI improvements in Lens (#42852)
2e22935
Add missing translations (#42921)
2282946
[Lens] Config panel design (#42980)
cchaos 629f63a
Remove a couple of non-null assertions (#43013)
5492e13
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 7c9db79
[Lens] Switch indexpattern manually (#42599)
flash1293 27be022
[Lens] Update frame to put suggestions at the bottom (#42997)
cchaos f961fc9
fix type errors
flash1293 c808106
switch indexpattern on layer if there is only a single empty one (#43…
flash1293 65ea9e3
[Lens] Suggest reduced versions of current data table (#42537)
flash1293 43a9bf1
[Lens] Field formatter support (#38874)
flash1293 bf18d72
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 398a3de
Fix bugs
flash1293 e9f5807
[Lens] Add bucket nesting editor to indexpattern (#42869)
chrisdavies 4b09eba
[Lens] Remove unnecessary fields and indexing from mappings (#43285)
chrisdavies 1bc7e10
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 8f35c2b
[Lens] Xy scale type (#42142)
flash1293 54d9d41
[lens] Allow updater function to be used for updating state (#43373)
2401b4f
[Lens] Lens metric visualization (#39364)
chrisdavies ea662ec
Fix axis rotation (#43792)
db9bce7
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 c7fae6c
[Lens] Auto date histogram (#43775)
6fa6715
[Lens] Fix query bar integration (#43865)
flash1293 9775b02
Merge branch 'master' of github.com:elastic/kibana into feature/lens
chrisdavies 8e81b5b
[Lens] Clean up operations code (#43784)
flash1293 1bb0910
[Lens] Functional tests (#44279)
chrisdavies 65008c9
[Lens] Add Lens visualizations to Visualize list (#43398)
chrisdavies 3948678
[Lens] Suggestion improvements (#43688)
flash1293 89d8fa3
[lens] Calculate existence of fields in datasource
wylieconlon 45fce8b
[lens] Show field details on click
wylieconlon 426d9d7
[lens] Calculate existence of fields in datasource (#44422)
4b3a39f
Merge remote-tracking branch 'origin/feature/lens' into lens/field-po…
wylieconlon fd53303
Add basic API test and make trigger into draggable
wylieconlon b443d3e
[Lens ] Preview metric (#43755)
flash1293 57d9380
format filter ratio as percentage (#44625)
flash1293 32ddc97
[Lens] Remove datasource suggestion id (#44495)
flash1293 a4e53b8
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon c250c7d
[Lens] Make breadcrumbs look and feel like Visualize (#44258)
chrisdavies 68e0515
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon de22a9a
Improve click target for popover
wylieconlon 9f36baf
[lens] Fix breakage from app-arch movements (#44720)
wylieconlon 894e76f
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon c40938e
[lens] Fix type error in test from merge
wylieconlon f091765
Merge branch origin/feature/lens
wylieconlon 19510ba
[lens] Fix registration of embeddable (#45171)
e59b4f1
Upgrade EUI and fix typescript breakages
wylieconlon 973d32a
Undo EUI changes
wylieconlon 1abef4b
[Lens] Functional tests (#44814)
chrisdavies fefef24
Merge remote-tracking branch 'origin/feature/lens' into lens/field-po…
wylieconlon 2727c48
Fix snapshots
wylieconlon ad61702
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon c80e4a8
Merge remote-tracking branch 'origin/feature/lens' into lens/field-po…
wylieconlon 46b20df
Fix issues with types and tests
wylieconlon 6e50302
Add back accidentally committed code
wylieconlon 3d1e668
[lens] Add Lens to CODEOWNERS (#45296)
196db44
Change popover styles and simplify types on server
wylieconlon 6067f7d
Merge remote-tracking branch 'upstream/master' into feature/lens
flash1293 4e76620
[lens] Fix visualization alias registration
wylieconlon 44dcc7e
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 662ff18
Merge remote-tracking branch 'origin/feature/lens' into lens/field-po…
wylieconlon 234ffb6
[lens] Fix usage of EUI after typescript upgrade (#45404)
5494fe0
Merge remote-tracking branch 'origin/feature/lens' into lens/field-po…
wylieconlon 53deec3
Process results more
wylieconlon 910640a
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 5aad545
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon e62c8dd
Fix API errors
wylieconlon de51eb5
Fix API tests and use sampleCount
wylieconlon d41475f
Simplify document count calculation
wylieconlon 2bad5fe
[lens] Fix usage of expressions plugin (#45544)
d4987b8
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 0e20494
Fix API test
wylieconlon 69cfd96
Fix type errors and pass through new platform from top
wylieconlon 018f628
[lens] More cleanup from QueryBar changes in master (#45687)
9c90541
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon cdb5958
Merge remote-tracking branch 'origin/feature/lens' into lens/field-po…
wylieconlon acba712
Fix tests
wylieconlon cae84d1
Fix i18n issue
wylieconlon c5009c4
Merge remote-tracking branch 'origin/master' into feature/lens
wylieconlon 1dee1b4
[lens] Fix build and use new platform from entry points (#45834)
42a2f8f
Merge remote-tracking branch 'origin/feature/lens' into lens/field-po…
wylieconlon df20bcc
Merge branch 'master' into feature/lens
elasticmachine 24c5bf5
Fix tests and add boolean/empty field support
wylieconlon 5a6e63e
Merge remote-tracking branch 'origin/feature/lens' into lens/field-po…
wylieconlon cf56281
Merge remote-tracking branch 'origin/master' into lens/field-popover
wylieconlon 47f5f9f
Updated top values
6b018a4
Fixed up overall layout including adding a popover header
718d569
Fix up time display
90664c4
Merge pull request #6 from cchaos/lens/field-popover/design
b6d092e
Improve popover edge cases and respond to feedback
wylieconlon 043efe5
Fix field formatters for histogram
wylieconlon a349297
Merge branch 'master' into lens/field-popover
elasticmachine 107ea3a
Merge remote-tracking branch 'origin/master' into lens/field-popover
wylieconlon caf90b0
Use custom style for empty top values
wylieconlon 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
Validating CODEOWNERS rules …
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
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
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
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
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
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 |
---|---|---|
|
@@ -18,3 +18,4 @@ | |
*/ | ||
|
||
export * from './expressions'; | ||
export * from './query'; |
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,20 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
export * from './types'; |
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
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 |
---|---|---|
|
@@ -28,7 +28,9 @@ declare module 'elasticsearch' { | |
| 'extended_stats' | ||
| 'filter' | ||
| 'filters' | ||
| 'cardinality'; | ||
| 'cardinality' | ||
| 'sampler' | ||
| 'value_count'; | ||
|
||
type AggOptions = AggregationOptionMap & { | ||
[key: string]: any; | ||
|
@@ -71,6 +73,12 @@ declare module 'elasticsearch' { | |
>; | ||
}; | ||
|
||
type SamplerAggregation<SubAggregationMap> = SubAggregation< | ||
SubAggregationMap | ||
> & { | ||
doc_count: number; | ||
}; | ||
|
||
interface AggregatedValue { | ||
value: number | null; | ||
} | ||
|
@@ -82,7 +90,9 @@ declare module 'elasticsearch' { | |
max: AggregatedValue; | ||
min: AggregatedValue; | ||
sum: AggregatedValue; | ||
terms: BucketAggregation<AggregationOption[AggregationName]>; | ||
value_count: AggregatedValue; | ||
// Elasticsearch might return terms with numbers, but this is a more limited type | ||
terms: BucketAggregation<AggregationOption[AggregationName], string>; | ||
date_histogram: BucketAggregation< | ||
AggregationOption[AggregationName], | ||
number | ||
|
@@ -128,6 +138,7 @@ declare module 'elasticsearch' { | |
cardinality: { | ||
value: number; | ||
}; | ||
sampler: SamplerAggregation<AggregationOption[AggregationName]>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chrisdavies This is where it's used- I think the alias is helpful here |
||
}[AggregationType & keyof AggregationOption[AggregationName]]; | ||
} | ||
>; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export interface BucketedAggregation<KeyType = string> { | ||
buckets: Array<{ | ||
key: KeyType; | ||
count: number; | ||
}>; | ||
} | ||
|
||
export interface NumberStatsResult { | ||
count: number; | ||
histogram: BucketedAggregation<number>; | ||
topValues: BucketedAggregation<number>; | ||
} | ||
|
||
export interface TopValuesResult { | ||
count: number; | ||
topValues: BucketedAggregation<string>; | ||
} | ||
|
||
export interface FieldStatsResponse<KeyType = unknown> { | ||
// Total count of documents | ||
totalDocuments?: number; | ||
// If sampled, the exact number of matching documents | ||
sampledDocuments?: number; | ||
// If sampled, the exact number of values sampled. Can be higher than documents | ||
// because Elasticsearch supports arrays for all fields | ||
sampledValues?: number; | ||
// Histogram and values are based on distinct values, not based on documents | ||
histogram?: BucketedAggregation<KeyType>; | ||
topValues?: BucketedAggregation<KeyType>; | ||
} |
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,14 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export const PLUGIN_ID = 'lens'; | ||
|
||
export const BASE_APP_URL = '/app/lens'; | ||
export const BASE_API_URL = '/api/lens'; | ||
|
||
export function getEditPath(id: string) { | ||
return `${BASE_APP_URL}#/edit/${encodeURIComponent(id)}`; | ||
} |
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. | ||
*/ | ||
|
||
export * from './api'; | ||
export * from './constants'; |
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.
I'm a bit confused by this type signature. Should it just be:
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.
It's equivalent to
type SamplerAggregation<T> = SubAggregation<T>;
- the extra name is not necessary but makes this line easier later, instead of{ sampler: SubAggregation<AggregationOption[AggregationName]>; }
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.
TIL
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.
These types are a bit raw, it was our first attempt of getting aggregation inference. I'm actually super impressed that you've managed to make it work 😅
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.
They're raw but useful- I'm in favor of moving them into a shared place in Kibana because they're already available throughout x-pack