-
Notifications
You must be signed in to change notification settings - Fork 534
RUBY-1673 Document collection options #2588
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
| # merged over the existing read preference / write concern. | ||
| # Provides a new collection with either a new read preference, new read | ||
| # concern or new write concern merged over the existing read preference / | ||
| # read concern / write concern. |
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.
As per RUBY-3084, the CHANGEABLE_OPTIONS contains both read and read_concern. The read option corresponds to the read_preference options. Now, this method has only documented the ability to change the read preference and write concern, while allowing the changing of read preference, read concern, and write concern.
There are two options here:
- document that
withalso allows changing read concern, which is what's done here - change
withto not allow the changing of read concern as per RUBY-3084.
This PR implements the former. I can also move this snippet to its own PR if that would be better.
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.
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.
I made the ticket before reading this PR, I see that you've done several of the changes listed there in this PR already.
|
This is ready for review. |
| end | ||
| end | ||
|
|
||
| context "when creating collection with view_on and pipeline" do |
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.
Shoutout to @alexbevi for this test
alexbevi
left a comment
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.
These changes LGTM
* RUBY-1673 Document collection options * RUBY-1673 remove read_preference option * RUBY-1673 amend #with docs to include read_concern * RUBY-1673 add missing options * RUBY-1673 verify max and size options work * RUBY-1673 nitpick * RUBY-1673 alphabetize the options * RUBY-1673 fix mmap tests * RUBY-1673 fix mmap tests
No description provided.