Skip to content

Conversation

jasontedor
Copy link
Member

We had some endpoints in Graph that are deprecated for removal in 7.0.0. This commit removes these deprecated endpoints.

We had some endpoints in Graph that are deprecated for removal in
7.0.0. This commit removes these deprecated endpoints.
@jasontedor jasontedor added >breaking :Search/Search Search-related issues that do not fall into other categories v7.0.0 labels Nov 27, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

*/
public class RestGraphAction extends XPackRestHandler {
private static final Logger logger = LogManager.getLogger(RestGraphAction.class);
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(logger);
Copy link
Member

Choose a reason for hiding this comment

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

❤️

Copy link
Member Author

Choose a reason for hiding this comment

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

It will have to temporarily come back in another pull request. 😞

controller.registerHandler(GET, "/{index}" + URI_BASE + "/graph/_explore", this);
controller.registerHandler(POST, "/{index}" + URI_BASE + "/graph/_explore", this);
controller.registerHandler(GET, "/{index}/{type}" + URI_BASE + "/graph/_explore", this);
controller.registerHandler(POST, "/{index}/{type}" + URI_BASE + "/graph/_explore", this);
Copy link
Contributor

Choose a reason for hiding this comment

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

Technically speaking the doc type in urls is being deprecated in 7.0. The general pattern we're adopting is it's not flagged as deprecated if you also pass an include_type_name=false along with the request.
I can pick this up as part of types removal work if you want to leave that out for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

@markharwood Yeah, I would rather leave the typeless work separate from this change; thanks for offering to pick that up. My aim here is only to remove the already deprecated endpoints. I am going to turn around in a follow-up and add new endpoints (/_graph/explore) and deprecate all endpoints that have /{index}/_xpack.

@markharwood
Copy link
Contributor

LGTM

@jasontedor jasontedor merged commit 78ac12d into elastic:master Nov 28, 2018
@jasontedor jasontedor deleted the remove-deprecated-graph-endpoints branch November 28, 2018 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Search/Search Search-related issues that do not fall into other categories v7.0.0-beta1
5 participants