Skip to content
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

Remove version conditionals from InternalAggregations #40193

Merged
merged 3 commits into from
Mar 19, 2019

Conversation

javanna
Copy link
Member

@javanna javanna commented Mar 19, 2019

Version conditionals are no longer needed once #40177 is back-ported all the way to 6.7.

We need to disable bwc tests until the #40177 is backported as it requires a change in the way we serialize InternalAggregations.

Version conditionals are no longer needed once elastic#40177 is back-ported all the way to 6.7.
@javanna javanna added :Analytics/Aggregations Aggregations v8.0.0 >test-mute Use for PR that only mute tests labels Mar 19, 2019
@javanna javanna requested a review from jimczi March 19, 2019 09:28
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}

@Override
@SuppressWarnings("unchecked")
public void writeTo(StreamOutput out) throws IOException {
out.writeNamedWriteableList((List<InternalAggregation>)aggregations);
//TODO update version after backport
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
out.writeNamedWriteableList(topLevelPipelineAggregators);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indentation ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grrr

@javanna javanna merged commit a85f893 into elastic:master Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations >test-mute Use for PR that only mute tests v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants