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

deprecrate size from cat.thread_pool in json spec #55984

Merged

Conversation

jakelandis
Copy link
Contributor

The rest spec and documentation for _cat/threadpool supports a "size" parameter.
However, the "size" parameter will have no impact since there are no values
of type "SizeValue" of the return value of this _cat api.

This commit deprecates this from JSON spec and will be removed in a followup.

Note - this only impacts the JSON spec since all cat APIs support the same set
of parameters, even if the specific call is not impacted by the param.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/CAT APIs)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Apr 29, 2020
Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

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

LGTM @jakelandis 👍

Should the time param be added to this PR too, based on #55736?

@jakelandis
Copy link
Contributor Author

Thanks @russcam - the time param is a fringe case, only applicable for one non-default column for that one cat API. I can push it back to 7.x in a different PR (that does not include the removal of size) if you think it is worth effort the effort for clients to implement in 7.x (I personally don't think it is, and only made change because it was touching that code and it was easy and more correct, I doubt anyone would notice or care about that change).

@jakelandis jakelandis merged commit e392ce9 into elastic:master Apr 30, 2020
@jakelandis jakelandis deleted the deprecrate_size_cat_threadpool branch April 30, 2020 16:36
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Apr 30, 2020
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request May 14, 2020
jakelandis added a commit that referenced this pull request May 26, 2020
Fixes for the REST specification specific to 7.x

* remove ignore "cat.thread_pool.json" and add the "" as valid option. #55984 deprecated this field since it these params here have no effect on this specific API
* remove ignore "indices.put_mapping.json" by adding the required / in the path to pass validation.
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request May 26, 2020
Fixes for the REST specification specific to 7.x

* remove ignore "cat.thread_pool.json" and add the "" as valid option. elastic#55984 deprecated this field since it these params here have no effect on this specific API
* remove ignore "indices.put_mapping.json" by adding the required / in the path to pass validation.
jakelandis added a commit that referenced this pull request May 26, 2020
)

The rest spec and documentation for _cat/threadpool supports a "size" parameter.
However, the "size" parameter will have no impact since there are no values
of type "SizeValue" of the return value of this _cat api.

This commit deprecates this from JSON spec and will be removed in a followup.

Note - this only impacts the JSON spec since all cat APIs support the same set
of parameters, even if the specific call is not impacted by the param.
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request May 26, 2020
Fixes for the REST specification specific to 7.x

* remove ignore "cat.thread_pool.json" and add the "" as valid option. elastic#55984 deprecated this field since it these params here have no effect on this specific API
* remove ignore "indices.put_mapping.json" by adding the required / in the path to pass validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants