Moritz Beller

Results 33 comments of Moritz Beller

@Shnatsel https://github.com/praezi/rust

Ok. Thanks for checking. **Add IDE field to all documents which do not already have one** `db.intervals.update({"ide":{$exists:false}}, {$set:{"ide":"ec"}}, true, true)` Question: What do the last two false, true do? I...

Check number of intervals with non-ide field: `> db.intervals.count({"ide":{$exists:false}}) 8298778` Then update them `db.intervals.update({"ide":{$exists:false}},{$set: {"ide":"ec"}}, true, true)`

OK, this seems to have worked `> db.intervals.update({"ide":{$exists:false}},{$set: {"ide":"ec"}}, true, true) WriteResult({ "nMatched" : 8298778, "nUpserted" : 0, "nModified" : 8298778 })` and we get `> db.intervals.count({"ide":{$exists:false}}) 0`

Note to myself: I still need to perform the user-to-IDE matching suggested by Igor in the last comment so that user accounts have the best possible IDE field.

Get the empty user/project registrations, perform this check: `db.projects.find({"ide":{$exists:false},"wdv":"1.5.0"}).forEach(function(item) {printjson(db.intervals.distinct("ide",{"projectId":item.id}) + " "+ item.id);})` Do some Emacs-magic. Put them in a `var lli = [ "id1", "id2" ]` Then run:...