<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:52:18 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>[SERVER-61385] Migrate most callers of legacy &apos;DBClientBase::query()&apos; API to modern &apos;find()&apos; API</title>
                <link>https://jira.mongodb.org/browse/SERVER-61385</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Related ticket &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-59512&quot; title=&quot;Introduce new find API to DBClientBase which uses IDL-generated FindCommandRequest&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-59512&quot;&gt;&lt;del&gt;SERVER-59512&lt;/del&gt;&lt;/a&gt; recently introduced a new API to &lt;tt&gt;DBClientBase&lt;/tt&gt; for performing find operations. This API accepts a &lt;tt&gt;FindCommandRequest&lt;/tt&gt;, in contrast to the legacy &lt;tt&gt;DBClientBase::query()&lt;/tt&gt; overloads. The legacy &lt;tt&gt;DBClientBase::query()&lt;/tt&gt; API requires the caller to specify the find operation as though it were an OP_QUERY find. This is undesirable because the system no longer supports OP_QUERY find. Therefore, the internal client code is required to upconvert the OP_QUERY find description into an OP_MSG find command before actually sending it over the wire.&lt;/p&gt;

&lt;p&gt;The goal of this ticket is to move callers of the legacy &lt;tt&gt;DBClientBase::query()&lt;/tt&gt; API onto the new &lt;tt&gt;DBClientBase::find()&lt;/tt&gt; API. Once this migration is complete, the code which implements &lt;tt&gt;DBClientBase::query()&lt;/tt&gt;, including the special upconversion logic mentioned above, should be deleted. This may need to be done in multiple steps, depending on the complexity and the scope of the code changes.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1922389">SERVER-61385</key>
            <summary>Migrate most callers of legacy &apos;DBClientBase::query()&apos; API to modern &apos;find()&apos; API</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="13201">Fixed</resolution>
                                        <assignee username="david.storch@mongodb.com">David Storch</assignee>
                                    <reporter username="david.storch@mongodb.com">David Storch</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Nov 2021 17:33:35 +0000</created>
                <updated>Sun, 29 Oct 2023 21:46:14 +0000</updated>
                            <resolved>Tue, 21 Dec 2021 12:14:54 +0000</resolved>
                                                    <fixVersion>5.3.0</fixVersion>
                                    <component>Internal Client</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4265507" author="xgen-internal-githook" created="Thu, 23 Dec 2021 10:04:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Storch&apos;, &apos;email&apos;: &apos;david.storch@mongodb.com&apos;, &apos;username&apos;: &apos;dstorch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61385&quot; title=&quot;Migrate most callers of legacy &amp;#39;DBClientBase::query()&amp;#39; API to modern &amp;#39;find()&amp;#39; API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61385&quot;&gt;&lt;del&gt;SERVER-61385&lt;/del&gt;&lt;/a&gt; Fix initialization of cursor in RollbackSourceImpl::findOneByUUID()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b4b899f9b295b976f8a360c07cd6eba6d507d7ec&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b4b899f9b295b976f8a360c07cd6eba6d507d7ec&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4261436" author="david.storch" created="Tue, 21 Dec 2021 12:35:11 +0000"  >&lt;p&gt;Due to the scope of the changes required to fully eliminate the legacy &lt;tt&gt;DBClientBase::query()&lt;/tt&gt; API from the code base, we now intend to do it in two steps. The changes committed under this ticket moved most but not all callers to the new API. It also renamed the old API to &lt;tt&gt;query_DEPRECATED()&lt;/tt&gt; in order to discourage adding more uses in the future. I&apos;ve filed followup ticket &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62206&quot; title=&quot;Remove DBClientBase::query_DEPRECATED() and migrate remaining callers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62206&quot;&gt;&lt;del&gt;SERVER-62206&lt;/del&gt;&lt;/a&gt; to complete the deletion of the legacy API, and retitled this ticket accordingly.&lt;/p&gt;</comment>
                            <comment id="4261394" author="xgen-internal-githook" created="Tue, 21 Dec 2021 11:56:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;David Storch&apos;, &apos;email&apos;: &apos;david.storch@mongodb.com&apos;, &apos;username&apos;: &apos;dstorch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61385&quot; title=&quot;Migrate most callers of legacy &amp;#39;DBClientBase::query()&amp;#39; API to modern &amp;#39;find()&amp;#39; API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61385&quot;&gt;&lt;del&gt;SERVER-61385&lt;/del&gt;&lt;/a&gt; Migrate callers of &apos;DBClientBase::query()&apos; legacy API to the modern &apos;find()&apos; API&lt;/p&gt;

&lt;p&gt;There are a handful of remaining callers of the legacy API,&lt;br/&gt;
either using the exhaust option or which are involved in a&lt;br/&gt;
code path which still relies on the OP_QUERY-inspired BSON&lt;br/&gt;
format. These should be cleaned up as follow-up work.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/19080405d9c7d08b54e70228a92d237223f2885c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/19080405d9c7d08b54e70228a92d237223f2885c&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1954863">SERVER-62206</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1955684">SERVER-62231</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1858379">SERVER-59512</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 17 Dec 2021 17:05:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 6 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 6 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>64.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i09u5b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzt95r:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5273">QE 2021-11-29</customfieldvalue>
    <customfieldvalue id="5275">QE 2021-12-13</customfieldvalue>
    <customfieldvalue id="5277">QE 2021-12-27</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i09gan:</customfieldvalue>

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