Skip to content

Populate endpoint deprecation from request definition #2640

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

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

flobernd
Copy link
Member

Populates the deprecation field for endpoints from the value of the corresponding request definition.

Currently, the deprecation info is only available on the request type, but not on the corresponding endpoint.

@flobernd flobernd requested a review from a team June 24, 2024 10:48
@flobernd flobernd force-pushed the endpoint-deprecation branch from 9700819 to 3b6f82b Compare June 24, 2024 10:49
Copy link
Member

@pquentin pquentin left a comment

Choose a reason for hiding this comment

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

This looks great, thanks.

@flobernd flobernd merged commit 8ec8972 into main Jun 24, 2024
8 checks passed
@flobernd flobernd deleted the endpoint-deprecation branch June 24, 2024 13:47
kderusso added a commit that referenced this pull request Jun 26, 2024
…n for text_expansion and weighted_tokens queries (#2642)

* Add sparse_vector query to client specification

* Fix error and update contrib

* PR feedback

* Populate endpoint deprecation from request definition (#2640)

* Update specification output

* Wrap ts-morph errors to provide helpful error (#2644)

* wrap ts-morph errors to provide helpful error

* improve after lint

* Bump braces from 3.0.2 to 3.0.3 in /typescript-generator (#2645)

Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [Query Rules] Update Query Rules API for 8.15 (#2639)

* Mark existing query rules APIs as GA

* Add individual CRUD API calls

* Linting

* PR feedback

* PR feedback

* Update specification output

* Update output

* Update output

* Fix variant annotations for SparseVectorQuery

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Florian Bernd <git@flobernd.de>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants