<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54:50 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-1524] Default MongoCollectionOptions</title>
                <link>https://jira.mongodb.org/browse/JAVA-1524</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;You should be able to create MongoCollectionOptions with the appropriate default values. In other words&lt;/p&gt;

&lt;p&gt;MongoDatabase db = ...&lt;br/&gt;
db.getCollection(&quot;my-col&quot;, MongoCollectionOptions.builder().build())&lt;/p&gt;

&lt;p&gt;should be equiv to&lt;/p&gt;

&lt;p&gt;MongoDatabase db = ...&lt;br/&gt;
db.getCollection(&quot;my-col&quot;);&lt;/p&gt;
</description>
                <environment></environment>
        <key id="166106">JAVA-1524</key>
            <summary>Default MongoCollectionOptions</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="nscavell">Nick Scavelli</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Oct 2014 14:01:42 +0000</created>
                <updated>Tue, 31 Mar 2015 20:09:59 +0000</updated>
                            <resolved>Mon, 10 Nov 2014 09:57:10 +0000</resolved>
                                                    <fixVersion>3.0.0</fixVersion>
                                    <component>Async</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="869488" author="jeff.yemin" created="Tue, 31 Mar 2015 20:09:59 +0000"  >&lt;p&gt;Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.&lt;/p&gt;</comment>
                            <comment id="817997" author="xgen-internal-githook" created="Fri, 30 Jan 2015 18:44:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Ensure client / database / collection use default options with any set options&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1524&quot; title=&quot;Default MongoCollectionOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1524&quot;&gt;&lt;del&gt;JAVA-1524&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/12c549800bdc7e6778bb81f5a71595ed572187d8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/12c549800bdc7e6778bb81f5a71595ed572187d8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="817996" author="xgen-internal-githook" created="Fri, 30 Jan 2015 18:44:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;nscavell&apos;, u&apos;name&apos;: u&apos;nscavell&apos;, u&apos;email&apos;: u&apos;nick.scavelli@gmail.com&apos;}
&lt;p&gt;Message: Properly use default options when specifying MongoCollectionOptions in MongoDatabase&lt;/p&gt;

&lt;p&gt;  &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1524&quot; title=&quot;Default MongoCollectionOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1524&quot;&gt;&lt;del&gt;JAVA-1524&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/a2ba4f3e13364ae0c5c7cfc7310fe54cc44ac57d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/a2ba4f3e13364ae0c5c7cfc7310fe54cc44ac57d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="759871" author="xgen-internal-githook" created="Mon, 10 Nov 2014 09:24:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Ensure client / database / collection use default options with any set options&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1524&quot; title=&quot;Default MongoCollectionOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1524&quot;&gt;&lt;del&gt;JAVA-1524&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/12c549800bdc7e6778bb81f5a71595ed572187d8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/12c549800bdc7e6778bb81f5a71595ed572187d8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="759870" author="xgen-internal-githook" created="Mon, 10 Nov 2014 09:24:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;nscavell&apos;, u&apos;name&apos;: u&apos;nscavell&apos;, u&apos;email&apos;: u&apos;nick.scavelli@gmail.com&apos;}
&lt;p&gt;Message: Properly use default options when specifying MongoCollectionOptions in MongoDatabase&lt;/p&gt;

&lt;p&gt;  &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1524&quot; title=&quot;Default MongoCollectionOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1524&quot;&gt;&lt;del&gt;JAVA-1524&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/a2ba4f3e13364ae0c5c7cfc7310fe54cc44ac57d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/a2ba4f3e13364ae0c5c7cfc7310fe54cc44ac57d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="751426" author="nscavell" created="Wed, 29 Oct 2014 14:48:08 +0000"  >&lt;p&gt;PR here &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/275&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/275&lt;/a&gt; if this is accepted.&lt;/p&gt;

&lt;p&gt;The issue is if let&apos;s say I have someone who wants to specify a write concern. I set the write concern on the MongoCollectionOptions.builder().writeConcern(...) but I now have to set the read preference ? Seems silly.&lt;/p&gt;

&lt;p&gt;Also same sort of issue when specifying a codec for MongoDatabase#getCollection(String, Codec, MongoCollectionOptions). The user shouldn&apos;t have to set the default settings (either if they were configured via the client or w/e).&lt;/p&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs341j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>142961</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="321">Java Sprint 10</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>