Skip to content

DOCSP-32154: collStats deprecation #431

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
Aug 29, 2023

Conversation

ccho-mongodb
Copy link
Contributor

@ccho-mongodb ccho-mongodb commented Aug 25, 2023

Pull Request Info

PR Reviewing Guidelines

JIRA - https://jira.mongodb.org/browse/DOCSP-32154
Staging - https://docs-mongodbcom-staging.corp.mongodb.com/java/docsworker-xlarge/DOCSP-32154-collstats/whats-new/#upcoming-breaking-changes

Self-Review Checklist

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Are all the links working?

@ccho-mongodb ccho-mongodb marked this pull request as ready for review August 28, 2023 13:57
Copy link
Contributor

@rustagir rustagir left a comment

Choose a reason for hiding this comment

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

lgtm + suggestions

@@ -32,6 +32,10 @@ Learn what's new in:
Upcoming Breaking Changes
-------------------------

- The ``getStats()`` and ``isCapped()`` instance methods of the
``DBCollection`` class are deprecated. The corresponding server commands are
deprecated in MongoDB v6.2 and later. To learn how to retrieve this
Copy link
Contributor

Choose a reason for hiding this comment

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

S: improve clarity

Suggested change
deprecated in MongoDB v6.2 and later. To learn how to retrieve this
deprecated in MongoDB Server version 6.2 and later. To learn how to retrieve this

Copy link
Contributor

Choose a reason for hiding this comment

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

same for the sentence in what's new

Copy link
Contributor Author

@ccho-mongodb ccho-mongodb Aug 28, 2023

Choose a reason for hiding this comment

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

Thanks for raising this. A couple years ago, our team discussed representing MongoDB server and versions in this format, but it hasn't been closely followed. This is currently consistent with the other Upcoming Breaking Changes item and most of the "What's New" entries in the Java docs, so I think it might be better to leave for now.

I purposely haven't commented on instances in which you've represented it as the suggested version since I don't think it's necessary or high value to propagate to all driver documentation, but rather to stay consistent within a docs set.

There is some existing style guide guidance on versions, which I think applies to Server docs. This specifically advises against using "version X.X". However, the entry does not seem to take into consideration the existence of any other product nor version naming used by drivers.

Comment on lines 74 to 75
:manual:`$collStats (aggregation) </reference/operator/aggregation/collStats/>`
Server documentation.
Copy link
Contributor

Choose a reason for hiding this comment

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

S; follow convention

Suggested change
:manual:`$collStats (aggregation) </reference/operator/aggregation/collStats/>`
Server documentation.
:manual:`$collStats (aggregation) </reference/operator/aggregation/collStats/>`
documentation in the Server manual.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know we had a discussion around capitalization, but didn't know that we had to refer to it as such rather than Server documentation. I'll change it to "$collStats Server manual entry" since "documentation in the ... manual" is redundant.

@ccho-mongodb ccho-mongodb requested review from a team and jyemin and removed request for a team August 28, 2023 17:18
@ccho-mongodb ccho-mongodb requested a review from jyemin August 28, 2023 21:24
Copy link
Collaborator

@jyemin jyemin left a comment

Choose a reason for hiding this comment

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

LGTM assuming the code is tested


.. code-block:: java

collection.aggregate(Arrays.asList(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just checking whether you tested this, since I have not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I tested it. I posted valid code from which I extracted this snippet in our Slack channel when asking whether there was a more idiomatic way to get that data.

@ccho-mongodb ccho-mongodb merged commit e96dd23 into mongodb:master Aug 29, 2023
@ccho-mongodb ccho-mongodb deleted the DOCSP-32154-collstats branch August 29, 2023 16:52
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