<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:09:56 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>[SERVER-68121] clang-tool boost::optional -&gt; std::optional migration</title>
                <link>https://jira.mongodb.org/browse/SERVER-68121</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Ticket created to track a skunkworks project in a persistent place.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2093290">SERVER-68121</key>
            <summary>clang-tool boost::optional -&gt; std::optional migration</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-servicearch">Backlog - Service Architecture</assignee>
                                    <reporter username="billy.donahue@mongodb.com">Billy Donahue</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Jul 2022 23:00:13 +0000</created>
                <updated>Fri, 19 Jan 2024 15:46:10 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="5262307" author="billy.donahue" created="Thu, 9 Mar 2023 19:29:32 +0000"  >&lt;p&gt;Draft PR to integrate this check into the mongo repo&apos;s clang-tidy plugins framework.&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo/pull/11136&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/pull/11136&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4699429" author="billy.donahue" created="Fri, 22 Jul 2022 23:36:33 +0000"  >&lt;p&gt;That is interesting.&lt;/p&gt;

&lt;p&gt;Look how small that checker&apos;s source code is!&lt;br/&gt;
    &lt;a href=&quot;https://clang.llvm.org/extra/doxygen/UseToStringCheck_8cpp_source.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://clang.llvm.org/extra/doxygen/UseToStringCheck_8cpp_source.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have a small match and replace function but I need to figure out how to run it on everything.&lt;/p&gt;

&lt;p&gt;And I wasn&apos;t using clang-tidy as a platform. I was using clang.&lt;br/&gt;
I was trying to avoid writing my tool INSIDE the llvm source tree, and this is the only way I found to do that. But I might have to look harder.&lt;/p&gt;</comment>
                            <comment id="4699412" author="JIRAUSER1268551" created="Fri, 22 Jul 2022 23:09:04 +0000"  >&lt;p&gt;I add the boost-use-to-string clang-tidy check in this variant&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_rhel80_dynamic_clang_tidy_condensed_clang_tidy_condensed_e37f9d5efff9974a4a66b6a84bf98f24c1052937_22_07_21_22_10_59/logs?execution=0)&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_rhel80_dynamic_clang_tidy_condensed_clang_tidy_condensed_e37f9d5efff9974a4a66b6a84bf98f24c1052937_22_07_21_22_10_59/logs?execution=0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It finds uses of &quot;boost::lexical_cast&amp;lt;std::string&amp;gt;&quot; and replaces them with &quot;std::to_string&quot;. Just thought if you were doing replace boost stuff with the stl version and replacing the headers you might find this interesting.&lt;/p&gt;</comment>
                            <comment id="4699328" author="billy.donahue" created="Fri, 22 Jul 2022 21:35:45 +0000"  >&lt;p&gt;Branch showing how to get away from boost/optional_io.hpp again:&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo/compare/master...billydonahue/std_optional&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/compare/master...billydonahue/std_optional&lt;/a&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;Rudimentary clangAST tool that does two things:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;replace boost::optional&amp;lt;T&amp;gt; .get() with .value() calls.&lt;/li&gt;
	&lt;li&gt;replace boost::optional&amp;lt;T&amp;gt; .is_initialized() with .has_value() calls.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;https://github.com/BillyDonahue/mongo_std_optional_migration&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/BillyDonahue/mongo_std_optional_migration&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4692110" author="billy.donahue" created="Wed, 20 Jul 2022 14:58:34 +0000"  >&lt;p&gt;Older effort (bitrotted obviously) that I&apos;m rehabilitating and updating.&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/compare/master...BillyDonahue:boost_optional_io_wean?expand=1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/compare/master...BillyDonahue:boost_optional_io_wean?expand=1&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10620">
                    <name>Issue split</name>
                                            <outwardlinks description="split to">
                                        <issuelink>
            <issuekey id="2101166">SERVER-68378</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2097692">SERVER-68246</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="322313">SERVER-26542</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2144518">SERVER-69953</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25132"><![CDATA[Service Arch]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 22 Jul 2022 23:09:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        47 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>dbeng-pm-bot</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            47 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alex.neben@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-server-servicearch</customfieldvalue>
            <customfieldvalue>billy.donahue@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i12trz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0lnjk:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i12fxb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>