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

support for mongodb / (mongoid, moped) #26

Open
SeriousM opened this issue Jan 7, 2013 · 27 comments
Open

support for mongodb / (mongoid, moped) #26

SeriousM opened this issue Jan 7, 2013 · 27 comments
Assignees

Comments

@SeriousM
Copy link

SeriousM commented Jan 7, 2013

hi, is it possible to have an output of mongodb calls via mongoid / moped?

i got the moped logs into the console via Moped.logger.level = Logger::DEBUG and they look like this:

MOPED: 127.0.0.1:27017 QUERY        database=qn_dev_master collection=users selector={"_id"=>"50ead4f5930e9beb36000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (28.0032ms)
MOPED: 127.0.0.1:27017 QUERY        database=qn_dev_master collection=wow_characters selector={"user_id"=>"50ead4f5930e9beb36000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (20.0021ms)
MOPED: 127.0.0.1:27017 COMMAND      database=qn_dev_master command={:count=>"roles", :query=>{"$and"=>[{"_id"=>{"$in"=>["50ead4f5930e9beb36000002"]}}], "$or"=>[{"name"=>"admin", "resource_type"=>nil, "resource_id"=>nil}]}} (22.0022ms)

thanks, SeriousM

Edit:
Thanks to @cvalka4 for the pledge of 150$

@MarkKing
Copy link

+1

2 similar comments
@pmor
Copy link

pmor commented Jan 27, 2013

+1

@jmuheim
Copy link

jmuheim commented Jan 28, 2013

+1

@gurix
Copy link

gurix commented Jan 28, 2013

👍 +1

@DouweM
Copy link

DouweM commented Jan 28, 2013

👍

@DouweM
Copy link

DouweM commented Jan 29, 2013

For this to work, Moped needs to use ActiveSupport::Notifications instead of direct Rails.logger calls, which it currently doesn't.

@Leonas
Copy link

Leonas commented Jan 31, 2013

+1

1 similar comment
@mgomes
Copy link

mgomes commented Feb 1, 2013

+1

@deiga
Copy link

deiga commented Feb 6, 2013

I've openend an issue in moped for this (mongoid/moped#145) 👍

@brain64bit
Copy link

👍

2 similar comments
@macool
Copy link

macool commented Feb 8, 2013

👍

@sebfie
Copy link

sebfie commented Feb 13, 2013

+1

@armanm
Copy link

armanm commented Feb 17, 2013

+1

Would love for rails_panel to support MongoDB through Mongoid.

@dejan do you think you could make available the instructions for modifying Mopped locally so we can use it with the rails_panel until the change is part of the official Mopped gem?

@deiga
Copy link

deiga commented Mar 9, 2013

This has been implemented in moped's master branch and it is being implemented in mongoid

@SeriousM
Copy link
Author

SeriousM commented May 2, 2013

Hi, i would like to ask if you still plan to implement this support because the requirements are fulfilled by mongoid and moped since two months now. please implement it, that would be awesome!! Thanks

@dejan
Copy link
Owner

dejan commented May 3, 2013

Yes, it's on the roadmap.

@ghost ghost assigned dejan May 3, 2013
@ivobenedito
Copy link

+1

@cvalka4
Copy link

cvalka4 commented Jul 31, 2013

@arthurnn
Copy link

👍

@knovoselic
Copy link

Any news?

@zolzaya
Copy link

zolzaya commented Nov 9, 2014

+1 Any news?

@dcarneiro
Copy link

ping ❓

@RunsFor
Copy link

RunsFor commented May 22, 2015

+1

@aledalgrande
Copy link

would still be interested

@rgaufman
Copy link

+1

@andergtk
Copy link

Anyone still wants to Rails Panel to support Mongoid? I've been playing with a workaround and would be awesome if some one could take a look in the code and beautify a little bit so we can merge in the main branch :)

@andergtk
Copy link

I created this PR to re-start this conversation
#185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests