<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:13 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-903] ListCollections and IndexView.List should include a type to unmarshal into</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-903</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Currently, ListCollections returns a cursor. In order to unmarshal this cursor, you have to create a struct that matches the output of ListCollections. It would be helpful if the Go driver provided this type.&lt;/p&gt;

&lt;p&gt;EDIT: A similar helper type was also added for IndexView.List in scope of this ticket.&lt;/p&gt;</description>
                <environment></environment>
        <key id="722638">GODRIVER-903</key>
            <summary>ListCollections and IndexView.List should include a type to unmarshal into</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="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="divjot.arora@mongodb.com">Divjot Arora</assignee>
                                    <reporter username="brian.samek@mongodb.com">Brian Samek</reporter>
                        <labels>
                            <label>rp-track</label>
                    </labels>
                <created>Mon, 25 Mar 2019 19:24:30 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:02 +0000</updated>
                            <resolved>Fri, 21 Aug 2020 19:53:18 +0000</resolved>
                                                    <fixVersion>1.5.0</fixVersion>
                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3352952" author="xgen-internal-githook" created="Fri, 21 Aug 2020 19:52:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Divjot Arora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;username&apos;: &apos;divjotarora&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-903&quot; title=&quot;ListCollections and IndexView.List should include a type to unmarshal into&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-903&quot;&gt;&lt;del&gt;GODRIVER-903&lt;/del&gt;&lt;/a&gt; Add helper types for listing collections and indexes (#481)&lt;/p&gt;

&lt;p&gt;Co-authored-by: kriti ravindran &amp;lt;kriti.ravindran@mongodb.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/84ccfda181e11caa385171ec1cc7e89a5eb439ea&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/84ccfda181e11caa385171ec1cc7e89a5eb439ea&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3337347" author="divjot.arora" created="Thu, 13 Aug 2020 16:43:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/481&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/481&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2935808" author="topher@develops.guru" created="Thu, 5 Mar 2020 03:10:11 +0000"  >&lt;p&gt;We could definitely add a new function and a new type under the covers to unpack the list. My goal would be to convert that to some sort of interactive index object. I figured since IndexModel{} already had a decent amount of functionality around it, in theory we could cast the list and unpack it into a pseudo-style IndexModel{}.&lt;/p&gt;</comment>
                            <comment id="2934849" author="divjot.arora" created="Wed, 4 Mar 2020 18:28:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=topher%40develops.guru&quot; class=&quot;user-hover&quot; rel=&quot;topher@develops.guru&quot;&gt;topher@develops.guru&lt;/a&gt; Per semver, we can&apos;t make backwards-breaking changes like that, but I am open to adding new API to do this. Also, IndexModel doesn&apos;t exactly capture the return type of the listIndexes command so we&apos;d have to introduce a new type to do this.&lt;/p&gt;</comment>
                            <comment id="2934750" author="topher@develops.guru" created="Wed, 4 Mar 2020 17:46:28 +0000"  >&lt;p&gt;It would be nice to modify ListCollections() AND Indexes().List() so that rather than getting a cursor, it just returned a slice of Collection{} and a slice of IndexModel{} respectively. Under the covers, a cursor could be used internally in that function.&lt;/p&gt;</comment>
                            <comment id="2191050" author="ian@10gen.com" created="Mon, 25 Mar 2019 20:08:52 +0000"  >&lt;p&gt;moving to the backlog, although in the meantime you can workaround by writing your own struct.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1921463">GODRIVER-2221</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hr774f:</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>