<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:27 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>[GODRIVER-549] Add ObjectID struct tag for strings</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-549</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Add and implement a new struct tag that allows strings to be used as ObjectIDs. This will require adding support to the ObjectIDCodec and the StringCodec to recognize the struct tag and handle the values accordingly.&lt;/p&gt;</description>
                <environment></environment>
        <key id="602355">GODRIVER-549</key>
            <summary>Add ObjectID struct tag for strings</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kris.brandow@mongodb.com">Kristofer Brandow</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Mon, 10 Sep 2018 20:54:38 +0000</created>
                <updated>Mon, 6 Feb 2023 21:04:09 +0000</updated>
                                                                                                <votes>2</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="2420651" author="dannypaulg@gmail.com" created="Sun, 15 Sep 2019 17:29:42 +0000"  >&lt;p&gt;Really painful not having this feature. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.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;Usually we end up having duplicate structs, with just the ObjectID field being different.&lt;/p&gt;

&lt;p&gt;Would really love to have this feature.&#160;&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                            <comment id="2023641" author="kris.brandow" created="Thu, 4 Oct 2018 15:11:20 +0000"  >&lt;p&gt;The work in &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-514&quot; title=&quot;Implement ExtJSON Reader using custom JSON parser &amp;amp; Implement extJSONValueReader  and extJSONValueWriter&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-514&quot;&gt;&lt;del&gt;GODRIVER-514&lt;/del&gt;&lt;/a&gt; will provide functions to convert any type that can be converted to BSON to be converted to Extended JSON.&lt;/p&gt;</comment>
                            <comment id="2023127" author="eleroy" created="Thu, 4 Oct 2018 01:55:45 +0000"  >&lt;p&gt;Thanks Kris,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;That helps...&lt;/p&gt;

&lt;p&gt;Still a bit of a pain to have to convert documents to another to output to json. A flag on the ToExtJSON method to define how to parse ObjectID would be welcome.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2022597" author="kris.brandow" created="Wed, 3 Oct 2018 18:16:18 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eleroy&quot; class=&quot;user-hover&quot; rel=&quot;eleroy&quot;&gt;eleroy&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-533&quot; title=&quot;ObjectId is not read to string by Decode when asked&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-533&quot;&gt;&lt;del&gt;GODRIVER-533&lt;/del&gt;&lt;/a&gt; requests that during decoding a string be a valid destination for an ObjectID. This ticket covers that functionality while additionally adding functionality to ensure that when that struct field is encoded into BSON it does so as an ObjectID instead of as a BSON string.&lt;/p&gt;

&lt;p&gt;There are currently functions and methods in the objectid package that allow an objectid.ObjectID to be turned into a string representation. These are the &lt;tt&gt;Hex&lt;/tt&gt; method and the &lt;tt&gt;FromHex&lt;/tt&gt; function.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Kris&lt;/p&gt;</comment>
                            <comment id="2022432" author="eleroy" created="Wed, 3 Oct 2018 16:45:02 +0000"  >&lt;p&gt;This says to supersedes 533 but I think it is a bit of a different problem.&lt;/p&gt;

&lt;p&gt;It is quite a pain that the ObjectId parses as an array of integers instead of a string.&lt;/p&gt;

&lt;p&gt;Is there a workaround in the mean time?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="597071">GODRIVER-533</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="972957">GODRIVER-1354</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6k64:3zw</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>