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: Allow m2os to be used in filters. Fixes #680. #683

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

stephenh
Copy link
Collaborator

@stephenh stephenh commented Jun 9, 2023

I think personally I would prefer not allowing relations to be used in find filters, however b/c ManyToOneReference.id makes it structurally match the EntityFilter, it seems hard/not worth the complexity to prevent the ManyToOneReference in the EntityFilter mapped type as a compile error (which would be ideal imo).

So instead just suppose m2os by calling .id.

I think personally I would prefer not allowing relations to be used in
find filters, however b/c ManyToOneReference.id makes it structurally
match the EntityFilter, it seems hard/not worth the complexity to
prevent the ManyToOneReference in the EntityFilter mapped type.

So instead just suppose m2os by calling `.id`.
@stephenh stephenh merged commit 4c246fa into main Jun 9, 2023
2 checks passed
@stephenh stephenh deleted the accept-m2o-references-in-filters branch June 9, 2023 13:15
stephenh pushed a commit that referenced this pull request Jun 9, 2023
## [1.88.3](v1.88.2...v1.88.3) (2023-06-09)

### Bug Fixes

* Allow m2os to be used in filters. Fixes [#680](#680). ([#683](#683)) ([4c246fa](4c246fa))
@stephenh
Copy link
Collaborator Author

stephenh commented Jun 9, 2023

🎉 This PR is included in version 1.88.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant