MongoInspector icon indicating copy to clipboard operation
MongoInspector copied to clipboard

Adding "alanning:roles" package broke the inspector..?

Open Siyfion opened this issue 10 years ago • 8 comments

After adding the meteor package "alanning:roles", MongoInspector is now only displaying the "roles" collection in inspector, event though all the other collections are working perfectly fine.

I have tried with both Mongo.Collection() and Meteor.Collection() to see if it made any difference, but it didn't. :disappointed:

Siyfion avatar Jan 28 '15 14:01 Siyfion

change order of packages in your .meteor/packages file

krawalli avatar Jan 28 '15 15:01 krawalli

If I move it so that MongoInspector is second, I get no collections displayed.

alanning:roles
msavin:mongoinspector

Siyfion avatar Jan 28 '15 15:01 Siyfion

Hmmm, maybe its best to have people manually specify which collections they want to watch in MongoInspector.

msavin avatar Jan 28 '15 17:01 msavin

Any idea as to why I don't get any collections though? I mean, I want them all ideally!

Siyfion avatar Jan 28 '15 17:01 Siyfion

What other packages are you running? If you remove roles, does it go back to working?

msavin avatar Jan 28 '15 20:01 msavin

accounts-password                  1.0.6  Password support for accounts
alanning:roles                     1.2.13  Role-based authorization
aldeed:collection2                 2.3.1  Automatic validation of insert and update operations on...
edgee:slingshot                    0.4.1  Directly post files to cloud storage services, such as ...
fortawesome:fontawesome            4.2.0_2  Font Awesome (official): 470+ scalable vector icons, ...
http                               1.0.10  Make HTTP calls to remote servers
ian:accounts-ui-bootstrap-3        1.2.21* Bootstrap-styled accounts-ui with multi-language support.
insecure                           1.0.2  Allow all database writes by default
iron:router                        1.0.7  Routing specifically designed for Meteor
less                               1.0.12  The dynamic stylesheet language
meteor-platform                    1.2.1  Include a standard set of Meteor packages in your app
meteorhacks:kadira                 2.17.1  Performance Monitoring for Meteor
mizzao:bootboxjs                   4.3.0  Programmatic dialog boxes using Twitter's bootstrap modals
momentjs:moment                    2.9.0  Moment.js (official): parse, validate, manipulate, and ...
msavin:mongoinspector              2.1.2* A real-time window into how your application and collec...
natestrauser:select2               3.5.1  Select2 is a jQuery based replacement for select boxes.
nemo64:bootstrap                   3.3.1_1  Highly configurable bootstrap integration.
peerlibrary:aws-sdk                2.1.6_2  SDK for AWS services including Amazon S3, Amazon EC2,...
reactive-var                       1.0.4  Reactive variable
rubaxa:sortable                    1.0.0_1  Sortable: reactive minimalist reorderable drag-and-dr...
siyfion:snap                       0.3.0  Wraps the popular Snap SVG library into a meteor package
tmeasday:publish-counts            0.3.4  Publish the count of a cursor, in real time
underscore                         1.0.2  Collection of small helpers: _.map, _.each, ...
wizonesolutions:underscore-string  1.0.0  underscore.string: Additional string functions for Unde...

Siyfion avatar Jan 28 '15 21:01 Siyfion

I wonder if there is a conflict with aldeed:collection2 , can you try removing it or moving the packages around?

msavin avatar Jan 28 '15 21:01 msavin

the main problem would be, that instanceOf would not report back, that it is still a "Mongo.Collection" or "Meteor.Collection" and so its not picked up.

The order of the packages is the key until someone discovers a real hook in Meteor's Collection constuctor.

krawalli avatar Jan 28 '15 23:01 krawalli