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

Remove sharedb-mingo-memory circular dependency #230

Merged
merged 1 commit into from
Jul 25, 2018
Merged

Conversation

ericyhwang
Copy link
Contributor

sharedb had depended on sharedb-mingo-memory for 4 tests, mostly relating to query subscriptions. This removes that dependency by faking out enough of MemoryDB in the tests to handle simple queries. (MemoryDB itself returns all documents in a collection given a query.)

I didn't want to put the simple query handling in MemoryDB, as that might lead people to think it may do more than it can. We don't want to re-implement all of Mingo, either.

Copy link
Contributor

@nateps nateps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for the contribution. 💯

Test fixes are my favorite.

@nateps nateps merged commit 721a0ab into master Jul 25, 2018
@nateps nateps deleted the remove-mingo-dep branch July 25, 2018 16:24
@coveralls
Copy link

coveralls commented Jul 25, 2018

Coverage Status

Coverage decreased (-1.07%) to 95.182% when pulling 7913314 on remove-mingo-dep into 5f4bd90 on master.

@curran
Copy link
Contributor

curran commented Jul 25, 2018

Woohoo! This is majorly awesome!

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