Skip to content
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

Fixed: Preserve ordering when executing batched paging queries. #7994

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

michaelstaib
Copy link
Member

@michaelstaib michaelstaib commented Feb 5, 2025

When using paging DataLoader the ordering was dropped from the generated SQL query. EF core drops the ordering in case of GroupBy. We had an issue with the expression rewriter which stripped order from original query and moved it into the select after the groupBy.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@michaelstaib michaelstaib added this to the HC-15.0.0 milestone Feb 5, 2025
@michaelstaib michaelstaib self-assigned this Feb 5, 2025
@michaelstaib michaelstaib merged commit 6c393d3 into main Feb 5, 2025
104 checks passed
@michaelstaib michaelstaib deleted the mst/fix-batch-ordering branch February 5, 2025 09:21
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.41%. Comparing base (df2f85d) to head (9706055).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7994      +/-   ##
==========================================
+ Coverage   74.39%   74.41%   +0.01%     
==========================================
  Files        2898     2898              
  Lines      152316   152294      -22     
  Branches    17782    17779       -3     
==========================================
+ Hits       113319   113328       +9     
+ Misses      33099    33069      -30     
+ Partials     5898     5897       -1     
Flag Coverage Δ
unittests 74.41% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant