Skip to content

QueryRewite/Test: improve AssertIncludeQuery to properly handle partial include matches #15368

Description

@maumar

With the new design we allow partial include matches, e.g.

entities.Include(e => e.Reference1.Reference2).Select(e => e.Reference1)

Our current test infra doesn't handle them correctly, we assume that entities present in the final projection either have all the includes or none of them.

Perhaps client projections argument to the AssertIncludeQuery should take starting navigation path to the entity it indicates, so the comparing logic knows which includes are expected.

Activity

  1. self-assigned this
    on Apr 15, 2019
  2. added this to the 3.0.0 milestone on May 3, 2019
  3. modified the milestones: 3.0.0, Backlog on Jun 28, 2019
  4. added 2 commits that reference this issue on May 14, 2020
    d8e09b6
    d1222ea
  5. modified the milestones: Backlog, 5.0.0 on May 14, 2020
  6. added a commit that references this issue on May 14, 2020
    2734a3f
  7. added a commit that references this issue on May 15, 2020
    7f81b60
  8. modified the milestones: 5.0.0, on Jun 1, 2020
  9. modified the milestones: , 5.0.0 on Nov 7, 2020
  10. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions