Skip to content

Query: QueryFilters/Defining queries are not applied recursively #13361

Closed

Description

@smitpatel

As described in #11803, query filters (and also defining queries included), are not applied recursively. Fix for that issue apply recursion at expansion time but it became quite limited in terms of what it can do. Specifically following issues were ignored

Effectively the fix only made it possible to apply recursively only when referencing direct dbset or dbquery of entitytype without any annotation.

Fixing this requires us to apply few operations like extract annotations, nav expansion, query optimizer on expanded part and apply it recursively. Currently it is too fragile to effectively arrive at terminating condition (due to relinq's in-place QueryModel mutation).
Hence reverting the fix for #11803

Activity

  1. added this to the 3.0.0 milestone on Sep 19, 2018
  2. ajcvickers commented on Oct 22, 2018

    @ajcvickers
    Contributor

    Note from triage: we are okay with a new cache entry when the filter is disabled.

  3. ajcvickers commented on May 10, 2019

    @ajcvickers
    Contributor

    We should at least make sure it throws for 3.0 instead of returning incorrect results.

  4. added a commit that references this issue on Jun 28, 2019
  5. 2 remaining items

  6. modified the milestones: 3.0.0, Backlog on Jun 28, 2019
  7. AndriySvyryd commented on Aug 22, 2019

    @AndriySvyryd
    Member

    @maumar Is this fixed/not needed now?

  8. smitpatel commented on Aug 22, 2019

    @smitpatel
    ContributorAuthor

    I believe fixed.

  9. modified the milestones: Backlog, 3.0.0 on Aug 22, 2019
  10. maumar commented on Aug 22, 2019

    @maumar
    Contributor

    fixed indeed, closing

  11. 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

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions