-
Notifications
You must be signed in to change notification settings - Fork 11
fix: honor fields in the filter #59
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
Conversation
|
commit message to be |
ab8fe4d to
e242663
Compare
e242663 to
44188ff
Compare
bajtos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not familiar with this code base, but don't see any obvious problems.
FWIW, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not too familiar as well, but the explanation and code changes LGTM 👍
dhmlau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look reasonable to me.
There are another set of failures in CI. Is it what you mentioned that after the existing issues are fixed, some other issues are exposed?
Exactly. |
Description
Fixes the failure for missing FK in the fields
fieldsfilter was ignored and that's why the test above fails. This PR adds it to the query.fromDBmethod will remove the id field is original filter doesn't have it infieldsFixes catching the inclusion error
_findRecursiveinvokes theincludehandler function without catching the error. That's why the test above returns null instead of throwing the expected error.orderin filter but doesn't define index for the sortable field(which is required for couchdb2/cloudant connector).titleindexable forPostmodel, or skip that test for couchdb/cloudant connector. I will submit another PR.Related issues
Checklist
New tests added or existing tests modified to cover all changesThe test cases are in juggler.guide