<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:08:51 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-45453] Change name and usage of $_internalJs to $function</title>
                <link>https://jira.mongodb.org/browse/SERVER-45453</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Rename $_internalJs to $function, and change how it parses its arguments. &lt;br/&gt;
$function takes the following required fields:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;body - a function given as a constant expression of the String or Code BSON type&lt;/li&gt;
	&lt;li&gt;args - function&#8217;s arguments given by an expression evaluating to the Array BSON type.&lt;/li&gt;
	&lt;li&gt;lang - a language specifier given as a constant expression of the String type; the only acceptable value for now is &apos;js&apos;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Update MapReduce where necessary to generate $function expressions instead of $_internalJs.&lt;/p&gt;

&lt;p&gt;Because this is a new operator, we should restrict its use to FCV 4.4 to prevent problems with downgrade (for example, to prevent users from creating views that would be invalid on 4.2). But we should also make sure MapReduce still works on FCV 4.2, even though it uses this new operator internally.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1082862">SERVER-45453</key>
            <summary>Change name and usage of $_internalJs to $function</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="13201">Fixed</resolution>
                                        <assignee username="katherine.wu@mongodb.com">Katherine Wu</assignee>
                                    <reporter username="david.percy@mongodb.com">David Percy</reporter>
                        <labels>
                            <label>qopt-team</label>
                    </labels>
                <created>Thu, 9 Jan 2020 20:03:32 +0000</created>
                <updated>Sun, 29 Oct 2023 22:13:31 +0000</updated>
                            <resolved>Mon, 10 Feb 2020 15:05:33 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2842598" author="xgen-internal-githook" created="Fri, 7 Feb 2020 21:31:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;username&apos;: &apos;kaywux&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45453&quot; title=&quot;Change name and usage of $_internalJs to $function&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45453&quot;&gt;&lt;del&gt;SERVER-45453&lt;/del&gt;&lt;/a&gt; Change name and usage of &apos;$_internalJs&apos; to &apos;$function&apos;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/48e9e0edecd6a0359e809ba041c898244cb0cb01&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/48e9e0edecd6a0359e809ba041c898244cb0cb01&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2842597" author="xgen-internal-githook" created="Fri, 7 Feb 2020 21:31:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kaywux&apos;, &apos;name&apos;: &apos;Katherine Wu&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45453&quot; title=&quot;Change name and usage of $_internalJs to $function&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45453&quot;&gt;&lt;del&gt;SERVER-45453&lt;/del&gt;&lt;/a&gt; Change name and usage of &apos;$_internalJs&apos; to &apos;$function&apos;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/af509c51bc2373d589f4af67fc83ed9d621f2faf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/af509c51bc2373d589f4af67fc83ed9d621f2faf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2839507" author="xgen-internal-githook" created="Fri, 7 Feb 2020 17:21:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;username&apos;: &apos;kaywux&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45453&quot; title=&quot;Change name and usage of $_internalJs to $function&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45453&quot;&gt;&lt;del&gt;SERVER-45453&lt;/del&gt;&lt;/a&gt; Change name and usage of &apos;$_internalJs&apos; to &apos;$function&apos;&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 656313f6c949a5c49c42d080548067d5a8c37047.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e4b4eabe774fc5ab54e52761ca3293ca2a73340e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e4b4eabe774fc5ab54e52761ca3293ca2a73340e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2839502" author="xgen-internal-githook" created="Fri, 7 Feb 2020 17:21:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;username&apos;: &apos;kaywux&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45453&quot; title=&quot;Change name and usage of $_internalJs to $function&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45453&quot;&gt;&lt;del&gt;SERVER-45453&lt;/del&gt;&lt;/a&gt; Change name and usage of &apos;$_internalJs&apos; to &apos;$function&apos;&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit f728989e5fd60166670ff223532be27ca1c81164.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/6ed0f0548508c28e0e8102d9abc58d4e55463c72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/6ed0f0548508c28e0e8102d9abc58d4e55463c72&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2838876" author="katherine.wu" created="Fri, 7 Feb 2020 16:05:34 +0000"  >&lt;p&gt;I reverted my commit, it&apos;s in the commit queue now.&lt;/p&gt;</comment>
                            <comment id="2838600" author="william.schultz" created="Fri, 7 Feb 2020 15:54:23 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=katherine.wu&quot; class=&quot;user-hover&quot; rel=&quot;katherine.wu&quot;&gt;katherine.wu&lt;/a&gt; It looks like this commit may have broken some &lt;a href=&quot;https://evergreen.mongodb.com/task/mongodb_mongo_master_ubuntu1604_debug_display_sharding_656313f6c949a5c49c42d080548067d5a8c37047_20_02_07_15_07_48&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;sharding suites&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2837920" author="xgen-internal-githook" created="Fri, 7 Feb 2020 15:08:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;username&apos;: &apos;kaywux&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45453&quot; title=&quot;Change name and usage of $_internalJs to $function&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45453&quot;&gt;&lt;del&gt;SERVER-45453&lt;/del&gt;&lt;/a&gt; Change name and usage of &apos;$_internalJs&apos; to &apos;$function&apos;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/656313f6c949a5c49c42d080548067d5a8c37047&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/656313f6c949a5c49c42d080548067d5a8c37047&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2837919" author="xgen-internal-githook" created="Fri, 7 Feb 2020 15:07:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;username&apos;: &apos;kaywux&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45453&quot; title=&quot;Change name and usage of $_internalJs to $function&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45453&quot;&gt;&lt;del&gt;SERVER-45453&lt;/del&gt;&lt;/a&gt; Change name and usage of &apos;$_internalJs&apos; to &apos;$function&apos;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/f728989e5fd60166670ff223532be27ca1c81164&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/f728989e5fd60166670ff223532be27ca1c81164&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1082988">SERVER-45458</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="1221829">DOCS-13493</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1082881">SERVER-45454</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 22 Jan 2020 14:47:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 5 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Adds a new $function expression which can execute javascript code.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1594</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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.percy@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>katherine.wu@mongodb.com</customfieldvalue>
            <customfieldvalue>william.schultz@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwfzfr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hw43wn:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="3290">Query 2020-01-27</customfieldvalue>
    <customfieldvalue id="3291">Query 2020-02-10</customfieldvalue>
    <customfieldvalue id="3292">Query 2020-02-24</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16943"><![CDATA[Cloud]]></customfieldvalue>
    <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="16945"><![CDATA[Drivers]]></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_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|hwflp3:</customfieldvalue>

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