<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:40 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-2460] Consider always encoding $inc value as minimum integer size</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2460</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;We currently encode some&#160;&lt;tt&gt;uint&lt;/tt&gt; Go types (&lt;tt&gt;uint&lt;/tt&gt;, &lt;tt&gt;uint32&lt;/tt&gt; and &lt;tt&gt;uint64&lt;/tt&gt;) as &lt;tt&gt;Int64&lt;/tt&gt; in BSON &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/d02ee16477b0cfdbe6d47595a552f1d1f8696f32/bson/bsoncodec/uint_codec.go#L59&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;by default&lt;/a&gt;. It would probably make more sense to encode them as an &lt;tt&gt;Int32&lt;/tt&gt; if possible by default. This behavior is controlled by the &lt;tt&gt;EncodeToMinSize&lt;/tt&gt; &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/d02ee16477b0cfdbe6d47595a552f1d1f8696f32/bson/bsoncodec/uint_codec.go#L21&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;option&lt;/a&gt; on &lt;tt&gt;UIntCodec&lt;/tt&gt;. Interestingly, our &lt;tt&gt;mgocompat&lt;/tt&gt; Registry &lt;em&gt;does&lt;/em&gt; have &lt;tt&gt;EncodeToMinSize&lt;/tt&gt; as true &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/d02ee16477b0cfdbe6d47595a552f1d1f8696f32/bson/mgocompat/registry.go#L64&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;by default&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We cannot change the default behavior without breaking current users&apos; code.&lt;/p&gt;

&lt;p&gt;Open questions:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Are there any other operations we should try to encode the minimum size integer, or is it only &lt;tt&gt;$inc&lt;/tt&gt;?&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2069926">GODRIVER-2460</key>
            <summary>Consider always encoding $inc value as minimum integer size</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="benji.rewis@mongodb.com">Benji Rewis</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Jun 2022 19:24:40 +0000</created>
                <updated>Mon, 8 Jan 2024 21:11:48 +0000</updated>
                                                            <fixVersion>2.0.0</fixVersion>
                                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                        <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5006R00001ltQIJQA2]]]></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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>GODRIVER-1787</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6jqv:s0000yzu2</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>