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 Nested Filter-Sort and Model Querying Issues #29

Merged
merged 3 commits into from
Aug 24, 2024

Conversation

dhruv-ahuja
Copy link
Owner

PR #25's changes broke filter and sort functionality for nested columns. This PR addresses those issues by using raw Mongo syntax and avoiding extracting model attributes for such filter/sort parameters.
This also prevents duplication of filter-sort parameters on successive queries that happened due to the re-use of the same query object for both count and the actual fetch queries.

- ensure each filter is applied only once per query
- fix failures on nested filtering
@dhruv-ahuja dhruv-ahuja merged commit a078d57 into main Aug 24, 2024
1 check passed
@dhruv-ahuja dhruv-ahuja deleted the chore/nested_filters branch August 24, 2024 03:05
dhruv-ahuja added a commit that referenced this pull request Aug 29, 2024
* refactor: make filter operators constant

* fix: resolve filtering issues

- ensure each filter is applied only once per query
- fix failures on nested filtering

* fix: allow nested sorting
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.

1 participant