Skip to content

Conversation

@not-napoleon
Copy link
Member

Backports the following commits to 7.x:

…nterface (elastic#48320)

This is a pure code rearrangement refactor.  Logic for what specific ValuesSource instance to use for a given type (e.g. script or field) moved out of ValuesSourceConfig and into CoreValuesSourceType (previously just ValueSourceType; we extract an interface for future extensibility).  ValueSourceConfig still selects which case to use, and then the ValuesSourceType instance knows how to construct the ValuesSource for that case.
 Conflicts:
	server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java
	server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregationBuilder.java
	x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/cumulativecardinality/CumulativeCardinalityAggregatorTests.java
@not-napoleon
Copy link
Member Author

@elasticmachine run elasticsearch-ci/2

@not-napoleon not-napoleon merged commit 17358b5 into elastic:7.x Nov 19, 2019
@not-napoleon not-napoleon deleted the backport/7.x/pr-48320 branch November 19, 2019 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant