Major - P3
After https://jira.mongodb.org/browse/RUBY-1860 it is relatively easy to add per-operation write concern support as well as other write options. Most if not all of the operations already take an options hash, and they just need to be adjusted to take a write concern out of options prior to defaulting to session/collection/tx etc., plus tests and docs.
Operations that need to be checked:
Options to support:
Some of the operations (specifically the find_* ones) appear to already support all options.
As part of this ticket, tests should be added or existing tests should be identified for all listed methods & options.
Rendered API documentation: https://api.mongodb.com/ruby/current/Mongo/Collection.html
The tutorial documentation will need to be updated with the supported options, e.g. for delete: https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-crud-operations/#delete-options
- is related to
RUBY-2306 Add tests verifying session options are passed correctly in CRUD operations
- related to
RUBY-1860 Standardize on :write_concern for write concern options
RUBY-2299 Support per-operation write concern for database and collection write methods
- links to