Skip to content

CDRIVER-3895: Sync CRUD tests for dots/dollars #809

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 28, 2021

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Jun 25, 2021

https://jira.mongodb.org/browse/CDRIVER-3895

Synced with mongodb/specifications@fc21cb7 (see mongodb/specifications#1028 for more context).

Note: this also pulls in test changes relevant to aggregate let support (CDRIVER-4010)

@rcsanchez97: The previous PR for CDRIVER-3895 (#801) introduced aggregate-let.json and this PR pulls in the latest updates from mongodb/specifications@3a58fc6. Per @kevinAlbs' comment in CDRIVER-4010 there may be no other work required for that ticket (perhaps beyond documentation if applicable) if the spec tests currently pass.

Synced with mongodb/specifications@fc21cb7

Note: this also pulls in test changes relevant to aggregate let support (CDRIVER-4010)
@jmikola jmikola requested review from kevinAlbs and benjirewis June 25, 2021 21:48
@rcsanchez97
Copy link
Contributor

rcsanchez97 commented Jun 26, 2021 via email

@jmikola
Copy link
Member Author

jmikola commented Jun 26, 2021

Do you think the commit message for your change should mention CDRIVER-4010

@rcsanchez97: I do mention CDRIVER-4010 in the commit message, just not the first line. That's sufficient for the git bot to link it up with CDRIVER-4010 in JIRA. If there were actual code changes for CDRIVER-4010 required, I'd be inclined to mention it in the first line, but I think what we have now is fine considering it's just spec tests.

@rcsanchez97
Copy link
Contributor

rcsanchez97 commented Jun 26, 2021 via email

@kevinAlbs kevinAlbs removed the request for review from benjirewis June 28, 2021 18:16
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

LGTM

@jmikola jmikola merged commit 36189eb into mongodb:master Jun 28, 2021
@jmikola jmikola deleted the cdriver-3895 branch June 28, 2021 18:30
chardan pushed a commit to chardan/mongo-c-driver that referenced this pull request Aug 26, 2021
…odb#809)

* Fix CXX-2329; change type of thrown exception to match documentation.

Modify exceptions throw to use mongocxx::logic_error.

Adds std::error_code/std::errc plumbing, as mongocxx::exception
derives from std::system_exception, and mongocxx::logic_error
derives in turn from that.

See: https://jira.mongodb.org/browse/CXX-2329

Signed-off-by: Jesse Williamson <[email protected]>

* Updated thrown type to use mongocxx error codes.

We provide our own error codes, and there's precedent for using
k_invalid_argument.

Signed-off-by: Jesse Williamson <[email protected]>

* Added new mongocxx::error_code for failing to create a resource.

Signed-off-by: Jesse Williamson <[email protected]>

* Throw mongocxx::logic_error rather than std::logic_error.

Signed-off-by: Jesse Williamson <[email protected]>

* clang-format

Signed-off-by: Jesse Williamson <[email protected]>
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.

3 participants