<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:25:13 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-2294] Add createCollection and collMod spec tests for changeStreamPreAndPostImages option</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-2294</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #fafbfc;border-color: #21313c;border-style: solid;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;Downstream changes for &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1915&quot; title=&quot;Change streams support for user-facing PIT pre- and post-images&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1915&quot;&gt;&lt;del&gt;DRIVERS-1915&lt;/del&gt;&lt;/a&gt; mentioned that the &lt;tt&gt;create&lt;/tt&gt; and &lt;tt&gt;collMod&lt;/tt&gt; commands now accept a &lt;tt&gt;changeStreamPreAndPostImages&lt;/tt&gt; document option, which is used to enable pre- and post-images. The commit for that issue added &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/change-streams/tests/unified/change-streams-pre_and_post_images.yml&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;unified change stream spec tests&lt;/a&gt; with &lt;tt&gt;runCommand&lt;/tt&gt; operations that execute &lt;tt&gt;collMod&lt;/tt&gt; to enable &lt;tt&gt;changeStreamPreAndPostImages&lt;/tt&gt; on the collection under test (originally created by &lt;tt&gt;initialData&lt;/tt&gt;), but did not add any spec tests for &lt;tt&gt;createCollection&lt;/tt&gt; or &lt;tt&gt;collMod&lt;/tt&gt; helpers that may exist in drivers.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=benji.rewis%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;benji.rewis@mongodb.com&quot;&gt;benji.rewis@mongodb.com&lt;/a&gt; pointed out that we do have a directory for &lt;a href=&quot;https://github.com/mongodb/specifications/tree/master/source/collection-management/tests&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;collection management tests&lt;/a&gt; (despite not currently having a collection management &lt;em&gt;spec&lt;/em&gt;). We should add unified tests for the &lt;tt&gt;changeStreamPreAndPostImages&lt;/tt&gt; option there. Drivers without helpers can skip them as needed.&lt;/p&gt;

&lt;p&gt;Existing spec tests reference a &lt;tt&gt;createCollection&lt;/tt&gt; database operation. These would be the first tests for a &lt;tt&gt;collMod&lt;/tt&gt; helper, so I&apos;ll propose we name that database operation &lt;tt&gt;modifyCollection&lt;/tt&gt; unless anyone objects.&lt;/p&gt;

&lt;p&gt;Additionally, the server team intentionally implemented &lt;tt&gt;changeStreamPreAndPostImages&lt;/tt&gt; as a document (e.g. {&lt;tt&gt;enabled: &amp;lt;boolean&amp;gt;&lt;/tt&gt;}), so I propose drivers do the same instead of simplifying it as a boolean type and possibly locking themselves into an API limitation down the line.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Motivation&quot;&gt;&lt;/a&gt;&lt;b&gt;Motivation&lt;/b&gt;&lt;/h3&gt;

&lt;h4&gt;&lt;a name=&quot;Isthisissueurgent%3F&quot;&gt;&lt;/a&gt;Is this issue urgent?&lt;/h4&gt;
&lt;p&gt;No, but it should be done alongside language tickets for &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1915&quot; title=&quot;Change streams support for user-facing PIT pre- and post-images&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1915&quot;&gt;&lt;del&gt;DRIVERS-1915&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h4&gt;&lt;a name=&quot;Isthisticketrequiredbyadownstreamteam%3F&quot;&gt;&lt;/a&gt;Is this ticket required by a downstream team?&lt;/h4&gt;
&lt;p&gt;No.&lt;/p&gt;

&lt;h4&gt;&lt;a name=&quot;Isthisticketonlyfortests%3F&quot;&gt;&lt;/a&gt;Is this ticket only for tests?&lt;/h4&gt;
&lt;p&gt;Yes.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="2033426">DRIVERS-2294</key>
            <summary>Add createCollection and collMod spec tests for changeStreamPreAndPostImages option</summary>
                <type id="14901" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14700&amp;avatarType=issuetype">Spec Change</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="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                            <label>yaml-test</label>
                    </labels>
                <created>Tue, 26 Apr 2022 16:38:11 +0000</created>
                <updated>Mon, 25 Sep 2023 18:37:01 +0000</updated>
                            <resolved>Mon, 25 Sep 2023 18:37:01 +0000</resolved>
                                                        <component>Collection Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4550339" author="xgen-internal-githook" created="Mon, 16 May 2022 16:28:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@mongodb.com&apos;, &apos;username&apos;: &apos;jyemin&apos;}
&lt;p&gt;Message: Add serverless: forbid for collection management tests (#1216)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1853&quot; title=&quot;Clustered Indexes for all Collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1853&quot;&gt;&lt;del&gt;DRIVERS-1853&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2294&quot; title=&quot;Add createCollection and collMod spec tests for changeStreamPreAndPostImages option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2294&quot;&gt;&lt;del&gt;DRIVERS-2294&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/specifications/commit/d1458823bd810014df9da16d3a5354d2269ab865&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/d1458823bd810014df9da16d3a5354d2269ab865&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4530058" author="xgen-internal-githook" created="Thu, 5 May 2022 22:29:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2294&quot; title=&quot;Add createCollection and collMod spec tests for changeStreamPreAndPostImages option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2294&quot;&gt;&lt;del&gt;DRIVERS-2294&lt;/del&gt;&lt;/a&gt; Add createCollection and collMod tests for changeStreamPreAndPostImages (#1206)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/specifications/commit/d96789119036eaa56e4c015a1e914919e30cb379&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/d96789119036eaa56e4c015a1e914919e30cb379&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4523324" author="benji.rewis" created="Tue, 3 May 2022 18:05:13 +0000"  >&lt;p&gt;Spec PR: &lt;a href=&quot;https://github.com/mongodb/specifications/pull/1206&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/pull/1206&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10620">
                    <name>Issue split</name>
                                            <outwardlinks description="split to">
                                        <issuelink>
            <issuekey id="2033433">JAVA-4592</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033432">GODRIVER-2396</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033437">PHPLIB-856</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033429">CDRIVER-4368</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033431">CSHARP-4152</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033430">CXX-2499</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033435">MOTOR-948</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033434">NODE-4210</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033436">PYTHON-3239</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033438">RUBY-2971</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2033439">RUST-1295</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1869145">DRIVERS-1915</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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Drivers should sync their collection management spec tests to &lt;a href=&quot;https://github.com/mongodb/specifications/commit/d96789119036eaa56e4c015a1e914919e30cb379&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this commit&lt;/a&gt;. Drivers with &lt;tt&gt;createCollection&lt;/tt&gt; and &lt;tt&gt;modifyCollection&lt;/tt&gt; helpers should add a &lt;tt&gt;changeStreamPreAndPostImages&lt;/tt&gt; option that is a document passed in the &lt;tt&gt;create&lt;/tt&gt; or &lt;tt&gt;collMod&lt;/tt&gt; command respectively.&lt;br/&gt;
Update: &lt;tt&gt;serverless: forbid&lt;/tt&gt; was added in &lt;a href=&quot;https://github.com/mongodb/specifications/commit/d1458823bd810014df9da16d3a5354d2269ab865&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this commit&lt;/a&gt;&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10951" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Driver Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10748"><![CDATA[Needed]]></customfieldvalue>

                        </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-4368'>CDRIVER-4368</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>1.22.0, 1.22.0-beta0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CXX-2499'>CXX-2499</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>3.7.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CSHARP-4152'>CSHARP-4152</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>2.16.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/GODRIVER-2396'>GODRIVER-2396</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>1.10.0, 1.10.0-beta1</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/JAVA-4592'>JAVA-4592</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>4.7.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/NODE-4210'>NODE-4210</a>
    </td>
    <td>Done</td>
    <td class='hasFixVersion'>4.7.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/MOTOR-948'>MOTOR-948</a>
    </td>
    <td>Duplicate</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PYTHON-3239'>PYTHON-3239</a>
    </td>
    <td>Duplicate</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PHPLIB-856'>PHPLIB-856</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>1.13.0-beta1, 1.13.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUBY-2971'>RUBY-2971</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>2.18.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUST-1295'>RUST-1295</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>2.4.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/SWIFT-1555'>SWIFT-1555</a>
    </td>
    <td>Duplicate</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/SWIFT-1472'>SWIFT-1472</a>
    </td>
    <td>Won't Do</td>
    <td class=''></td>
  </tr>
</table>]]></customfieldvalue>


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