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

Use mongo driver directly instead of Origin gem #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

estolfo
Copy link

@estolfo estolfo commented Jun 30, 2017

No description provided.

to eql([{name: 'Jane',}, {name: 'Joe'}])

expect(users.order(name: :desc).only(:name).without(:_id).to_a.map(&:to_h)).
expect(users.order(name: Mongo::Index::DESCENDING).only(:name).without(:_id).to_a.map(&:to_h)).
Copy link
Member

Choose a reason for hiding this comment

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

it'd be better if we hide this behind our API, so basically Mongo::Dataset#order could translate :desc and :asc to corresponding driver constants

@jfromell
Copy link

jfromell commented Feb 5, 2018

Was this abandoned? 'Cause all that is making the checks fail is a change in ROM::CommandRegistry.

@solnic
Copy link
Member

solnic commented Feb 5, 2018

@jfromell looks like it was

@estolfo
Copy link
Author

estolfo commented Feb 5, 2018

I'm happy to continue work on this if you'd like. Let me know!

@jfromell
Copy link

jfromell commented Feb 6, 2018

The checks will pass again if you merge #25, so it's an easy fix. Any particular reason as to why that pull request hasn't been merged yet?

@estolfo
Copy link
Author

estolfo commented Feb 6, 2018

@jfromell I don't know why this wasn't merged. I can keep working on it if the maintainers are interested in having me do so.

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.

3 participants