Skip to content

Conversation

@dakrone
Copy link
Member

@dakrone dakrone commented Feb 1, 2018

This commit switches all the modules and server test code to use the
non-deprecated ParseField.match method, passing in the parser's deprecation
handler or the logging deprecation handler when a parser is not available (like
in tests).

Relates to #28449

This commit switches all the modules and server test code to use the
non-deprecated `ParseField.match` method, passing in the parser's deprecation
handler or the logging deprecation handler when a parser is not available (like
in tests).

Relates to elastic#28449
@dakrone
Copy link
Member Author

dakrone commented Feb 1, 2018

This one replaces #28487

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

LGTM

module.getNamedXContents().stream()
.filter(entry -> entry.categoryClass.equals(BaseAggregationBuilder.class) && entry.name.match("test"))
.filter(entry -> entry.categoryClass.equals(BaseAggregationBuilder.class) &&
entry.name.match("test", LoggingDeprecationHandler.INSTANCE))
Copy link
Member

Choose a reason for hiding this comment

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

These might be better if they just fail rather than go to the DepercationLogger. This is fine though.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think for now this works and maybe once everything is cut over, we can make the single arity one use the unsupported operation exception version, either way, we can change this pretty easily later.

@dakrone dakrone merged commit 3ddea8d into elastic:master Feb 2, 2018
dakrone added a commit that referenced this pull request Feb 2, 2018
This commit switches all the modules and server test code to use the
non-deprecated `ParseField.match` method, passing in the parser's deprecation
handler or the logging deprecation handler when a parser is not available (like
in tests).

Relates to #28449
@dakrone dakrone deleted the xcontent-non-deprecated branch April 19, 2018 14:46
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