rails_panel icon indicating copy to clipboard operation
rails_panel copied to clipboard

support for mongodb / (mongoid, moped)

Open SeriousM opened this issue 12 years ago • 27 comments

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$

SeriousM avatar Jan 07 '13 14:01 SeriousM

+1

MarkKing avatar Jan 11 '13 16:01 MarkKing

+1

pmor avatar Jan 27 '13 17:01 pmor

+1

jmuheim avatar Jan 28 '13 08:01 jmuheim

:+1: +1

gurix avatar Jan 28 '13 09:01 gurix

:+1:

DouweM avatar Jan 28 '13 23:01 DouweM

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

DouweM avatar Jan 29 '13 00:01 DouweM

+1

Leonas avatar Jan 31 '13 00:01 Leonas

+1

mgomes avatar Feb 01 '13 20:02 mgomes

I've openend an issue in moped for this (https://github.com/mongoid/moped/issues/145) :+1:

deiga avatar Feb 06 '13 09:02 deiga

:+1:

brain64bit avatar Feb 07 '13 05:02 brain64bit

:+1:

macool avatar Feb 08 '13 02:02 macool

+1

sebfie avatar Feb 13 '13 11:02 sebfie

+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?

armanm avatar Feb 17 '13 23:02 armanm

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

deiga avatar Mar 09 '13 23:03 deiga

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

SeriousM avatar May 02 '13 15:05 SeriousM

Yes, it's on the roadmap.

dejan avatar May 03 '13 10:05 dejan

+1

ivobenedito avatar Jul 30 '13 13:07 ivobenedito

I just pledged 150$ for this issue. https://www.catincan.com/bounty/support-mongodb-mongoid-moped-issue-26-dejan-railspanel-github

cvalka4 avatar Jul 31 '13 10:07 cvalka4

:+1:

arthurnn avatar Sep 25 '13 03:09 arthurnn

Any news?

knovoselic avatar Sep 22 '14 11:09 knovoselic

+1 Any news?

zolzaya avatar Nov 09 '14 05:11 zolzaya

ping :question:

dcarneiro avatar Mar 06 '15 10:03 dcarneiro

+1

RunsFor avatar May 22 '15 10:05 RunsFor

would still be interested

aledalgrande avatar Feb 11 '18 21:02 aledalgrande

+1

rgaufman avatar Apr 17 '18 16:04 rgaufman

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 avatar May 10 '23 20:05 andergtk

I created this PR to re-start this conversation https://github.com/dejan/rails_panel/pull/185

andergtk avatar May 10 '23 21:05 andergtk