<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:59 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>[CDRIVER-2356] Refactor aggregation with serverId</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2356</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The code path from mongoc_collection_aggregate when &quot;opts&quot; contains &quot;serverId&quot; calls _mongoc_get_server_id_from_opts twice, once with empty opts and once with the caller&apos;s opts.&lt;/p&gt;</description>
                <environment></environment>
        <key id="457106">CDRIVER-2356</key>
            <summary>Refactor aggregation with serverId</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                            <label>bgtrack</label>
                    </labels>
                <created>Fri, 10 Nov 2017 16:07:43 +0000</created>
                <updated>Tue, 7 Mar 2023 11:01:21 +0000</updated>
                            <resolved>Tue, 7 Mar 2023 11:01:21 +0000</resolved>
                                                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5254929" author="JIRAUSER1269924" created="Tue, 7 Mar 2023 11:01:21 +0000"  >&lt;p&gt;Closing as per above comments.&lt;/p&gt;</comment>
                            <comment id="5251932" author="kevin.albertson" created="Mon, 6 Mar 2023 15:31:49 +0000"  >&lt;p&gt;This may have changed, but it still appears that there is double parsing of &quot;serverId&quot;.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;_mongoc_aggregate&lt;/tt&gt; &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1c2da95f7b4734eb39b3105bea55e3692a44a35a/src/libmongoc/src/mongoc/mongoc-aggregate.c#L251-L252&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;calls &lt;tt&gt;_mongoc_aggregate_opts_parse&lt;/tt&gt;&lt;/a&gt; which parses serverId from options.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;_mongoc_aggregate&lt;/tt&gt; calls &lt;tt&gt;_mongoc_cursor_cmd_new&lt;/tt&gt; calls &lt;tt&gt;_mongoc_cursor_new_with_opts&lt;/tt&gt; &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1c2da95f7b4734eb39b3105bea55e3692a44a35a/src/libmongoc/src/mongoc/mongoc-cursor.c#L303-L310&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;calls &lt;tt&gt;_mongoc_get_server_id_from_opts&lt;/tt&gt;&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;I suggest closing. The refactor may save remove a duplicate search, but IMO does not provide much value.&lt;/p&gt;</comment>
                    </comments>
                    <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|htbgl3:</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>