<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:52 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-1381] shell should be smart with shard clusters and replica sets</title>
                <link>https://jira.mongodb.org/browse/SERVER-1381</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;(1) the mongo shell prompt should tell one more about contect when connected.  for example if connected to a mongod and it is a member of a replica set, the prompt should tell you the server&apos;s state.  something like&lt;/p&gt;

&lt;p&gt;primary&amp;gt;&lt;/p&gt;

&lt;p&gt;or &lt;/p&gt;

&lt;p&gt;secondary&amp;gt;&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;arbiter&amp;gt;&lt;/p&gt;

&lt;p&gt;If connecting from the shell to an entire set, it will be important that the user know which node to which it is currently active.  So this could be something like&lt;/p&gt;

&lt;p&gt;myset:sf1:primary&amp;gt; &lt;/p&gt;

&lt;p&gt;where myset is the set name, sf1 host name to which we are connected, and primary the state of sf1 currently.&lt;/p&gt;

&lt;p&gt;likewise with sharding similar things.  if connected to a mongos, we should somehow indicate that.  maybe &lt;/p&gt;

&lt;p&gt;s&amp;gt;&lt;/p&gt;

&lt;p&gt;if connected to a mongo in a particular shard, indicate that&lt;/p&gt;

&lt;p&gt;shard3:sf1&amp;gt;&lt;/p&gt;

&lt;p&gt;if connected to a config server, indicate that &lt;/p&gt;

&lt;p&gt;cfg:sf1&amp;gt; &lt;/p&gt;

&lt;p&gt;not for 1.6 but useful later.&lt;/p&gt;

&lt;p&gt;also we can make this configurable &amp;#8211; we can have a prompt() js function that returns a string, with the above being a default.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12384">SERVER-1381</key>
            <summary>shell should be smart with shard clusters and replica sets</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="dwight@mongodb.com">Dwight Merriman</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Jul 2010 16:52:07 +0000</created>
                <updated>Fri, 3 Feb 2017 19:45:06 +0000</updated>
                            <resolved>Fri, 3 Feb 2017 19:45:06 +0000</resolved>
                                                                    <component>Shell</component>
                                        <votes>3</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="32522" author="raizyr" created="Fri, 13 May 2011 14:46:37 +0000"  >&lt;p&gt;Additionally, you should be able to add a configurable environment identifier ie. PROD/DEV/QA/STAGING.  Bash style color prompts would be helpful as well to avoid modifying a database on the wrong server.&lt;/p&gt;</comment>
                            <comment id="17905" author="eliot" created="Wed, 8 Sep 2010 19:00:28 +0000"  >&lt;p&gt;From skot: &lt;/p&gt;

&lt;p&gt;Have the default shell prompt show the server and db names. &lt;/p&gt;

&lt;p&gt;So when you are connected it would look like this: &lt;/p&gt;

&lt;p&gt;localhost/test&amp;gt; &lt;/p&gt;

&lt;p&gt;If the port is non-standard it should included (server:port). &lt;/p&gt;

&lt;p&gt;Optionally you could also include other notations for master (m), slave (s), replicaset (rs), mongos (p &amp;#8211; for proxy), ... &lt;/p&gt;

&lt;p&gt;We could even go as far as this &quot;localhost(p)-server1(m-rs)/test&amp;gt;&quot; to indicate that you are connected through a mongos (proxy) to a replicaset on the current master node (server1) on database test &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>2.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, 8 Sep 2010 19:00:28 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 40 weeks, 5 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>raizyr</customfieldvalue>
            <customfieldvalue>backlog-server-platform</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpjxj:</customfieldvalue>

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

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

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