<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:44:14 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>[COMPASS-6755] Compass interprets Date() incorrectly in queries</title>
                <link>https://jira.mongodb.org/browse/COMPASS-6755</link>
                <project id="13182" key="COMPASS">Compass </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;Compass should behave consistently with other tools such as mongosh, Charts and Node with respect to date helpers. Inconsistency leads to customer confusion and bugs (see &lt;a href=&quot;https://mongodb.slack.com/archives/CJXH4T4PN/p1681987247852769&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this Slack discussion&lt;/a&gt; for an example)&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;Find a collection with a date field.&lt;/font&gt;&lt;/li&gt;
	&lt;li&gt;&lt;font color=&quot;#505f79&quot;&gt;Use Compass to filter the data using something like this:&lt;br/&gt;
&#160;{ createDate: { $gt: Date(&quot;2001-01-01&quot;) }}&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;ol&gt;
	&lt;li&gt;&lt;font color=&quot;#505f79&quot;&gt;Zero documents returned.&lt;/font&gt;&lt;/li&gt;
	&lt;li&gt;&lt;font color=&quot;#505f79&quot;&gt;This is because as per JavaScript oddities, Date(&quot;...&quot;) returns the current date as a string, ignoring the arguments.&lt;/font&gt;&lt;/li&gt;
	&lt;li&gt;&lt;font color=&quot;#505f79&quot;&gt;To get a working date filter, users would need to specify&#160;&lt;b&gt;new Date(&quot;...&quot;)&lt;/b&gt; or&#160;&lt;b&gt;new ISODate(&quot;...&quot;)&lt;/b&gt; or &lt;b&gt;ISODate(&quot;...&quot;)&lt;/b&gt;&lt;/font&gt;&lt;/li&gt;
&lt;/ol&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;ol&gt;
	&lt;li&gt;&lt;font color=&quot;#505f79&quot;&gt;Data is filtered based on the specified date, even though this is not how Javascript works.&lt;/font&gt;&lt;/li&gt;
&lt;/ol&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;Any additional information that may be useful to include.&lt;/font&gt;&lt;/p&gt;</description>
                <environment>OS:&lt;br/&gt;
node.js / npm versions:&lt;br/&gt;
Additional info:&lt;br/&gt;
</environment>
        <key id="2320400">COMPASS-6755</key>
            <summary>Compass interprets Date() incorrectly in queries</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="leroux.bodenstein@mongodb.com">Le Roux Bodenstein</assignee>
                                    <reporter username="tom.hollander@mongodb.com">Tom Hollander</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Apr 2023 23:21:13 +0000</created>
                <updated>Sat, 20 May 2023 20:58:07 +0000</updated>
                            <resolved>Mon, 8 May 2023 10:21:32 +0000</resolved>
                                                    <fixVersion>1.37.0</fixVersion>
                                    <component>Query Bar</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5440142" author="xgen-internal-githook" created="Sat, 20 May 2023 20:58:07 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Le Roux Bodenstein&apos;, &apos;email&apos;: &apos;lerouxb@gmail.com&apos;, &apos;username&apos;: &apos;lerouxb&apos;}
&lt;p&gt;Message: fix(ejson): Differentiate between new Date() and Date() &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6755&quot; title=&quot;Compass interprets Date() incorrectly in queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6755&quot;&gt;&lt;del&gt;COMPASS-6755&lt;/del&gt;&lt;/a&gt; (#4327)&lt;/p&gt;

&lt;p&gt;bump ejson-shell-parser to 1.2.4&lt;br/&gt;
Branch: &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6664&quot; title=&quot;Add guide cue to highlight the feature&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6664&quot;&gt;&lt;del&gt;COMPASS-6664&lt;/del&gt;&lt;/a&gt;-guide-cue-stage-wizard&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/52a10750bc6942923c66fd6f564aa06a839c4d2f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/52a10750bc6942923c66fd6f564aa06a839c4d2f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5408116" author="xgen-internal-githook" created="Mon, 8 May 2023 13:54:03 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Le Roux Bodenstein&apos;, &apos;email&apos;: &apos;lerouxb@gmail.com&apos;, &apos;username&apos;: &apos;lerouxb&apos;}
&lt;p&gt;Message: fix(ejson): Differentiate between new Date() and Date() &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6755&quot; title=&quot;Compass interprets Date() incorrectly in queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6755&quot;&gt;&lt;del&gt;COMPASS-6755&lt;/del&gt;&lt;/a&gt; (#4327)&lt;/p&gt;

&lt;p&gt;bump ejson-shell-parser to 1.2.4&lt;br/&gt;
Branch: &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6058&quot; title=&quot;An update on a sharded collection is failing unless the user has admin privileges&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6058&quot;&gt;&lt;del&gt;COMPASS-6058&lt;/del&gt;&lt;/a&gt;-fix-update-on-sharded-collection&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/52a10750bc6942923c66fd6f564aa06a839c4d2f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/52a10750bc6942923c66fd6f564aa06a839c4d2f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5407551" author="xgen-internal-githook" created="Mon, 8 May 2023 10:20:13 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Le Roux Bodenstein&apos;, &apos;email&apos;: &apos;lerouxb@gmail.com&apos;, &apos;username&apos;: &apos;lerouxb&apos;}
&lt;p&gt;Message: fix(ejson): Differentiate between new Date() and Date() &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-6755&quot; title=&quot;Compass interprets Date() incorrectly in queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-6755&quot;&gt;&lt;del&gt;COMPASS-6755&lt;/del&gt;&lt;/a&gt; (#4327)&lt;/p&gt;

&lt;p&gt;bump ejson-shell-parser to 1.2.4&lt;br/&gt;
Branch: main&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/52a10750bc6942923c66fd6f564aa06a839c4d2f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/52a10750bc6942923c66fd6f564aa06a839c4d2f&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="447605" name="Screenshot 2023-04-20 at 11.37.31.png" size="1214480" author="jessica.sigafoos@mongodb.com" created="Wed, 3 May 2023 13:47:14 +0000"/>
                            <attachment id="447606" name="Screenshot 2023-04-20 at 11.39.38.png" size="1028629" author="jessica.sigafoos@mongodb.com" created="Wed, 3 May 2023 13:47:14 +0000"/>
                            <attachment id="447607" name="Screenshot 2023-04-20 at 11.39.48.png" size="1066856" author="jessica.sigafoos@mongodb.com" created="Wed, 3 May 2023 13:47:14 +0000"/>
                            <attachment id="447608" name="Screenshot 2023-04-20 at 11.40.00.png" size="872769" author="jessica.sigafoos@mongodb.com" created="Wed, 3 May 2023 13:47:14 +0000"/>
                    </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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 21 Apr 2023 10:08:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        37 weeks, 4 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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![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>xgen-internal-githook</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            37 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>leroux.bodenstein@mongodb.com</customfieldvalue>
            <customfieldvalue>tom.hollander@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i25ouv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1o01s:</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_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i25b07:</customfieldvalue>

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