<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:23 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-1899] Remove unexported method from Session interface</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1899</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;This makes mocking the interface tricky, since any imported mock will miss method&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/mongo/session.go#L129&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;b&gt;session&lt;/b&gt;&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1633372">GODRIVER-1899</key>
            <summary>Remove unexported method from Session interface</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13203">Gone away</resolution>
                                        <assignee username="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="dsmontoyam@gmail.com">Daniel Montoya</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Feb 2021 05:37:39 +0000</created>
                <updated>Fri, 27 Oct 2023 20:01:17 +0000</updated>
                            <resolved>Thu, 25 Mar 2021 12:00:00 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3683382" author="backlog-server-pm" created="Thu, 25 Mar 2021 12:00:00 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to comment on this if you&apos;re able to provide more information.&lt;/p&gt;</comment>
                            <comment id="3657174" author="benji.rewis" created="Wed, 10 Mar 2021 16:49:24 +0000"  >&lt;p&gt;While we appreciate that mocking the Session interface might be of use in unit testing, we&#8217;d rather not allow users to do this.&lt;/p&gt;

&lt;p&gt;Mocking a Session for testing purposes can leave you vulnerable to changes in Session behavior. We may put out a patch that changes Session behavior and puts a user&#8217;s mock implementation out of line with our own.&lt;/p&gt;

&lt;p&gt;If testing the behavior of your application with Sessions is a must, we recommend that you use an integration test. That test could mimic the behavior of one of your users interacting with a Session.&lt;/p&gt;</comment>
                            <comment id="3656822" author="JIRAUSER1258835" created="Wed, 10 Mar 2021 14:50:33 +0000"  >&lt;p&gt;I just want to mock the Session interface, so I can run some unit tests without connecting to the server. I would like to assert I&apos;m calling the right methods on each case.&lt;/p&gt;</comment>
                            <comment id="3643053" author="benji.rewis" created="Tue, 2 Mar 2021 21:00:58 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dsmontoyam%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;dsmontoyam@gmail.com&quot;&gt;dsmontoyam@gmail.com&lt;/a&gt;! Thanks again for your request.&lt;/p&gt;

&lt;p&gt;The unexported session method in the Session interface was intentional in the original design. We had not expected users to implement the interface manually. &lt;/p&gt;

&lt;p&gt;Could you elaborate on your need to mock the Session interface? Perhaps there is a better solution we could recommend.&lt;/p&gt;</comment>
                            <comment id="3634886" author="kevin.albertson" created="Thu, 25 Feb 2021 14:21:38 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dsmontoyam%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;dsmontoyam@gmail.com&quot;&gt;dsmontoyam@gmail.com&lt;/a&gt;, thank you for filing this request. We will look into this soon.&lt;/p&gt;

&lt;p&gt;And no worries, major is the default priority for new tickets.&lt;/p&gt;</comment>
                            <comment id="3634356" author="JIRAUSER1258835" created="Thu, 25 Feb 2021 05:43:05 +0000"  >&lt;p&gt;I&apos;m so sorry for the priority major. It seems I can&apos;t change it once created.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <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_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|hyi7mf:</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>