<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:21:19 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>[DRIVERS-347] Support deprecated &quot;modifiers&quot; FindOption in CRUD API</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-347</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;The CRUD specification now states:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Q: Where did modifiers go in FindOptions?&lt;br/&gt;
MongoDB 3.2 introduced the find command. As opposed to using the general &quot;modifiers&quot; field any longer, each relevant option is listed explicitly. Some options, such as &quot;tailable&quot; or &quot;singleBatch&quot; are not listed as they are derived from other fields. Upgrading a driver should be a simple procedure of deprecating the &quot;modifiers&quot; field and introducing the new fields. When a collision occurs, the explicitly specified field should override the value in &quot;modifiers&quot;.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Drivers still supporting a &quot;modifiers&quot; option for &lt;tt&gt;find()&lt;/tt&gt; should only fall back to values in that document if the first-class option is not specified. &lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/blob/1.2.2/src/MongoDB/Query.c#L255&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;This snippet from the PHP driver&lt;/a&gt; may serve as an example.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&quot;comment&quot; option falls back to &quot;$comment&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;hint&quot; option falls back to &quot;$hint&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;max&quot; option falls back to &quot;$max&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;maxScan&quot; option falls back to &quot;$maxScan&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;maxTimeMS&quot; option falls back to &quot;$maxTimeMS&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;min&quot; option falls back to &quot;$min&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;returnKey&quot; option falls back to &quot;$returnKey&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;showRecordId&quot; option falls back to &quot;$showDiskLoc&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;sort&quot; option falls back to &quot;$orderby&quot; modifier option&lt;/li&gt;
	&lt;li&gt;&quot;snapshot&quot; option falls back to &quot;$snapshot&quot; modifier option&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The CRUD spec does not dictate an &quot;explain&quot; option for &lt;tt&gt;find()&lt;/tt&gt;; however, drivers should ensure that the &quot;$explain&quot; modifier is still supported for legacy queries (i.e. not using the &lt;tt&gt;find&lt;/tt&gt; command).&lt;/p&gt;</description>
                <environment></environment>
        <key id="343902">DRIVERS-347</key>
            <summary>Support deprecated &quot;modifiers&quot; FindOption in CRUD API</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="-1">Unassigned</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                            <label>spec-change</label>
                    </labels>
                <created>Mon, 9 Jan 2017 22:26:31 +0000</created>
                <updated>Wed, 30 Oct 2019 13:43:23 +0000</updated>
                            <resolved>Wed, 30 Oct 2019 13:43:23 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1487393" author="rassi@10gen.com" created="Fri, 27 Jan 2017 23:28:27 +0000"  >&lt;p&gt;Relatedly, should drivers be upconverting requests like find().modifiers({$orderby: {a: 1}}) to their find command equivalents, when the server has find command support?&lt;/p&gt;</comment>
                            <comment id="1487391" author="rassi@10gen.com" created="Fri, 27 Jan 2017 23:20:58 +0000"  >&lt;p&gt;Should we add spec tests to validate correctness for this logic?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="314226">CDRIVER-1522</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="346655">CSHARP-1896</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="346656">JAVA-2427</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="346659">PYTHON-1217</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="346660">RUBY-1195</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="346654">CXX-1195</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="346662">PHPLIB-255</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="346657">NODE-911</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="344076">DRIVERS-348</issuekey>
        </issuelink>
                            </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_23952" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Driver Compliance</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<style type='text/css'>
         #scriptField, #scriptField *{
                border: 1px solid black;
            }

            #scriptField{
                border-collapse: collapse;
            }

            #scriptField td {
                text-align: center; /* Center-align text in table cells */
            }

            #scriptField td.key {
                text-align: left; /* Left-align text in the Key column */
            }

            #scriptField a {
                text-decoration: none; /* Remove underlines from links */
                border: none; /* Remove border from links */
            }
            
            /* Add green background color to cells with FixVersion */
            #scriptField td.hasFixVersion {
                background-color: #00FF00; /* Green color code */
            }

            /* Center-align the first row headers */
            #scriptField th {
                text-align: center;
            }
        </style>
<table id='scriptField'>
  <tr>
    <th>Key</th>
    <th>Status/Resolution</th>
    <th>FixVersion</th>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CDRIVER-1522'>CDRIVER-1522</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.5.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CSHARP-1896'>CSHARP-1896</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.10.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUBY-1195'>RUBY-1195</a>
    </td>
    <td>Works as Designed</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PYTHON-1217'>PYTHON-1217</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>3.5</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CXX-1195'>CXX-1195</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>3.2.0-rc0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/JAVA-2427'>JAVA-2427</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>3.5.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PERL-718'>PERL-718</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.0.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/NODE-911'>NODE-911</a>
    </td>
    <td>Works as Designed</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/SCALA-291'>SCALA-291</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.2.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PHPLIB-255'>PHPLIB-255</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.1.0</td>
  </tr>
</table>]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hstktr:</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>