-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regresssion in 8.2.5 : ApplyTo method changes OrderBy property #1319
Comments
Hello @hendrik-schmieder What is the value of |
@hendrik-schmieder another question, are you running into any issues as a result of the |
@hendrik-schmieder I've not been able to reproduce the issue so far. Could you share a sample project that reproduces the issue? |
Sorry for the delay, It is not that easy to give a simple example. Maybe the following information will help. The url used for testing looks like ...?$skip=1 The ApplyTo method is called inside the following method
This method is called two times while processing the url and on the second call queryOptions.OrderBy is NOT null anymore. The first call looks like var fetchedCells = new ConcurrentBag(); // fill fetchedCells in parallel. var tmpCells = _oDataQueryFilter.ApplyQuery(fetchCellExportDTO.QueryOptions, fetchedCells); with T = public class Cell
} It may be that fetchedCells) is not ordered by id, In 8.2.4 OrderBy is still null, but in 8.2.5 I get for OrderBy -queryOptions.OrderBy {Microsoft.AspNetCore.OData.Query.OrderByQueryOption}
I hope this helps. |
1 similar comment
Sorry for the delay, It is not that easy to give a simple example. Maybe the following information will help. The url used for testing looks like ...?$skip=1 The ApplyTo method is called inside the following method
This method is called two times while processing the url and on the second call queryOptions.OrderBy is NOT null anymore. The first call looks like var fetchedCells = new ConcurrentBag(); // fill fetchedCells in parallel. var tmpCells = _oDataQueryFilter.ApplyQuery(fetchCellExportDTO.QueryOptions, fetchedCells); with T = public class Cell
} It may be that fetchedCells) is not ordered by id, In 8.2.4 OrderBy is still null, but in 8.2.5 I get for OrderBy -queryOptions.OrderBy {Microsoft.AspNetCore.OData.Query.OrderByQueryOption}
I hope this helps. |
I made a copy of the existing sample ODataRoutingSample and added some files Make breakpoints in Line 44, 48, 52 of uses as test url |
Has anybody tried the testcase I provided in my last post ? |
Hello,
I have an object queryoptions of type ODataQueryOptions
where the OrderBy property is null.
For this object i call the method
ApplyTo(IQueryable, ODataQuerySettings)
where ODataQuerySettings is new ODataQuerySettings()
In 8.2.4 OrderBy property is still null,
after the return of the ApplyTo method
Begiining with 8.2.5 OrderBy property is NOT null anynore,
after the return of the ApplyTo method
I don't see any hints that the the behaviour of Applyo have changed.
tia
Hendrik
The text was updated successfully, but these errors were encountered: