<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:33:15 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-33389] aggregate function similar to regex replace</title>
                <link>https://jira.mongodb.org/browse/SERVER-33389</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;can we add a feature like regex replace which will find all occurrences of a regex pattern in a string field, and replace them with something generic. example use case -&quot; replace all telephone numbers in a error message with X so that all of them can be group in a single bucket&quot;&lt;/p&gt;

&lt;p&gt;as of now i think there is no way of doing it other than handling it in client code.Please correct me if there is something already available that i am not aware of,&lt;/p&gt;</description>
                <environment></environment>
        <key id="499842">SERVER-33389</key>
            <summary>aggregate function similar to regex replace</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="3">Duplicate</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="sourav_biswas@cable.comcast.com">Sourav Biswas</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Feb 2018 17:57:44 +0000</created>
                <updated>Wed, 21 Mar 2018 04:32:42 +0000</updated>
                            <resolved>Wed, 21 Feb 2018 17:04:18 +0000</resolved>
                                                                    <component>Aggregation Framework</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1811761" author="thomas.schubert" created="Wed, 21 Feb 2018 17:03:57 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sourav_biswas%40cable.comcast.com&quot; class=&quot;user-hover&quot; rel=&quot;sourav_biswas@cable.comcast.com&quot;&gt;sourav_biswas@cable.comcast.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the clarification. I believe &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32314&quot; title=&quot;Add $replaceOne and $replaceAll expressions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32314&quot;&gt;&lt;del&gt;SERVER-32314&lt;/del&gt;&lt;/a&gt; tracks the feature that your looking for, and Asya recently posted an example of a workaround in that ticket that I would suggest reviewing. In addition, you may want to watch and vote for a related ticket, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11947&quot; title=&quot;Add a regex expression to the aggregation language&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11947&quot;&gt;&lt;del&gt;SERVER-11947&lt;/del&gt;&lt;/a&gt;, which would provide additional functionality.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                            <comment id="1810914" author="sourav_biswas@cable.comcast.com" created="Tue, 20 Feb 2018 21:36:23 +0000"  >&lt;p&gt;Sample&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;{  error : &quot;got error for telephone 1111111111&quot;}&lt;/li&gt;
	&lt;li&gt;{  error : &quot;got error for telephone 2222222222&quot;}&lt;/li&gt;
	&lt;li&gt;{  error : &quot;got error for telephone 3333333333&quot;}&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Use case - when grouping on the field &quot;error&quot; i should get a count of 3 in a single group of &quot;got error for telephone x&quot;.  &lt;/p&gt;

&lt;h1&gt;&lt;a name=&quot;Soessentiallythereiswillbea%24projectstagebeforethe%24groupwherewecanapplysomefunctionlike%24regexReplace%3A%22%24error%22%2C%2209%22%2C%22x%22&quot;&gt;&lt;/a&gt;So essentially there is will be a $project stage before the $group where we can apply some function like  * $regexReplace : [&quot;$error&quot;,&quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;{10}&quot;,&quot;x&quot;]*&lt;/h1&gt;</comment>
                            <comment id="1810571" author="ramon.fernandez" created="Tue, 20 Feb 2018 18:16:31 +0000"  >&lt;p&gt;Will you please provide a sample usage case with some input and output documents so we can have a clear idea of what exact functionality would help your use case?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="471920">SERVER-32314</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="101071">SERVER-11947</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 20 Feb 2018 18:16:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 51 weeks 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 51 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>sourav_biswas@cable.comcast.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htqpxb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hti613:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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