-
Notifications
You must be signed in to change notification settings - Fork 61
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
adding specs for SQL namespace #379
Conversation
Changes AnalysisCommit SHA: 1573d8b API ChangesSummary
ReportThe full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/10097617017/artifacts/1740354812 API Coverage
|
Awesome! Please write some tests for it? See https://github.com/opensearch-project/opensearch-api-specification/blob/main/SPECIFICATION_TESTING.md and https://github.com/opensearch-project/opensearch-api-specification/tree/main/tests. |
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
This reverts commit e6958b363dd00b5702dba4159985b935d7360e62. Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Hello! Yes, i'll add test a bit later. I'm just getting used to OpenAPI. |
Signed-off-by: Niyazbek Torekeldi <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Want to get this to a mergeable state? It doesn't have to be full coverage of the SQL plugin, can start with just the basics and make more PRs afterwards! |
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
Created an issue: #449 |
Probably i found misstake |
Signed-off-by: Tokesh <[email protected]>
Spec Test Coverage Analysis
|
…ng comment and temporary ci setting Signed-off-by: Tokesh <[email protected]>
Signed-off-by: Tokesh <[email protected]>
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.
This is great! Thank you!
Cant merged. Blocked by #379 (review) @dblock |
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.
Couple more. I think we should stay disciplined about prologue, sorry to be a hassle.
Also see if you can exercise the parameters like sanitize
that aren't.
@@ -35,6 +35,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||
- Added AjvErrorsParser to print more informative error messages ([#364](https://github.com/opensearch-project/opensearch-api-specification/issues/364)) | |||
- Added JsonSchemaValidator, a wrapper for AJV ([#364](https://github.com/opensearch-project/opensearch-api-specification/issues/364)) | |||
- Added support for `application/cbor` responses ([#371](https://github.com/opensearch-project/opensearch-api-specification/pull/371)) | |||
- Added tests for SQL namespace ([#379](https://github.com/opensearch-project/opensearch-api-specification/pull/379)) |
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.
Actually the add is the spec.
Let's say "Added /_plugins/_sql
, close
and stats
"?
@@ -0,0 +1,53 @@ | |||
$schema: ../../json_schemas/test_story.schema.yaml | |||
|
|||
description: Test to explicitly clear the cursor context |
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.
Add a period at the end.
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.
Time for another lint!
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.
We have #403, I'll add a note on tests.
tests/sql/close.yaml
Outdated
parameters: | ||
index: books | ||
response: | ||
status: 200 |
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.
The above should be moved to a prologue because they aren't exercising the SQL API namespace.
It did raise that bug of reporting errors, so thank you! Fix in #450. |
Signed-off-by: Niyazbek Torekeldi <[email protected]>
Merged this! @Tokesh if you want to remove the changelog line that says "Added tests for ... SQL" (I don't think it's helpful), add some tests for |
Description
adding sql query specification
Issues Resolved
[#235]
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.