<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:30 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>[CDRIVER-2206] Expose is_default() in public API for read and write concerns</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2206</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;When parsing a URI, libmongoc always sets a read concern and write concern on the resultant client object (even if the URI includes no such options). It later checks if those properties are default via the private &lt;tt&gt;_mongoc_read_concern_is_default()&lt;/tt&gt; and &lt;tt&gt;_mongoc_write_concern_is_default()&lt;/tt&gt; functions when it needs to decide if the global defaults should be injected into commands.&lt;/p&gt;

&lt;p&gt;Since PHPC is not using &lt;tt&gt;mongoc_client_read_write_command_with_opts()()&lt;/tt&gt; and related functions at this time (and cannot until a general &lt;tt&gt;mongoc_client_command_with_opts()&lt;/tt&gt; function is also introduced), application of these global options is handled in PHPLIB. However, PHPLIB currently injects default read and write concerns into its commands. Fixing this requires PHP to have some way to determine if a libmongoc client&apos;s read and write concern are actually defaults that should be ignored by PHPLIB.&lt;/p&gt;

&lt;p&gt;This missing feature was discovered in 1.7.0-rc0 and will be added in 1.7.0-rc1.&lt;/p&gt;</description>
                <environment></environment>
        <key id="402366">CDRIVER-2206</key>
            <summary>Expose is_default() in public API for read and write concerns</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Jul 2017 22:01:31 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:36 +0000</updated>
                            <resolved>Tue, 11 Jul 2017 12:53:49 +0000</resolved>
                                                    <fixVersion>1.7.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1670937" author="ramon.fernandez" created="Tue, 12 Sep 2017 18:33:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: u&apos;ajdavis&apos;, &apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message:&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2206&quot; title=&quot;Expose is_default() in public API for read and write concerns&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2206&quot;&gt;&lt;del&gt;CDRIVER-2206&lt;/del&gt;&lt;/a&gt; mongoc_read/write_concern_is_default&lt;/p&gt;

&lt;p&gt;New function mongoc_write_concern_is_default determines if any write&lt;br/&gt;
concern options have been set, and mongoc_read_concern_is_default checks&lt;br/&gt;
if read concern options are set.&lt;br/&gt;
Branch:r1.7&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8fed50154d5d0176cd0166e6d955cbbf2784ac70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8fed50154d5d0176cd0166e6d955cbbf2784ac70&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1618651" author="jesse" created="Tue, 11 Jul 2017 12:56:26 +0000"  >&lt;p&gt;On r1.7: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8fed50154d5d0176cd0166e6d955cbbf2784ac70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8fed50154d5d0176cd0166e6d955cbbf2784ac70&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1618649" author="xgen-internal-githook" created="Tue, 11 Jul 2017 12:53:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2206&quot; title=&quot;Expose is_default() in public API for read and write concerns&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2206&quot;&gt;&lt;del&gt;CDRIVER-2206&lt;/del&gt;&lt;/a&gt; mongoc_read/write_concern_is_default&lt;/p&gt;

&lt;p&gt;New function mongoc_write_concern_is_default determines if any write&lt;br/&gt;
concern options have been set, and mongoc_read_concern_is_default checks&lt;br/&gt;
if read concern options are set.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/82b25b757299ef18235c01979946c639f1db8dbd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/82b25b757299ef18235c01979946c639f1db8dbd&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="402367">PHPC-976</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="354340">PHPLIB-261</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="332003">PHPC-834</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|ht2j4n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>