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 collections filtering not working when custom properties set #68

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

ChasakisD
Copy link
Contributor

Hey @pdevito3,

First of all I would like to thank you for the great effort maintaining the library.

There is a bug when setting custom or derived properties, collection filtering stops working because the ParameterReplacer replaces the nested parameter types. This PR addresses this issue and adds some unit tests to prevent breaking in the future.

If you comment out the additions on ParameterReplacer you will get the error saying Property 'System.String Name' is not defined for type 'QueryKit.WebApiTestProject.Entities.Recipes.Recipe' because it tries to look up the Ingredient's Name on the Recipe type and not the Ingredient.

Any comments are welcomed!

@pdevito3
Copy link
Owner

pdevito3 commented Nov 1, 2024

this is great, thanks!

@pdevito3 pdevito3 merged commit 2f73d59 into pdevito3:main Nov 2, 2024
2 checks passed
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