Skip to content

Add Support for Deprecated REST Handler #17687

@pickypg

Description

@pickypg

As we change our REST Endpoints, particularly with simple examples like going from _optimize to _forcemerge, we should use the deprecation logger to announce the deprecation to the user.

Hopefully it's as simple as adding something along the lines of

controller.registerDeprecatedHandler(POST, "/_optimize", this);
controller.registerDeprecatedHandler(POST, "/{index}/_optimize", this);

I'm interested to hear what people might want to see as part of the deprecation notice though. I wouldn't want to make it too fancy, but it might be nice to say something along the lines of "see _forcemerge".

What do you think @clintongormley?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions