Skip to content

Conversation

@TheByronHimes
Copy link
Member

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. $in or $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

@TheByronHimes TheByronHimes requested a review from Cito January 7, 2026 09:43
Copy link
Member

@Cito Cito left a 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.

@coveralls
Copy link

coveralls commented Jan 7, 2026

Pull Request Test Coverage Report for Build 20862335402

Details

  • 134 of 147 (91.16%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 92.812%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/hexkit/providers/testing/dao.py 129 142 90.85%
Totals Coverage Status
Change from base Build 19970079560: -0.1%
Covered Lines: 2815
Relevant Lines: 3033

💛 - Coveralls

@TheByronHimes TheByronHimes requested a review from Cito January 8, 2026 17:33
Copy link
Member

@Cito Cito left a 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.

@TheByronHimes TheByronHimes requested a review from Cito January 9, 2026 18:57
@TheByronHimes TheByronHimes merged commit 7656ee7 into main Jan 12, 2026
8 checks passed
@TheByronHimes TheByronHimes deleted the feature/support_limited_nosql_in_tests_GSI-2080 branch January 12, 2026 10:18
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.

4 participants