PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 9th of May, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[18:48:33] <vin401v> question... how is ObjectId not compatible with string during deserialization?
[18:49:14] <vin401v> using the c# driver and it's throwing the "cannot deserialize a 'String' from BsonType 'ObjectId'" exception
[18:50:29] <vin401v> i can't modify the class, or else it'd be an easy fix
[18:51:24] <vin401v> I don't actually care about the ID at this point. The rest of the type has matching fields, and _that's_ the data I want. The ID could be a string, or nonexistent.
[18:51:40] <vin401v> is there a way to make this work? thanks in advance.
[18:56:33] <vin401v> think I might have found an answer: https://stackoverflow.com/questions/45043266/how-to-apply-bsonrepresentation-attribute-by-convention-when-using-mongodb
[19:01:43] <vin401v> is it possible to ignore only ONE missing property during deserialization?
[19:02:12] <vin401v> I'd like the default behavior (an error) to persist for all properties EXCEPT _id
[19:02:30] <vin401v> since it's possible to reinsert with a filter by ID without losing data
[19:02:43] <vin401v> does that make sense?
[20:09:58] <GothAlice> Just wanted to pop by and mention I’ve completed my cleanroom reimplementation of ObjectId: https://github.com/marrow/mongo/blob/next/marrow/mongo/util/oid.py?ts=4 to maintain support for older generation schemes. (We aggregate a number of our stats on things like the HWID, e.g. identifying effectiveness and fairness of balancing by determining spread of session identifier IDs.)
[20:10:40] <GothAlice> (Fully tested, including BSON serialization and comparison with bson.ObjectId instances, all that jazz.)
[20:11:24] <GothAlice> Additionally, this variant permits explicit specification of the hardware ID. Don’t map random values to your own hardware management identifiers, specify your own identifiers if you want.
[20:11:47] <vin401v> hey, signs of life in this channel!
[20:12:06] <GothAlice> vin401v: I am mildly curious how long ago MongoDB, Inc. abandoned this place.
[20:12:15] <GothAlice> And if there was an instigating incident or something.
[20:13:02] <vin401v> maybe didn't want to get so many unstructured bugs/FRs
[20:13:21] <GothAlice> Could be, albeit IRC is pretty easy to ignore.
[20:13:45] <vin401v> even so, i'd expect more user questions and answers
[20:14:57] <GothAlice> vin401v: 2 or 3 years back I helped moderate this channel; must admit there’s a fair amount of weariness that comes from the Nth+1 time you help someone rename a collection Mongoose constructed with the name “[object Object]”.
[20:15:18] <GothAlice> Or try to explain why storing ObjectIDs as hex-encoded strings is Wrong™.
[20:15:55] <vin401v> oh, definitely
[20:16:02] <GothAlice> (And, no, really, it’s the cause of your bug, why you’re getting no records back on your find. Really. I swear. Just try it, you dope! ;)
[20:17:43] <vin401v> i've never been one to turn down help, even if it sounds like "yes that's possible, it's called <concept name>, now do some searching before you ask again"
[20:19:01] <vin401v> some of the people who seemed rudest at first ended up being great, once they saw that you actually did some research and had a novel problem
[20:19:08] <GothAlice> vin401v: I have a keyboard expando macro. :g: → https://duckduckgo.com/?q= (ready to type search term), or, if I’m feeling particularly unhelpful that day, :goog: → http://lmgtfy.com/?q= (same). E.g. http://lmgtfy.com/?q=python+typing+module
[20:22:56] <vin401v> everyone should have one in their arsenal, like an ask-to-ask bot command