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

[release/3.1] Query: Expand navigations together in OrderBy/ThenBy #19863

Merged
merged 2 commits into from
Feb 14, 2020

Conversation

smitpatel
Copy link
Contributor

@smitpatel smitpatel commented Feb 10, 2020

Fixes #18904

Description

Using navigations in OrderBy & ThenBy creates invalid tree which fails during translation.

Customer Impact

Query fails to translate to server throwing exception

How found

Reported by multiple customers.

Test coverage

We did not have test coverage for specific scenario where OrderBy & ThenBy both are expanding new navigations. Add regression test.

Regression?

Regression from 2.1 release

Risk

Low. Affects only processing of OrderBy/ThenBy in query. Basic case of which are covered by many tests.

Also, fix is on by default, but quirk switch is present to revert back to old behavior.

@AndriySvyryd
Copy link
Member

@ajcvickers Shouldn't we be adding quirk mode for this an other patch fixes?

@ajcvickers
Copy link
Member

ajcvickers commented Feb 10, 2020

@AndriySvyryd Yes! Thanks for remembering that.

@dotnet/efcore As @AndriySvyryd says, let's quirk all 3.1 patches as we were previously doing for 2.1. I know it's a pain and often we think it's pointless, but it's exactly because we don't know when it is going to be needed that we should do it for all.

@ajcvickers ajcvickers added this to the 3.1.x milestone Feb 11, 2020
@leecow leecow modified the milestones: 3.1.x, 3.1.3 Feb 11, 2020
@ajcvickers
Copy link
Member

@smitpatel Approved by Tactics and branches are open; let's try to get this merged today.

@smitpatel smitpatel merged commit 9a927da into release/3.1 Feb 14, 2020
@smitpatel smitpatel deleted the smit/patch18913 branch February 14, 2020 22:56
@ajcvickers ajcvickers removed this from the 3.1.3 milestone Feb 15, 2020
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.

4 participants