Skip to content

[7.x] [data.search.aggs]: Create agg types function for terms agg. (#63541)#64342

Merged
lukeelmers merged 1 commit intoelastic:7.xfrom
lukeelmers:backport/7.x/pr-63541
Apr 24, 2020
Merged

[7.x] [data.search.aggs]: Create agg types function for terms agg. (#63541)#64342
lukeelmers merged 1 commit intoelastic:7.xfrom
lukeelmers:backport/7.x/pr-63541

Conversation

@lukeelmers
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

…#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.
@lukeelmers lukeelmers added the backport This PR is a backport of another PR label Apr 23, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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

@lukeelmers lukeelmers merged commit 0f96249 into elastic:7.x Apr 24, 2020
@lukeelmers lukeelmers deleted the backport/7.x/pr-63541 branch April 24, 2020 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants