-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Remove deprecated Graph endpoints #35956
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 deprecated Graph endpoints #35956
Conversation
We had some endpoints in Graph that are deprecated for removal in 7.0.0. This commit removes these deprecated endpoints.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
LGTM |
We had some endpoints in Graph that are deprecated for removal in 7.0.0. This commit removes these deprecated endpoints.