msavin / Mongol-meteor-explore-minimongo-devtools

In-App MongoDB Editor for Meteor (Meteor DevTools)
http://play.with.meteor.toys
825 stars 40 forks source link

Auto-detect collections, so it's just plug-and-play with no configuration #9

Closed JackAdams closed 9 years ago

JackAdams commented 9 years ago

No need for the config setup step - just make it plug-and-play, using a default config. Devs can put in their own custom config if they want to.

Use the (very lightweight) (dburles:mongo-collection-instances package.

By default you get all the collections (including namespaced ones) in Mongol. If someone only wants a subset of the collections, they can Session.set("Mongol", {collections: [ ... ], ... }) as usual.

Happy to put a PR together once there's a repo I can fork.

msavin commented 9 years ago

Jack,

That's a great idea. With MongoInspector, we had some issues with this approach when the package wasn't listed at the top of the packages list. If you think this approach will have the same issues, maybe we should preserve the option for manual input.

I just pushed up the package source code, looking forward to seeing your PR!

JackAdams commented 9 years ago

Yeah, man. Putting that PR together is the first thing I'll be doing when I get home from work tonight. I'm really excited about Mongol and looking forward to using it in all my projects. "Insanely useful" is an understatement.

msavin commented 9 years ago

Awesome man! I can't wait to see it. Let me know if you need any help along the way.

msavin commented 9 years ago

On a side note; we did not use the same exact code as @dburles so maybe it won't have the same issue

SantoshSrinivas79 commented 9 years ago

Just wondering ... is the auto detection incorporated? or was this just closed out.

msavin commented 9 years ago

Implemented in 0.4.0 - just run meteor update

Sent from my iPhone

On Feb 25, 2015, at 1:01 PM, fountainhead notifications@github.com wrote:

Just wondering ... is the auto detection incorporated? or was this just closed out.

— Reply to this email directly or view it on GitHub.

SantoshSrinivas79 commented 9 years ago

What is the configuration i need to do? I currently have the below code in a client .js file

Meteor.startup(function() {

  Session.set("Mongol", {
    'display': true,
    'opacity_normal': ".7",
    'opacity_expand': ".9"
  });

});
msavin commented 9 years ago

Just remove it 😄

Sent from my iPhone

On Feb 25, 2015, at 1:21 PM, fountainhead notifications@github.com wrote:

What is the configuration i need to do? I currently have the below code in a client .js file

Meteor.startup(function() {

Session.set("Mongol", { 'display': true, 'opacity_normal': ".7", 'opacity_expand': ".9" });

}); — Reply to this email directly or view it on GitHub.