<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16:05 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-2704] Add &quot;upsertedCount&quot; to CRUD function replies</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2704</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;We are gradually approaching conformity with the CRUD Spec. We&apos;ll never fully implement it (it&apos;s designed for object-oriented programming languages, not for C), but we can support upsertedCount along with the other result fields from write operations.&lt;/p&gt;</description>
                <environment></environment>
        <key id="560502">CDRIVER-2704</key>
            <summary>Add &quot;upsertedCount&quot; to CRUD function replies</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Sun, 17 Jun 2018 21:54:05 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:47 +0000</updated>
                            <resolved>Wed, 20 Jun 2018 03:31:45 +0000</resolved>
                                                    <fixVersion>1.11.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1925747" author="xgen-internal-githook" created="Wed, 20 Jun 2018 03:43:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2704&quot; title=&quot;Add &amp;quot;upsertedCount&amp;quot; to CRUD function replies&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2704&quot;&gt;&lt;del&gt;CDRIVER-2704&lt;/del&gt;&lt;/a&gt; update NEWS&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/35c15e566d974397e05b9f82833b901f3fe5b57a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/35c15e566d974397e05b9f82833b901f3fe5b57a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1925740" author="xgen-internal-githook" created="Wed, 20 Jun 2018 03:31:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2558&quot; title=&quot;Implement Transactions spec&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2558&quot;&gt;&lt;del&gt;CDRIVER-2558&lt;/del&gt;&lt;/a&gt; prohibit per-operation options in txn&lt;/p&gt;

&lt;p&gt;Users cannot pass read concern, write concern, or read preference to&lt;br/&gt;
&quot;with_opts&quot; functions in a transaction. To prevent this, keep the user&apos;s&lt;br/&gt;
read preference separate from the inherited read preference until it can&lt;br/&gt;
be checked in _mongoc_client_command_with_opts().&lt;/p&gt;

&lt;p&gt;Most drivers don&apos;t allow these 3 options to be set per-operation, so the Transactions Spec doesn&apos;t test that setting them is prohibited in a&lt;br/&gt;
transaction. The new test file opts.yml uses the Transaction Spec&apos;s test&lt;br/&gt;
format for C Driver-specific tests of this scenario.&lt;/p&gt;

&lt;p&gt;Also implement &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2704&quot; title=&quot;Add &amp;quot;upsertedCount&amp;quot; to CRUD function replies&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2704&quot;&gt;&lt;del&gt;CDRIVER-2704&lt;/del&gt;&lt;/a&gt;, included upsertedCount in replies from mongoc_collection_update_one, update_many, and replace_one: it&apos;s useful&lt;br/&gt;
and allows us to use standard CRUD test specifications. Update our test&lt;br/&gt;
runner to use CRUD functions like mongoc_collection_insert_one instead&lt;br/&gt;
of using mongoc_bulk_operation_t for all writes.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/84d7dda4232f102fec5b090b7a863df6139fa480&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/84d7dda4232f102fec5b090b7a863df6139fa480&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </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|htrnfz:</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>