[release/5.0] Warn for walking back up the Include tree #24225
When walking up the include tree to add more navigations, includes are walk back paths are dropped.
Customers who wrote query by walking back include tree will not get results included. Earlier this was incorrect results from relationship fixup. Now it won't give results to user what they would expect. The scenario is negative case and should be blocked but currently silently ignored without informing user of possible error.
Reported by a customer.
Test coverage for this case has been added in this PR.
Low. This code has good test coverage for all possible variations. It also adds only a warning message.
The text was updated successfully, but these errors were encountered:
@dotnet/efteam - Since this is for patch, we decided to add a warning using our "great" logging infra. The decision was to bump it to error in 6.0. For patch it feels ok to warn rather than break the app but for 6.0, what is specific reason we are not throwing exception directly rather an generating warning as error? There is no scenario, where it works for you, then you can suppress warning.