-
Notifications
You must be signed in to change notification settings - Fork 0
Support limited nosql for InMemDao (GSI-2080) #205
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
Support limited nosql for InMemDao (GSI-2080) #205
Conversation
Cito
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.
Would be good to make it a bit more powerful if we already support that.
Maybe we can then require all DAO providers to support that same subset of MSQL supported by the InMemDao. The subseet should stay minimal of course, but not so minimal as in the current inplementation.
Pull Request Test Coverage Report for Build 20862335402Details
💛 - Coveralls |
Also remove neq operator because it's not real
Cito
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.
Looks good overall. I don't think we should support more operators.
Some suggestions for improvement below.
tests/integration/mongodb/test_in_mem_dao_against_actual_mongo.py
Outdated
Show resolved
Hide resolved
…a real DB Fix nesting Make sure $exists works with nested fields
The InMemDao speeds up testing by allowing us to forgo the weighty mongo testcontainers. One hangup, though, is that they only support querying by direct equivalence mappings. Since some of our services use queries that employ Mongo Query Language comparison operators, e.g.
$inor$gt, the InMemDao wasn't usable in every case. This PR adds support for MQL comparison operators for the InMemDao, and is written in a way to allow us to add other operator categories in the future and group them as such with the thinking that this makes it easier to extend.Bumps version to
7.3.0