<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:52:58 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-82] Allow loading of persistent JavaScript functions</title>
                <link>https://jira.mongodb.org/browse/SERVER-82</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I would like the ability to reuse non-trivial JavaScript functions across multiple queries. For example, I would like to do something like &quot;db.require&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&quot; where x is the contents of a JavaScript library. Future queries would have access to any functions defined the given library. This scope could be maintained at the collection or database level. Either or both would be useful.&lt;/p&gt;</description>
                <environment>Any</environment>
        <key id="10183">SERVER-82</key>
            <summary>Allow loading of persistent JavaScript functions</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="jcrosby">Jon Crosby</reporter>
                        <labels>
                    </labels>
                <created>Sun, 31 May 2009 16:53:55 +0000</created>
                <updated>Sat, 15 Aug 2009 10:10:46 +0000</updated>
                            <resolved>Mon, 20 Jul 2009 09:13:19 +0000</resolved>
                                                                    <component>JavaScript</component>
                                        <votes>1</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10478" author="eliot" created="Sat, 15 Aug 2009 10:10:46 +0000"  >&lt;p&gt;closed since resolved 2+ weeks ago&lt;/p&gt;</comment>
                            <comment id="10289" author="eliot" created="Mon, 20 Jul 2009 09:13:19 +0000"  >&lt;p&gt;see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-157&quot; title=&quot;stored js libraries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-157&quot;&gt;&lt;del&gt;SERVER-157&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10288" author="sandstrom" created="Mon, 20 Jul 2009 07:54:48 +0000"  >&lt;p&gt;Perhaps related: &lt;a href=&quot;http://jira.mongodb.org/browse/SERVER-157&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://jira.mongodb.org/browse/SERVER-157&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10238" author="sandstrom" created="Wed, 8 Jul 2009 16:30:00 +0000"  >&lt;p&gt;Not sure if this is what you are asking for, but this may already be available. Although I don&apos;t know if it&apos;s possible to add files, or if the script has to be passed as an argument.&lt;/p&gt;

&lt;p&gt;mongo --help&lt;br/&gt;
usage: /usr/local/mongodb/bin/mongo &lt;span class=&quot;error&quot;&gt;&amp;#91;options&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;db address&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;file names&amp;#93;&lt;/span&gt;&lt;br/&gt;
db address can be:&lt;br/&gt;
   foo   =   foo database on local machine&lt;br/&gt;
   192.169.0.5/foo   =   foo database on 192.168.0.5 machine&lt;br/&gt;
   192.169.0.5:9999/foo   =   foo database on 192.168.0.5 machine on port 9999&lt;br/&gt;
options&lt;br/&gt;
 --shell run the shell after executing files&lt;br/&gt;
 -u &amp;lt;username&amp;gt;&lt;br/&gt;
 -p&amp;lt;password&amp;gt; - notice no space&lt;br/&gt;
 --host &amp;lt;host&amp;gt; - server to connect to&lt;br/&gt;
 --port &amp;lt;port&amp;gt; - port to connect to&lt;br/&gt;
 --nodb don&apos;t connect to mongo program on startup.  No &apos;db address&apos; arg expected.&lt;br/&gt;
 --eval &amp;lt;script&amp;gt; evaluate javascript.&lt;br/&gt;
file names: a list of files to run.  will exit after unless --shell is specified&lt;/p&gt;

</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 8 Jul 2009 16:30:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 27 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_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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 years, 27 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>jcrosby</customfieldvalue>
            <customfieldvalue>sandstrom</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpy5z:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23582</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|ht0lqf:</customfieldvalue>

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