<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:48:16 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-4451] [LINQ3] System.Linq.Dynamic.Core.DynamicQueryableExtensions.OrderBy doesn&apos;t work in Linq3, but works in Linq2</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4451</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;`System.Linq.Dynamic.Core.DynamicQueryableExtensions.OrderBy` used to work in Linq2, but throws an exception in Linq3&lt;/p&gt;

&lt;p&gt;C# Driver Version: V2.18&lt;/p&gt;

&lt;p&gt;MongoDB Version: 4.4.6 Community&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;```csharp&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;//using System.Linq.Dynamic.Core;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;var q = collection.AsQueryable();&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;var ordered = (IOrderedMongoQueryable&amp;lt;PocoClass&amp;gt;)q.OrderBy(&quot;Name&quot;);&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;```&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;in V2, this &lt;em&gt;works successfully.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;in V3, `OrderBy` throws an exception:&lt;/p&gt;

&lt;p&gt;```&lt;/p&gt;

&lt;p&gt;Message:&#8201;&lt;br/&gt;
System.NotImplementedException : The method or operation is not implemented.&lt;/p&gt;

&lt;p&gt;&#160; Stack Trace:&#8201;&lt;br/&gt;
MongoQueryProvider`1.CreateQuery(Expression expression)&lt;br/&gt;
DynamicQueryableExtensions.InternalOrderBy(IQueryable source, ParsingConfig config, String ordering, IComparer comparer, Object[] args)&lt;br/&gt;
DynamicQueryableExtensions.OrderBy(IQueryable source, ParsingConfig config, String ordering, Object[] args)&lt;br/&gt;
DynamicQueryableExtensions.OrderBy&lt;span class=&quot;error&quot;&gt;&amp;#91;TSource&amp;#93;&lt;/span&gt;(IQueryable`1 source, ParsingConfig config, String ordering, Object[] args)&lt;br/&gt;
DynamicQueryableExtensions.OrderBy&lt;span class=&quot;error&quot;&gt;&amp;#91;TSource&amp;#93;&lt;/span&gt;(IQueryable`1 source, String ordering, Object[] args)&lt;/p&gt;

&lt;p&gt;```&lt;/p&gt;</description>
                <environment></environment>
        <key id="2210267">CSHARP-4451</key>
            <summary>[LINQ3] System.Linq.Dynamic.Core.DynamicQueryableExtensions.OrderBy doesn&apos;t work in Linq3, but works in Linq2</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13203">Gone away</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="ahmednfwela@bdaya-dev.com">Ahmed Fwela</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Dec 2022 08:23:05 +0000</created>
                <updated>Fri, 27 Oct 2023 19:56:00 +0000</updated>
                            <resolved>Fri, 30 Dec 2022 12:00:47 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5083031" author="dbeng-pm-bot" created="Fri, 30 Dec 2022 12:00:48 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to comment on this if you&apos;re able to provide more information.&lt;/p&gt;</comment>
                            <comment id="5057737" author="rstam" created="Thu, 15 Dec 2022 16:00:15 +0000"  >&lt;p&gt;Nuget is the only way we distribute our releases.&lt;/p&gt;

&lt;p&gt;Sorry, I mistakenly pointed you to version 2.18.1, which has not yet been released.&#160;&lt;/p&gt;</comment>
                            <comment id="5055917" author="JIRAUSER1272302" created="Wed, 14 Dec 2022 21:41:40 +0000"  >&lt;p&gt;&#160;Is there a way to depend on 2.18.1 outside of nuget ?&lt;/p&gt;</comment>
                            <comment id="5054459" author="rstam" created="Wed, 14 Dec 2022 15:10:24 +0000"  >&lt;p&gt;Thank you for reporting this.&lt;/p&gt;

&lt;p&gt;This appears to a manifestation of the issue reported in &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4376&quot; title=&quot;Add LINQ3 support for untyped CreateQuery&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4376&quot;&gt;&lt;del&gt;CSHARP-4376&lt;/del&gt;&lt;/a&gt;, which was fixed in version 2.18.1.&lt;/p&gt;

&lt;p&gt;Could you test with version 2.18.1 and let us know if there are still issues?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2164199">CSHARP-4376</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i1596g:</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>