<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:17 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-1854] Make &quot;ErrNilDocument&quot; and &quot;ErrNilValue&quot; more specific</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1854</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;The current &lt;tt&gt;ErrNilDocument&lt;/tt&gt; and &lt;tt&gt;ErrNilValue&lt;/tt&gt; error values sometimes leave users confused because the errors don&apos;t say anything about what part of the input document or value was &lt;tt&gt;nil&lt;/tt&gt;. Replace all uses of &lt;tt&gt;ErrNilDocument&lt;/tt&gt; and &lt;tt&gt;ErrNilValue&lt;/tt&gt; with a new error type &lt;tt&gt;InvalidArgumentError&lt;/tt&gt; that gives more information about why the input is invalid (e.g. &quot;id field cannot be nil&quot; or &quot;document at index 4 is nil&quot;).&lt;/p&gt;

&lt;p&gt;Definition of done:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Remove &lt;tt&gt;ErrNilDocument&lt;/tt&gt; and &lt;tt&gt;ErrNilValue&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;Add a new type &lt;tt&gt;InvalidArgumentError&lt;/tt&gt; that&lt;/li&gt;
	&lt;li&gt;Make the new &lt;tt&gt;InvalidArgumentError&lt;/tt&gt; satisfy the &lt;a href=&quot;https://pkg.go.dev/errors#Is&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;errors.Is&lt;/a&gt; and &lt;a href=&quot;https://pkg.go.dev/errors#As&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;errors.As&lt;/a&gt; APIs by implementing &lt;tt&gt;Is&lt;/tt&gt; and &lt;tt&gt;As&lt;/tt&gt; functions.&lt;/li&gt;
	&lt;li&gt;Update all uses of &lt;tt&gt;ErrNilDocument&lt;/tt&gt; and &lt;tt&gt;ErrNilValue&lt;/tt&gt; to return an &lt;tt&gt;InvalidArgumentError&lt;/tt&gt; with additional information about what part of the input was invalid.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Open questions:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Should we remove the &lt;tt&gt;ErrNilDocument&lt;/tt&gt; and &lt;tt&gt;ErrNilValue&lt;/tt&gt; errors or keep them and wrap them with an &lt;tt&gt;InvalidArgumentError&lt;/tt&gt;?&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1607435">GODRIVER-1854</key>
            <summary>Make &quot;ErrNilDocument&quot; and &quot;ErrNilValue&quot; more specific</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="isabella.siu@mongodb.com">Isabella Siu</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Feb 2021 16:27:39 +0000</created>
                <updated>Mon, 8 Jan 2024 21:11:50 +0000</updated>
                                                            <fixVersion>2.0.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="674220">GODRIVER-773</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2214342">GODRIVER-2704</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_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:s0000yzu4</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>