-
Notifications
You must be signed in to change notification settings - Fork 2
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
package(mongo) [STORY-1030] Add option to define a customer method in order to pass custom query method (to look at paranoid-deleted items for instance #997
Conversation
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.
This looks good, but I think it misses a bit of documentation and some tests.
I think it is important to define the intended behaviour with regards to pagination and sort order and test for that behaviour. It "may" avoid confusion in the future.
What do you think?
What kind of tests would you add? In a way that the rest of the behavior is not changed, only the query getting the documents, that's why I only tested this. If you have one or two test cases to add I would definitely add them Thanks for your review and I'll add the missing documentation |
There are already a test cases for returning the second page:
I would suggest adding equivalent tests when using the custom QueryFunc. I think this would make it clear how we expect the library to behave with regards to pagination and sort order when using QueryFunc What do you think? |
… order to pass custom query method (to look at paranoid-deleted items for instance
Previously it wasn't possible to paginate over soft deleted documents
86d36be
to
c764b19
Compare
To me the change is minor enough to not having to redo the whole test matrix.
|
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.
LGTM. Nice
CHANGELOG.md