<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:33:23 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-76705] Fields are reordered alphabetically by key when editing an existing document</title>
                <link>https://jira.mongodb.org/browse/SERVER-76705</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;h3&gt;&lt;a name=&quot;ProblemStatement%2FRationale&quot;&gt;&lt;/a&gt;&lt;b&gt;Problem Statement/Rationale&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;When updating an existing document in Atlas, the fields are reordered in alphabetical order by key, rather than maintaining the order they were entered in upon applying the update.&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Please be sure to attach relevant logs &lt;em&gt;with any sensitive data redacted&lt;/em&gt;.&lt;/b&gt;&lt;br/&gt;
&lt;em&gt;How to retrieve logs for: &lt;a href=&quot;https://www.mongodb.com/docs/compass/current/troubleshooting/logs/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Compass&lt;/a&gt;; &lt;a href=&quot;https://www.mongodb.com/docs/mongodb-shell/logs/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Shell&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;StepstoReproduce&quot;&gt;&lt;/a&gt;&lt;b&gt;Steps to Reproduce&lt;/b&gt;&lt;/h3&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;font color=&quot;#505f79&quot;&gt;Insert a new document in a collection in Atlas containing only the auto-generated ObjectID field/value pair&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/447032/447032_image-2023-04-30-19-19-23-858.png&quot; height=&quot;276&quot; width=&quot;477&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;
	&lt;li&gt;&lt;font color=&quot;#505f79&quot;&gt;Edit the document you just created, adding one field with a key that starts with &quot;Z&quot; and a second field with a key that starts with &quot;A&quot;&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/447031/447031_image-2023-04-30-19-21-05-868.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;
	&lt;li&gt;&lt;font color=&quot;#505f79&quot;&gt;Click Update.&#160;&lt;/font&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;h3&gt;&lt;a name=&quot;ExpectedResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Expected Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;The fields should retain the order from the update interface. The Z field should come first, and the A field should come second.&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ActualResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Actual Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;The keys and values are both saved, but they&apos;re reordered so the A key is first, and the Z key is second&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/447030/447030_image-2023-04-30-19-22-25-976.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;AdditionalNotes&quot;&gt;&lt;/a&gt;&lt;b&gt;Additional Notes&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;This appears to be related/similar to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2592&quot; title=&quot;The fields in a document are reordered (sorted alphabetically) when setting a field value&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2592&quot;&gt;&lt;del&gt;SERVER-2592&lt;/del&gt;&lt;/a&gt;. I&apos;ve also seen the same behavior in Compass, but I don&apos;t have screenshots from Compass currently. I&apos;m using a M0 Sandbox (General) tier cluster.&lt;/font&gt;&lt;/p&gt;</description>
                <environment>OS: Windows 10&lt;br/&gt;
node.js / npm versions: latest stable&lt;br/&gt;
Additional info:&lt;br/&gt;
</environment>
        <key id="2328610">SERVER-76705</key>
            <summary>Fields are reordered alphabetically by key when editing an existing document</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="3">Duplicate</resolution>
                                        <assignee username="backlog-server-triage">Backlog - Triage Team</assignee>
                                    <reporter username="mdfisher4@wisc.edu">Michelle Fisher</reporter>
                        <labels>
                            <label>Bug</label>
                    </labels>
                <created>Mon, 1 May 2023 00:39:32 +0000</created>
                <updated>Fri, 2 Jun 2023 13:43:50 +0000</updated>
                            <resolved>Thu, 4 May 2023 13:34:05 +0000</resolved>
                                    <version>6.0.5</version>
                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5400551" author="JIRAUSER1270794" created="Thu, 4 May 2023 13:33:39 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mdfisher4%40wisc.edu&quot; class=&quot;user-hover&quot; rel=&quot;mdfisher4@wisc.edu&quot;&gt;mdfisher4@wisc.edu&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your report. A similar issue has already been reported in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74408&quot; title=&quot;Insert document exactly as specified on upserts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74408&quot;&gt;&lt;del&gt;SERVER-74408&lt;/del&gt;&lt;/a&gt;. The corresponding team is currently investigating the problem and will provide updates as they become available. Please stay tuned to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74408&quot; title=&quot;Insert document exactly as specified on upserts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74408&quot;&gt;&lt;del&gt;SERVER-74408&lt;/del&gt;&lt;/a&gt; for any future updates. I will close this as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74408&quot; title=&quot;Insert document exactly as specified on upserts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74408&quot;&gt;&lt;del&gt;SERVER-74408&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Yuan&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="14816">SERVER-2592</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2275543">SERVER-74408</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="447032" name="image-2023-04-30-19-19-23-858.png" size="19270" author="mdfisher4@wisc.edu" created="Mon, 1 May 2023 00:19:24 +0000"/>
                            <attachment id="447031" name="image-2023-04-30-19-21-05-868.png" size="18268" author="mdfisher4@wisc.edu" created="Mon, 1 May 2023 00:21:06 +0000"/>
                            <attachment id="447030" name="image-2023-04-30-19-22-25-976.png" size="9240" author="mdfisher4@wisc.edu" created="Mon, 1 May 2023 00:22:26 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25137"><![CDATA[Server Triage]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 2 May 2023 02:06:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        39 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_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>kyle.suarez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            39 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-triage</customfieldvalue>
            <customfieldvalue>mdfisher4@wisc.edu</customfieldvalue>
            <customfieldvalue>yuan.fang@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i273j3:</customfieldvalue>

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

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