<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:22 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-1201] shell support for UUID (binary subtype 3)</title>
                <link>https://jira.mongodb.org/browse/SERVER-1201</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Native support for GUID&apos;s would be nice. Right now ObjectId&apos;s are the only (native) way to manage unique identifiers. But in some projects ot may not be possible to use ObjectId&apos;s - either due to legacy code or other constrains.&lt;/p&gt;

&lt;p&gt;My pet reason for not using ObjectId&apos;s is that they leak persistency concerns into my domain entities. By using GUID&apos;s I avoid making the code dependent directly on a class defined by MongoDB (using the Norm C# driver).&lt;/p&gt;

&lt;p&gt;It &lt;b&gt;is&lt;/b&gt; possible to use GUID&apos;s but they are stored as binary blobs and as such one cannot read and use the values through the shell while debugging.&lt;/p&gt;</description>
                <environment>Any</environment>
        <key id="12092">SERVER-1201</key>
            <summary>shell support for UUID (binary subtype 3)</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="3">Duplicate</resolution>
                                        <assignee username="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="jornwildt">J&#248;rn Wildt</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Jun 2010 02:53:31 +0000</created>
                <updated>Thu, 14 Apr 2016 15:19:13 +0000</updated>
                            <resolved>Fri, 15 Jan 2016 19:53:27 +0000</resolved>
                                                                    <component>JavaScript</component>
                                        <votes>6</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="239786" author="caleb.jones@disney.com" created="Mon, 14 Jan 2013 22:18:26 +0000"  >&lt;p&gt;This is causing us some pain as we switched our UUIDs over to use BinData() from string values when our tests showed a 15-25% improvement in index size as collection sizes approached 10 million documents. It becomes a pain when trying to poke around in the MongoShell when all we see back is BinData(3,&quot;BASE64&quot;).&lt;/p&gt;</comment>
                            <comment id="45022" author="vboivie" created="Thu, 28 Jul 2011 10:13:06 +0000"  >&lt;p&gt;I have made a github pull request at &lt;a href=&quot;https://github.com/mongodb/mongo/pull/72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/72&lt;/a&gt; that at least displays the uuid bindata better.&lt;/p&gt;
</comment>
                            <comment id="31735" author="eliot" created="Mon, 9 May 2011 22:05:09 +0000"  >&lt;p&gt;Is there a clean commit that adds the needed code?&lt;/p&gt;</comment>
                            <comment id="31732" author="dnevil" created="Mon, 9 May 2011 21:48:37 +0000"  >&lt;p&gt;I would be happy to split out the UUID-specific code in order to push it into the main branch.&lt;/p&gt;</comment>
                            <comment id="29886" author="samkass" created="Wed, 27 Apr 2011 17:48:59 +0000"  >&lt;p&gt;Any chance the UUID-specific shell stuff could get accepted into the next Mongo baseline version?  UUID handling is currently awful in the shell and it&apos;s a relatively widely-used data type...&lt;/p&gt;</comment>
                            <comment id="29861" author="dnevil" created="Wed, 27 Apr 2011 16:28:37 +0000"  >&lt;p&gt;Sam, thanks for the kind words, glad this modification will be useful to others.  Actually, the implementation for UUID representation in BSON already existed in MongoDB 1.7.  I simply modified the shell to make it easy to use.  The only types I added were the IP Address and MAC Address types.&lt;/p&gt;</comment>
                            <comment id="28284" author="samkass" created="Thu, 7 Apr 2011 19:59:19 +0000"  >&lt;p&gt;Daris, the UUID change seems especially valuable since &quot;new UUID&quot; in the shell often does not do what is expected... saving one in an object via the CLI will not actually save the data, nor auto-translate it into a BinData(3, &quot;-&lt;del&gt;base64&lt;/del&gt;-&quot;) representation.  And the Java driver makes it very easy to create UUIDs which &lt;b&gt;DO&lt;/b&gt; show up as BinData(3,)&apos;s.&lt;/p&gt;

&lt;p&gt;It would be awfully nice if UUID was just a synonym for BinData type 3 in the shell, with the underlying representation staying how it is in Mongo 1.8, IMHO.  If all BinData type 3&apos;s could display as UUID objects within the shell, and all UUID&apos;s entered were stored as BinData type 3&apos;s, it would work seamlessly with existing mappings.&lt;/p&gt;

&lt;p&gt;Also a consideration, though, is least-significant-byte vs. most-significant-byte ordering, as well as least-significant-longword vs most-significant-longword when displaying the hex values of UUIDs.&lt;/p&gt;</comment>
                            <comment id="26964" author="dnevil" created="Mon, 28 Mar 2011 15:20:16 +0000"  >&lt;p&gt;I&apos;ve created a branch that makes the UUID() type a native type of the javascript mongodb shell.  See &lt;a href=&quot;http://jira.mongodb.org/browse/SERVER-2413&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://jira.mongodb.org/browse/SERVER-2413&lt;/a&gt;.  I&apos;ve done the same for the PHP driver, see &lt;a href=&quot;https://github.com/redmeadowman/mongo-php-driver&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/redmeadowman/mongo-php-driver&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="14680" author="zippy1981" created="Fri, 11 Jun 2010 14:05:14 +0000"  >&lt;p&gt;We&apos;ve been discussing uuid support on the dev list:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://jira.mongodb.org/browse/SERVER-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://jira.mongodb.org/browse/SERVER-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14654" author="auto" created="Wed, 9 Jun 2010 17:50:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;astaple&apos;, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1201&quot; title=&quot;shell support for UUID (binary subtype 3)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1201&quot;&gt;&lt;del&gt;SERVER-1201&lt;/del&gt;&lt;/a&gt; test case&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/8b0b62887561ae1221d9ab8eb63ce04fc2b73126&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/8b0b62887561ae1221d9ab8eb63ce04fc2b73126&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14616" author="jornwildt" created="Tue, 8 Jun 2010 08:55:58 +0000"  >&lt;p&gt;Now that I see that MongoDB have different binary subtypes, I think the request should be extended to all those (known) subtypes. MD5 should be displayable too.&lt;/p&gt;

&lt;p&gt;All of this could even be solved if binary values with less than X bytes were shown as hex.&lt;/p&gt;

&lt;p&gt;Just brainstorming ...&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="17567">SERVER-3153</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="17669">SERVER-3168</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.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, 9 Jun 2010 17:50:39 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 5 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>auto</customfieldvalue>
            <customfieldvalue>caleb.jones@disney.com</customfieldvalue>
            <customfieldvalue>dnevil</customfieldvalue>
            <customfieldvalue>backlog-server-platform</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>zippy1981</customfieldvalue>
            <customfieldvalue>jornwildt</customfieldvalue>
            <customfieldvalue>samkass</customfieldvalue>
            <customfieldvalue>vboivie</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrplpz:</customfieldvalue>

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

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

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