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

Fix RelationshipFilter ignoring swap field from a nested RelationshipFilter. #664

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

marikomedlock
Copy link
Collaborator

@marikomedlock marikomedlock commented Jan 11, 2024

When translating a RelationshipFilter to SQL, we do some limited query optimization to translate a filter on an id attribute to a filter on a foreign key attribute. This fixes the case of a nested RelationshipFilter which was not correctly updating the name of the field being filtered. Also added two tests to cover the two sub-cases.

@marikomedlock marikomedlock merged commit 959cb62 into main Jan 11, 2024
7 checks passed
@marikomedlock marikomedlock deleted the mm-fix-relationship-filter-ignoring-swap-fields branch January 11, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants