Code Monkey home page Code Monkey logo

Comments (6)

filcole avatar filcole commented on May 28, 2024 1

Might be the same as jordimontana82/fake-xrm-easy#482 in v1.

from fake-xrm-easy.

BetimBeja avatar BetimBeja commented on May 28, 2024 1

Confirmed that the bug you raised on v1 is not fixed with DynamicsValue/fake-xrm-easy-core#30
image

from fake-xrm-easy.

jordimontana82 avatar jordimontana82 commented on May 28, 2024 1

Thanks lads @filcole @BetimBeja @bwmodular

from fake-xrm-easy.

bwmodular avatar bwmodular commented on May 28, 2024

Here's a unit test for this with OOB attrbutes. It fails because the grouped by column doesn't appear in the resultset.

It's the equivalent of this SQL query:

select count(*), so.name
from salesorderdetail sod
, salesorder so
where sod.salesorderid = so.salesorderid
group by so.name;

The 'name' column does not appear in the results of the query.
Issue48.zip

from fake-xrm-easy.

BetimBeja avatar BetimBeja commented on May 28, 2024

@jordimontana82 @bwmodular the following test works:

[Fact]
public void When_An_Aggregated_Query_Contains_Group_By_On_Base_Attributes_These_Should_Be_Returned_In_The_Query_Results()
{
    EntityCollection records = _service.RetrieveMultiple(new FetchExpression(@"<fetch aggregate='true'>
                          <entity name='salesorderdetail'>
                            <attribute name='salesorderdetailid' alias='count' aggregate='count' />                                 
                            <attribute name='lineitemnumber' alias='lineitemnumber' groupby='true' />                                     
                          </entity>
                        </fetch>"));

    Assert.Equal(1, (int)((AliasedValue)records.Entities[0]["lineitemnumber"]).Value);
}

which means the problem is only limited to groupby applied to linked entities

from fake-xrm-easy.

BetimBeja avatar BetimBeja commented on May 28, 2024

@filcole I think I didn't solve that problem with my PR... if that is the case do you mind issuing a PR against https://github.com/BetimBeja/dynamicsvalue-fake-xrm-easy-core/tree/fix/2x/issue-48 which would add your commits to DynamicsValue/fake-xrm-easy-core#30 ?

I wrote a blog about the process some time ago: https://xrm.al/blog/co-author-github

from fake-xrm-easy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.