<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:25:04 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-2238] Clarify evaluating matches</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-2238</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #fafbfc;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #fafbfc;&quot;&gt;
&lt;h3&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;&lt;b&gt;Summary&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;Unified test format specification &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/unified-test-format/unified-test-format.rst#evaluating-matches&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;evaluating matches&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;assert that actual does not contain additional keys&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Contradicts the Crud specification &lt;a href=&quot;https://github.com/mongodb/specifications/tree/master/source/crud/tests#extra-fields-in-actual-documents&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;extra fields in actual documents&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;When comparing actual and expected documents, drivers should permit actual documents to contain additional fields not present in expected&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;b&gt;Motivation&lt;/b&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Whoistheaffectedenduser%3F&quot;&gt;&lt;/a&gt;Who is the affected end user?&lt;/h4&gt;
&lt;p&gt;The specification implementer &lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="2004405">DRIVERS-2238</key>
            <summary>Clarify evaluating matches</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="ross@mongodb.com">Ross Lawley</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Mar 2022 13:24:08 +0000</created>
                <updated>Tue, 26 Jul 2022 13:16:10 +0000</updated>
                            <resolved>Tue, 26 Jul 2022 13:16:10 +0000</resolved>
                                                        <component>Unified Test Runner</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4421743" author="jmikola@gmail.com" created="Fri, 18 Mar 2022 20:31:20 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ross.lawley&quot; class=&quot;user-hover&quot; rel=&quot;ross.lawley&quot;&gt;ross.lawley&lt;/a&gt;: The unified test format intentionally differs from previous specs. Per the pseudo-code:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;if expected is not the root document:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;      assert that actual does not contain additional keys&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Extra fields are permitted in root documents &lt;em&gt;only&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Coincidentally, this came up earlier today when &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=aleksandr.rudo&quot; class=&quot;user-hover&quot; rel=&quot;aleksandr.rudo&quot;&gt;aleksandr.rudo&lt;/a&gt; and I were discussing &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2231&quot; title=&quot;ChangeStream Spec: fullDocument field in ChangeStreamOptions should be an optional to handle &amp;quot;default&amp;quot; case.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2231&quot;&gt;&lt;del&gt;DRIVERS-2231&lt;/del&gt;&lt;/a&gt; (leave &lt;tt&gt;$changeStream.fullDocument&lt;/tt&gt; unset by default). I realized that the original spec tests (see: &lt;a href=&quot;https://github.com/mongodb/specifications/commit/31edce69d0fed2151a08c66204b7b60afcd6ab9b#diff-cb45afd25f1ccc74f7cf68983c52716dea53ff2ab44020cedc33ddb8266fbd40R57&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;) didn&apos;t actually provide any test coverage for the change because the &lt;a href=&quot;https://github.com/mongodb/specifications/tree/master/source/change-streams/tests#spec-test-match-function&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;change stream spec&apos;s match function&lt;/a&gt; only asserts keys in the expected value and ignores extra keys in actual values by design. This also applied to the related &lt;a href=&quot;https://github.com/mongodb/specifications/commit/006a4f1a363e3d03f7169b85e0b5c53b61946d83&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;retryable reads spec tests&lt;/a&gt; per that legacy test runner.&lt;/p&gt;

&lt;p&gt;That said, I wasn&apos;t too concerned about that since (a) &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2231&quot; title=&quot;ChangeStream Spec: fullDocument field in ChangeStreamOptions should be an optional to handle &amp;quot;default&amp;quot; case.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2231&quot;&gt;&lt;del&gt;DRIVERS-2231&lt;/del&gt;&lt;/a&gt; is quite old and (b) this will be handled when those specs are ultimately ported to the unified test format (DRIVERS-1713, DRIVERS-1710).&lt;/p&gt;

&lt;p&gt;If you&apos;re satisfied with this answer, feel free to resolve this issue accordingly.&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_10951" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Driver Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10940"><![CDATA[Not Needed]]></customfieldvalue>

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