-
Notifications
You must be signed in to change notification settings - Fork 102
[Query Rules] Update Query Rules API for 8.15 #2639
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
the spec is missing the Always criteria type, and if I got this correctly metadata here should be optional. |
QueryRulesetListItem probably has to be updated as well, server, current spec |
This comment was marked as outdated.
This comment was marked as outdated.
@l-trotta thanks for the review!
Thanks for the catch, fixed!
Updated! |
one last thing! in QueryRulesetListItem, |
(I sound like a broken record, but those would be easier to catch if we could collect the Query Rules YAML tests.) |
I know, I promise it's on my list to look into! |
Following you can find the validation results for the APIs you have changed.
You can validate these APIs yourself by using the |
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.
LGTM!
* Mark existing query rules APIs as GA * Add individual CRUD API calls * Linting * PR feedback * PR feedback
…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] <[email protected]> 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] <[email protected]> Co-authored-by: Florian Bernd <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Laurent Saint-Félix <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The following changes are going live in 8.15 for query rules:
rule_query
has been renamed torule
and support for multiple rulesets was added in Rename rule query and add support for multiple rulesets elasticsearch#108831