<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:31 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-543] Add pointers to parent objects to mongocxx classes</title>
                <link>https://jira.mongodb.org/browse/CXX-543</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;If I have a mongocxx::collection/database object, it&apos;d be very helpful to be able to get the parent object so that you can walk from collection to database to client without having to pass lots of references around in function parameters.&lt;/p&gt;</description>
                <environment></environment>
        <key id="185655">CXX-543</key>
            <summary>Add pointers to parent objects to mongocxx classes</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="jonathan.reams@mongodb.com">Jonathan Reams</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Feb 2015 15:00:29 +0000</created>
                <updated>Tue, 23 Feb 2016 18:24:36 +0000</updated>
                            <resolved>Tue, 23 Feb 2016 18:24:36 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1182182" author="acm" created="Tue, 23 Feb 2016 18:24:36 +0000"  >&lt;p&gt;It doesn&apos;t seem like we want to do this.&lt;/p&gt;</comment>
                            <comment id="835037" author="adam.midvidy" created="Mon, 23 Feb 2015 18:40:14 +0000"  >&lt;p&gt;Users are responsible for ensuring that a collection/database lifetime is a subset of its parent client. &lt;/p&gt;

&lt;p&gt;Collections, however, do not depend on their parent databases, so a method for a collection to hand back a database object would be problematic.&lt;/p&gt;

&lt;p&gt;EDIT:&lt;/p&gt;

&lt;p&gt;And yes, users manually managing lifetime of driver objects was a deliberate decision. I wasn&apos;t really part of the discussion, but the rest of the team was strongly opposed to having an internal graph of smart pointers.&lt;/p&gt;</comment>
                            <comment id="835018" author="jonathan.reams@10gen.com" created="Mon, 23 Feb 2015 18:27:16 +0000"  >&lt;p&gt;Is having users manually manage lifetime of the driver objects an explicit goal? Can you even have a working collection object without a valid database/client object?&lt;/p&gt;</comment>
                            <comment id="834961" author="adam.midvidy" created="Mon, 23 Feb 2015 18:01:20 +0000"  >&lt;p&gt;On further thought, the issue here is that we don&apos;t manage lifetimes of the driver&apos;s objects. I think we would need to have db hold a shared_ptr to client, and collection hold a shared_ptr to client and db for this to work without letting users shoot themselves in the foot. &lt;/p&gt;

&lt;p&gt;Requiring users pass around objects explicitly, though inconvenient and verbose, ensures that they manage the lifetime of driver objects manually.&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|hsa2q7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>163407</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>