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 Sort enum from Painless Definition #26179

Merged
merged 3 commits into from
Aug 17, 2017
Merged

Conversation

jdconrad
Copy link
Contributor

As the title says. All of the information contained in the Sort enum was redundant and can be obtained from the existing data structures members in slightly different ways. This not only reduces the amount of code, but also is a major step in making Definition instanceable. This change looks large, but it's impossible to remove sort without also modifying the majority of the AnalyzerCaster file, so in reality it's a lot of lines with minor changes. @rjernst Please don't reject this outright!

contained in the Sort enum was redudant and can be obtained from
the existing data structures in other ways.
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@jdconrad jdconrad merged commit 2385878 into elastic:master Aug 17, 2017
jdconrad added a commit that referenced this pull request Aug 17, 2017
This is step toward making Definition instanceable which is necessary for custom whitelists in different contexts.
@jdconrad jdconrad deleted the sort branch October 30, 2017 16:44
@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed :Plugin Lang Painless labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >enhancement v6.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants