<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:00 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>[CSHARP-493] LINQ - Allow Regex Usage inside $all</title>
                <link>https://jira.mongodb.org/browse/CSHARP-493</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;There appears to be no LINQ way to perform the following Mongo query:&lt;/p&gt;

&lt;p&gt;db.Collection.find({field : {$all : [ /^a/, /^d/]}})&lt;/p&gt;

&lt;p&gt;One possible suggestion to implement this is to create a ContainsAll overload that receives Regex parameters.&lt;/p&gt;</description>
                <environment></environment>
        <key id="41168">CSHARP-493</key>
            <summary>LINQ - Allow Regex Usage inside $all</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="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="-1">Unassigned</assignee>
                                    <reporter username="zaidmasud">Zaid Masud</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Jun 2012 16:51:32 +0000</created>
                <updated>Thu, 31 Mar 2022 00:23:42 +0000</updated>
                                                                            <component>Linq</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="133206" author="zaidmasud" created="Fri, 15 Jun 2012 10:56:29 +0000"  >&lt;p&gt;This is a bit of a tangent to the specific issue reported here, but one thing we have seen with these custom extension methods is that unit testing becomes difficult. So for example, if our unit tests are using in-memory objects then ContainsAll won&apos;t work.&lt;/p&gt;

&lt;p&gt;Here are two alternatives to ContainsAll using standard LINQ/.NET framework:&lt;/p&gt;

&lt;p&gt;1) Support IsSubsetOf on two HashSets &amp;#8211; this is the most natural C# interpretation of ContainsAll ... $all is really a Subset predicate.&lt;br/&gt;
2) Support !myValues.Except(collection.Array).Any() as a $all implementation&lt;/p&gt;

&lt;p&gt;Of course neither would support regexes, so perhaps ContainsAll will still be needed for Regexes on $all.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="41243">CSHARP-495</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|hs0t7j:</customfieldvalue>

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