<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:54 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-1744] renameCollection &quot;to&quot; param as an array</title>
                <link>https://jira.mongodb.org/browse/SERVER-1744</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Change renameCollection to support an array of collection names as the destination(s) so that you don&apos;t delete the destination collection.&lt;/p&gt;

&lt;p&gt;That would support a primary collection with some postfix value (like a number) of &quot;archived&quot; collections. You could do something like this:&lt;/p&gt;

{renameCollection:&apos;log&quot;, to:[&quot;log.1&quot;, &quot;log.2&quot;]}

&lt;p&gt;(much like log rotation)&lt;/p&gt;

&lt;p&gt;Maybe this would be better as a new command called &quot;moveCollection&quot;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13021">SERVER-1744</key>
            <summary>renameCollection &quot;to&quot; param as an array</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-query">Backlog - Query Team</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Sep 2010 20:25:58 +0000</created>
                <updated>Tue, 6 Dec 2022 05:48:16 +0000</updated>
                            <resolved>Fri, 11 Aug 2017 18:51:58 +0000</resolved>
                                    <version>1.7.0</version>
                                                    <component>Write Ops</component>
                                        <votes>2</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="17833" author="eliot" created="Tue, 7 Sep 2010 02:55:37 +0000"  >&lt;p&gt;Cursors are invalidated.&lt;/p&gt;

&lt;p&gt;This is the kind of stuff db.eval is intended for.&lt;br/&gt;
Simple ops you want to do atomically, so not sure it makes sense to add too many helpers.&lt;/p&gt;</comment>
                            <comment id="17832" author="scotthernandez" created="Tue, 7 Sep 2010 02:47:52 +0000"  >&lt;p&gt;That is just one example. It seems more compelling than my need to basically swap two collections.&lt;/p&gt;

&lt;p&gt;I want this change: coll.new -&amp;gt; coll -&amp;gt; coll.old (where only coll.new and coll exist at the beginning)&lt;/p&gt;

&lt;p&gt;You are correct, I could do something with an eval. &lt;/p&gt;

&lt;p&gt;Does renameCollection currently invalidate cursors on those collections?&lt;/p&gt;</comment>
                            <comment id="17831" author="eliot" created="Tue, 7 Sep 2010 02:42:14 +0000"  >&lt;p&gt;will leave open to see if its common&lt;/p&gt;</comment>
                            <comment id="17830" author="eliot" created="Tue, 7 Sep 2010 02:41:56 +0000"  >&lt;p&gt;I see, that might be a bit too specific.&lt;br/&gt;
You could do it atomically if you use db.eval now&lt;/p&gt;

&lt;p&gt;db.eval( function(){&lt;br/&gt;
   for ( i=6; i&amp;gt;0; i-- ){&lt;br/&gt;
     rename i to i+ 1&lt;br/&gt;
   rename log to log1&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="17829" author="scotthernandez" created="Tue, 7 Sep 2010 02:38:57 +0000"  >&lt;p&gt;log -&amp;gt; log.1&lt;br/&gt;
log.1 -&amp;gt; log.2&lt;br/&gt;
....&lt;/p&gt;</comment>
                            <comment id="17827" author="eliot" created="Tue, 7 Sep 2010 02:16:36 +0000"  >&lt;p&gt;Have to admit I don&apos;t understand what you&apos;re asking for.&lt;br/&gt;
What exactly would &lt;/p&gt;
{renameCollection:&apos;log&quot;, to:[&quot;log.1&quot;, &quot;log.2&quot;]} 
&lt;p&gt;do&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="37876">SERVER-5768</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25143"><![CDATA[Query]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 7 Sep 2010 02:16:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 24 weeks, 2 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 24 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-query</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpfsf:</customfieldvalue>

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

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

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