Commit e2baff3
authored
[data.search.aggs]: Create agg types function for terms agg. (#63541)
* Minor cleanup on AggConfigJson interface.
* Add types for terms agg params & mapping.
* Add terms agg expression function.
* Register agg functions with expressions service.
* Add unit tests for terms expression function.
* Update API docs.
* AggConfigJson -> AggConfigSerialized
* Add serialize(), enforce serializable params, fix subexpressions in terms agg fn.
* Simplify getAggTypesFunctions
* it() -> test()
* Add help text.
* Ensure serialize() is used by agg param type.
* Add toExpressionAst to AggConfig.
* Add json arg to terms agg fn.
* Update docs.
* Fix typo which caused functional test failures.
* Add AggParam.toExpressionAst so AggConfig.toExpressionAst can return function ast instead of expression ast.
* Clean up overlooked items.1 parent 95ac47d commit e2baff3
File tree
31 files changed
+810
-152
lines changed- docs/development/plugins/data/public
- src/plugins/data/public
- search
- aggs
- buckets
- metrics
- lib
- param_types
- test_helpers
- expressions/utils
31 files changed
+810
-152
lines changeddocs/development/plugins/data/public/kibana-plugin-plugins-data-public.aggconfigoptions.enabled.md
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
0 commit comments