-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fixes errors when filtering by content fields in GraphQL #17378
Conversation
This pull request has merge conflicts. Please resolve those before requesting a review. |
/backport to release/2.1 |
Started backporting to release/2.1: https://github.com/OrchardCMS/OrchardCore/actions/runs/13074395241 |
@gvkries an error occurred while backporting to "release/2.1", please check the run log for details! Error: @gvkries is not a repo collaborator, backporting is not allowed. If you're a collaborator please make sure your OrchardCMS team membership visibility is set to Public on https://github.com/orgs/OrchardCMS/people?query=gvkries |
Fixes #17261 and #17323
This PR addresses issues #17261 and #17323. While this solution resolves the immediate problems, it is acknowledged that a more comprehensive redesign of the GraphQL filtering system is necessary. The current method of mapping GraphQL fields to SQL indexes, which involves creating table and column aliases, has limitations, particularly with ambiguous column names.
The proposed solution in this PR is a temporary fix. A thorough redesign should be considered for the following interfaces to address these limitations and streamline responsibilities:
IFilterInputObjectGraphType
IIndexPropertyProvider
IIndexAliasProvider
Additionally, the
IPredicateQuery
interface and its implementation will need to be re-evaluated and redesigned.For now, this PR provides a solution to the specified issues without introducing significant changes or risking other functionalities.