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

Scripting: Cleanup todo in BucketSelectorPipelineAggregator #32134

Conversation

original-brownbear
Copy link
Member

  • Make all fields that are effectively final actually final
  • Exploit the fact that script is final to build the keepBucket logic at construction time to avoid redundant condition in the loop

just a random thing I found when working on #32068 ... the todo wasn't terribly actionable but I think this makes the situation a little nicer at least :)

* Make all fields that are effectively `final` actually `final`
* Exploit the fact that `script` is `final` to build the keepBucket logic at construction time to avoid redundant condition in the loop
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@original-brownbear
Copy link
Member Author

Jenkins test this

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear
Copy link
Member Author

@cbuescher thanks for the review! Unfortunately this was superseded by #32068

@original-brownbear original-brownbear deleted the cleanup-todo-bucketselectorpipelineaggregator branch August 6, 2018 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants