<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:32 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-4631] Copy try.mongodb.org in to tutorial() function in shell</title>
                <link>https://jira.mongodb.org/browse/SERVER-4631</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Would be a nice way to get people started. Would also be cool to add some optional modules such as tutorial_mr(), tutorial_geo() etc.&lt;/p&gt;</description>
                <environment></environment>
        <key id="27809">SERVER-4631</key>
            <summary>Copy try.mongodb.org in to tutorial() function in shell</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-execution">Backlog - Storage Execution Team</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Fri, 6 Jan 2012 00:07:25 +0000</created>
                <updated>Tue, 6 Dec 2022 05:37:51 +0000</updated>
                            <resolved>Wed, 16 Nov 2016 19:59:14 +0000</resolved>
                                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="117764" author="siddharth.singh@10gen.com" created="Wed, 9 May 2012 18:04:00 +0000"  >&lt;p&gt;Hey Nosh,&lt;/p&gt;

&lt;p&gt;    Andy and I had a chat about this and though this is a good proposal, our shell code as of now is not very extensible and including more things to the global namespace might not be a very good idea. We need to clean up our shell code first, before merging anything new to it.  Refactoring will also make it easier going forward to add optional modules such as tutorial_mr(), tutorial_geo() as you suggested.&lt;/p&gt;

&lt;p&gt;I am going to mark this as &apos;Won&apos;t fix&apos; and close it. If you feel strongly that we should have this feature in our shell we can always revisit this.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="93874" author="siddharth.singh@10gen.com" created="Wed, 29 Feb 2012 19:36:48 +0000"  >&lt;p&gt;LGTM.&lt;/p&gt;</comment>
                            <comment id="89642" author="nosh" created="Fri, 17 Feb 2012 22:35:41 +0000"  >&lt;p&gt;changed it to use postfix++&lt;/p&gt;

&lt;p&gt;but the reason why I usually use variable = variable + 1 is that it always clear to me what the intention of the series of commands is &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/nosh/mongo/commit/37e2298244a7fb6aa2f2818ebbf9ac3dd45d5910&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/nosh/mongo/commit/37e2298244a7fb6aa2f2818ebbf9ac3dd45d5910&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="88512" author="redbeard0531" created="Wed, 15 Feb 2012 02:39:17 +0000"  >&lt;p&gt;Please use postfix ++/-- especially when updating a member:&lt;/p&gt;

&lt;p&gt;currentTutorial.currentState++;&lt;/p&gt;

&lt;p&gt;rather than:&lt;/p&gt;

&lt;p&gt;++currentTutorial.currentState;&lt;/p&gt;

&lt;p&gt;since you are not incremental currentTutorial.&lt;/p&gt;

&lt;p&gt;Edit: to clarify, this is stylistic not syntastic.&lt;/p&gt;</comment>
                            <comment id="88429" author="siddharth.singh@10gen.com" created="Tue, 14 Feb 2012 22:48:50 +0000"  >&lt;p&gt; @nosh : some optional remarks:&lt;/p&gt;

&lt;p&gt;  1) No spaces between the keyword function and the first parenthesis. So function() but not function (). I see both the styles in the same file. In just your piece of code, you mixed these styles too. To me, function() looks easier to read.&lt;/p&gt;

&lt;p&gt;  2) currentTutorial.currentState = currentTutorial.currentState + 1;  could be shorthanded to ++currentTutorial.currentState;   Improves readability.&lt;/p&gt;

&lt;p&gt;  3) currentTutorial.currentState = currentTutorial.currentState - 2; could be shorthanded to currentTutorial.currentState -= 2;  I was also curious why you subtract 2 and then increment by 1 instead of directly decrementing by 1. I could not think of any specific reason for it but may be I am missing something.&lt;/p&gt;

&lt;p&gt;  4) You might want to rename the property variable to something (for eg. chapterNo) which gives it more context. I meant to give you an example and hence used the word property.&lt;/p&gt;

</comment>
                            <comment id="88394" author="nosh" created="Tue, 14 Feb 2012 21:25:09 +0000"  >&lt;p&gt;Thanks for the suggestion - made the change in this commit:&lt;br/&gt;
&lt;a href=&quot;https://github.com/nosh/mongo/commit/9c37e01f4c9158b7dc883f1ca62398967072cd7e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/nosh/mongo/commit/9c37e01f4c9158b7dc883f1ca62398967072cd7e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="88304" author="siddharth.singh@10gen.com" created="Tue, 14 Feb 2012 18:27:24 +0000"  >&lt;p&gt;LGTM with minor changes. Comments below: &lt;/p&gt;

&lt;p&gt;1) Eval() should be avoided in the function shellhelper.next. The following is a better of doing it : &lt;br/&gt;
   var property = &apos;t&apos; + currentTutorial.currentState;&lt;br/&gt;
   currentTutorial&lt;span class=&quot;error&quot;&gt;&amp;#91;property&amp;#93;&lt;/span&gt;();&lt;/p&gt;

&lt;p&gt;2) Same comment as (1) in shellhelper.back().&lt;/p&gt;
</comment>
                            <comment id="87752" author="eliot" created="Mon, 13 Feb 2012 04:53:17 +0000"  >&lt;p&gt;@siddharth can you code review and if it looks good we&apos;ll merge&lt;/p&gt;</comment>
                            <comment id="87711" author="nosh" created="Mon, 13 Feb 2012 00:07:40 +0000"  >&lt;p&gt;Running &apos;tutorial&apos; starts a tutorial that go through the same steps as&lt;br/&gt;
&lt;a href=&quot;http://try.mongodb.org&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://try.mongodb.org&lt;/a&gt;&lt;br/&gt;
&apos;next&apos; and &apos;back&apos; navigate through the tutorial&lt;/p&gt;

&lt;p&gt;Should also be easy to add new tutorials e.g. &quot;tutorial geo&quot; by following the example for the basic tutorial that is in there&lt;/p&gt;

&lt;p&gt;pull request submitted:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/pull/175&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/175&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/nosh/mongo/commit/f88164720c091610161658e10749edec633b6f9f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/nosh/mongo/commit/f88164720c091610161658e10749edec633b6f9f&lt;/a&gt;&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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25136"><![CDATA[Storage Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 13 Feb 2012 00:07:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 41 weeks 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>
                            11 years, 41 weeks 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-execution</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>nosh</customfieldvalue>
            <customfieldvalue>siddharth.singh@10gen.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrohkv:</customfieldvalue>

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

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

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