<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:04:32 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>[CXX-1985] Support for &apos;authorizedDatabases&apos; option</title>
                <link>https://jira.mongodb.org/browse/CXX-1985</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>
&lt;!--This block of HTML and the script in it auto-populate the SPEC ticket description on page load.--&gt;
    &lt;div id=&quot;script-target-wrapper&quot;&gt;
        &lt;br&gt;
        &lt;b&gt;DRIVERS Ticket Description&lt;/b&gt;
        &lt;div id=&quot;script-target&quot;&gt;
            Script Target - If you can read this text, the script has failed
            &lt;script&gt;
                $.get(&apos;https://jira.mongodb.org/browse/DRIVERS-685&apos;, function(data) {
                    var description = $(data).find(&quot;#description-val&quot;);
                    description.find(&quot;#script-target-wrapper&quot;).remove();
                    $(&quot;#script-target&quot;).html(description);
                });
            &lt;/script&gt;
        &lt;/div&gt;
    &lt;/div&gt;

</description>
                <environment></environment>
        <key id="1310966">CXX-1985</key>
            <summary>Support for &apos;authorizedDatabases&apos; option</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="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Apr 2020 15:08:47 +0000</created>
                <updated>Sat, 28 Oct 2023 11:27:04 +0000</updated>
                            <resolved>Thu, 12 Nov 2020 11:07:49 +0000</resolved>
                                                    <fixVersion>3.7.0</fixVersion>
                    <fixVersion>3.7.0-beta1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3487149" author="xgen-internal-githook" created="Thu, 12 Nov 2020 11:07:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1985&quot; title=&quot;Support for &amp;#39;authorizedDatabases&amp;#39; option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1985&quot;&gt;&lt;del&gt;CXX-1985&lt;/del&gt;&lt;/a&gt; Rename filter to opts for list_databases (#745)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/b0f3fc7e94b5c1418d6037cff6a99b80cf5dccbc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/b0f3fc7e94b5c1418d6037cff6a99b80cf5dccbc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3482430" author="kevin.albertson" created="Mon, 9 Nov 2020 20:28:19 +0000"  >&lt;p&gt;PR:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/745&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/745&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3405439" author="kevin.albertson" created="Tue, 22 Sep 2020 15:47:23 +0000"  >&lt;p&gt;The existing &lt;tt&gt;client::list_databases&lt;/tt&gt; accepts a &lt;tt&gt;filter&lt;/tt&gt;, but treats it in an odd way. This was introduced in &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1433&quot; title=&quot;Implement Database Enumeration spec&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1433&quot;&gt;&lt;del&gt;CXX-1433&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; cursor list_databases(const bsoncxx::document::view_or_value filter) const;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;However, the &lt;tt&gt;filter&lt;/tt&gt; here is appended to the &lt;tt&gt;listDatabases&lt;/tt&gt; command directly. To pass a filter, &lt;tt&gt;filter&lt;/tt&gt; would really need to be the document with the key &quot;filter&quot;:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;filter&quot;: { &quot;name&quot;: &quot;admin&quot; } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;So, technically, users can already pass the &quot;authorizedDatabases&quot; option through the &lt;tt&gt;filter&lt;/tt&gt; argument. For that overload. But it is misnamed, and I think we should rename &lt;tt&gt;filter&lt;/tt&gt; to &lt;tt&gt;document_opts&lt;/tt&gt; or similar, and possibly deprecate it.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;list_database_names&lt;/tt&gt; however, interprets its &lt;tt&gt;filter&lt;/tt&gt; argument as a document filter.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="766440">DRIVERS-685</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="427503">CXX-1433</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|hr6m1r:</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>