Skip to content

Conversation

@baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Aug 17, 2022

https://jira.mongodb.org/browse/DRIVERS-2344

POC PR in Node: mongodb/node-mongodb-native#3365

A new field, disambiguatedPaths has been added to change stream update documents for servers >=6.1 where showExpandedEvents is enabled.

This feature is only supported in server 6.1 and above, so testing these changes will require running against the latest server build.


  • Bump spec version and last modified date.
  • Update changelog.
  • Make sure there are generated JSON files from the YAML test files.
  • Test changes in at least one language driver.
  • Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless).

@baileympearson baileympearson marked this pull request as ready for review August 17, 2022 17:32
@baileympearson baileympearson requested a review from a team as a code owner August 17, 2022 17:32
@baileympearson baileympearson requested review from benjirewis and removed request for a team August 17, 2022 17:32
@durran
Copy link
Member

durran commented Aug 17, 2022

Copy link
Member

@durran durran left a comment

Choose a reason for hiding this comment

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

Just noting from my conversation with @baileympearson . I thought it might be nice to add a test where the document in the db would have a key similar to "a.b" in it but we felt it was testing more server correctness than driver correctness and thus not needed.

LGTM

Copy link
Contributor

@abr-egn abr-egn left a comment

Choose a reason for hiding this comment

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

LGTM! Passes in the Rust driver.

Copy link
Contributor

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

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

Excellent description of the feature in the spec, thanks 🧑‍🔧 . I agree that testing a.b seems redundant to the point of only testing server correctness, @durran.


runOnRequirements:
- minServerVersion: "6.1.0"
topologies: [ replicaset, sharded-replicaset, load-balanced ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these new tests pass on sharded clusters + serverless? I would hope so, but we've had issues in the past with change streams tests on those topologies.

Copy link
Contributor Author

@baileympearson baileympearson Aug 18, 2022

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

They don't run on serverless

The spec says:

Unified spec tests from all specifications MUST be run against Atlas Serverless.

Thanks for adding sharded; it's sort of a strange topology, but might as well add.

- fix double space typos
- lower schema veresion to 1.3 instead of 1.9
- add `sharded` to list of supported topoligies
- remove ? in type definition in favor of the `Optional` keyword
Copy link
Contributor Author

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

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

responding to comments

Copy link
Contributor

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

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

Great work!

- name: insertOne
object: *collection0
arguments:
document: { _id: 1, 'a': { '1': 1 } }
Copy link
Contributor

Choose a reason for hiding this comment

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

[opt] You could use " to be consistent with the other spec tests.

@durran durran merged commit 046db44 into master Aug 19, 2022
@durran durran deleted the NODE-4484-updateDescription-field-enhancement branch August 19, 2022 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants