Skip to content

GODRIVER-2736 Deprecate currentOp/collStats commands #1280

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 8 commits into from
Jun 5, 2023

Conversation

prestonvasquez
Copy link
Member

@prestonvasquez prestonvasquez commented May 26, 2023

GODRIVER-2736

Summary

  • Rename references of "collStats"
  • Remove "collStats" runCommand documentation example

GODRIVER-2384 added

  • data/unified-test-format/valid-pass/initialCollectionData-collectionOptions.json
  • data/unified-test-format/valid-pass/initialCollectionData-collectionOptions.yml

These files do not have analogues in the unified-test-format/tests/valid-pass directory. Since 2384 syncs to the specifications PR #959, it appears that (given the 3rd point on the PR description) the proposed renaming of these files was dismissed. However, the Go Driver persisted the change. This PR reverts the names of the tests above to

  • testdata/unified-test-format/valid-pass/collectionData-createOptions.json
  • testdata/unified-test-format/valid-pass/collectionData-createOptions.yml

This PR also reverts the "collectionOptions" tags for "collectionData" to "createOptions," putting the struct inline with specifications: https://github.com/mongodb/specifications/blob/9e770b54bbb6315aa82a162c42c577a5b3f8037a/source/unified-test-format/unified-test-format.rst#collectiondata

Background & Motivation

collStats and currentOp will produce a deprecation message in 6.0 and are candidates for removal in another major release. Consumers of the API should switch to using an aggregation pipeline containing a single stage of the same name as the deprecated command.

@prestonvasquez prestonvasquez marked this pull request as ready for review June 1, 2023 21:49
Copy link
Contributor

@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 with minor suggestions.

@prestonvasquez prestonvasquez merged commit 5c12a39 into mongodb:master Jun 5, 2023
@prestonvasquez prestonvasquez deleted the GODRIVER-2736 branch June 5, 2023 22:59
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