PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Wednesday the 2nd of August, 2017

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[13:32:55] <phil22> is this a chan for mongoose too?
[13:38:54] <KekSi> no
[14:33:20] <rspijker> So, I've started using decimals in mongodb, but can't figure out how to deal with them properly in e.g., the shell
[14:34:30] <rspijker> For instance, how do I subtract one from another?
[17:57:51] <qguv> thanks for your invaluable feedback KekSi
[19:24:35] <Lope> What's wrong with this? $set { 'gps.coordinates': [ -13.11899153036589, 24.14971923828125 ], .... MongoError: The dotted field 'gps.coordinates' in 'gps.coordinates' is not valid for storage.
[19:26:44] <Lope> oh, nvm, I know what's wrong :)
[19:27:26] <Lope> it's because I'm doing an upsert and it's the whole object, I was dumping the $set into a whole object.
[20:16:13] <nbettenh> I have a user that is assigned to a role that does not include createcollection in the list of privileges. That user can still create collections though, anyone have any ideas how to prevent this?
[20:21:38] <nbettenh> The user does have the insert privilege, looks like the documentation says they also get create privileges with insert. Anyone know of a way to allow the user to insert documents into a collection, but not create collections?
[20:23:00] <threespades> which role does he have right now?
[20:24:04] <nbettenh> Just a custom role which has collStats, dbHash, dbStats, find, insert, killCursors, listCollections, listIndexes, remove, and update for allowed actions
[20:43:46] <threespades> https://jira.mongodb.org/browse/SERVER-15181 seems to be the closest match. insert has create with it
[20:44:01] <threespades> https://docs.mongodb.com/v3.4/reference/privilege-actions/#insert
[20:47:44] <threespades> i probably misunderstood but i dont think you can remove it
[20:56:04] <nbettenh> I don't think so either, thanks!
[20:59:47] <threespades> the jira suggested locking the user to specific db and collection
[20:59:59] <threespades> so it should not authorize create collection
[22:18:34] <leolove> Hi. I need a very simple question to ask. My team and I was arguing over using mongodb exclusively or in polygot design. What is your opinion about that? What real-world non-technical explanation I can give to management convincing them that a small app can simply be using mongo exclusively?