-
Notifications
You must be signed in to change notification settings - Fork 245
DRIVERS-2549: add search index management helpers #1423
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
@@ -5,11 +5,7 @@ exitCode=0 | |||
|
|||
# $1 - takes a single argument of the path to the JSON file containing a schemaVersion key at the top level. |
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.
happy to revert these changes. the changes here and in the workflow file make validating UTR schemas as simple as npm i -g ys-yaml ajv-cli && bash .github/workflows/check_schema_version.sh
. Before, js-yaml
needed to be installed as an npm library and ajv-cli as a runnable npm package.
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.
Just last 2 open comments.
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.
Just leaving some drive-by feedback, which you can do with as you wish.
@@ -0,0 +1,62 @@ | |||
description: "createSearchIndex convenience helper" | |||
schemaVersion: "1.10" |
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.
What about these test files require 1.10? That was when the thread
entity was introduced (see: changelog).
Per schemaVersion:
Test files SHOULD be conservative when specifying a schema version. For example, if the latest schema version is 1.1 but the test file complies with schema version 1.0, the test file should specify 1.0.
This plays nicely with CI, which uses the test file's schemaVersion
field for validation.
Apply changes from review to RST files. Co-authored-by: Jeremy Mikola <[email protected]> Co-authored-by: Kevin Albertson <[email protected]>
Co-authored-by: Jeremy Mikola <[email protected]> Co-authored-by: Kevin Albertson <[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.
LGTM with one suggested rename. Tests pass in C driver.
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.
Suggest renaming file to dropSearchIndex.yml
to match operation name.
This PR adds a new search management API to the index management spec.
Node POC: mongodb/node-mongodb-native#3672
E2E testing of the new helpers against atlas will be implemented in DRIVERS-2630.
Please complete the following before merging: