<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:33:56 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-305] reflection panics when doing equality comparisons </title>
                <link>https://jira.mongodb.org/browse/GODRIVER-305</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/bson/encode.go#L466&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/master/bson/encode.go#L466&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;changing this line to use reflect.DeepEqual() rather than == fixed things for me, but I think normal equals should be fine.&lt;/p&gt;</description>
                <environment></environment>
        <key id="516179">GODRIVER-305</key>
            <summary>reflection panics when doing equality comparisons </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="13201">Fixed</resolution>
                                        <assignee username="kris.brandow@mongodb.com">Kristofer Brandow</assignee>
                                    <reporter username="sam.kleinman">Sam Kleinman</reporter>
                        <labels>
                            <label>FreeMonitoring</label>
                            <label>evg</label>
                    </labels>
                <created>Sat, 24 Mar 2018 22:40:46 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:42 +0000</updated>
                            <resolved>Wed, 9 May 2018 18:14:00 +0000</resolved>
                                    <version>0.0.2</version>
                                    <fixVersion>0.0.4</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1872488" author="kris.brandow" created="Tue, 24 Apr 2018 13:42:17 +0000"  >&lt;p&gt;We&apos;re going to add add bson.Zeroer, &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-359&quot; title=&quot;Add bson.Zeroer types for comparing structs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-359&quot;&gt;&lt;del&gt;GODRIVER-359&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1872363" author="samk" created="Tue, 24 Apr 2018 11:30:55 +0000"  >&lt;p&gt;Sorry for not following up on this earlier. What&apos;s the outcome/plan for doing this? &lt;/p&gt;</comment>
                            <comment id="1861670" author="kris.brandow" created="Wed, 11 Apr 2018 17:58:30 +0000"  >&lt;p&gt;Ah, yeah we don&apos;t have it yet, I will add it in the next round of BSON library updates.&lt;/p&gt;</comment>
                            <comment id="1861599" author="thomas.delacour" created="Wed, 11 Apr 2018 17:19:25 +0000"  >&lt;p&gt;So has the decision been made to not use &lt;tt&gt;DeepEqual&lt;/tt&gt;? Also, could you point me to &lt;tt&gt;bson.Zeroer&lt;/tt&gt;? I can&apos;t seem to find it in the godoc. &lt;/p&gt;</comment>
                            <comment id="1855908" author="kris.brandow" created="Thu, 5 Apr 2018 02:26:06 +0000"  >&lt;p&gt;For this we might be better served with an implementation like this: &lt;a href=&quot;https://github.com/golang/go/issues/11939&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/golang/go/issues/11939&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The main reason I don&apos;t want to use reflect.DeepEqual is because it traverses into private properties and in some cases values aren&apos;t equal to themselves which could cause some inconsistent behavior. If users want to omit an empty struct then they&apos;ll need to make it a &lt;tt&gt;bson.Zeroer&lt;/tt&gt; or whatever we call it.&lt;/p&gt;</comment>
                            <comment id="1845077" author="kris.brandow" created="Mon, 26 Mar 2018 15:15:00 +0000"  >&lt;p&gt;Can you provide the panic stack trace?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="522222">GODRIVER-344</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="525400">GODRIVER-359</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|htkrrz:</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>