openwhyd icon indicating copy to clipboard operation
openwhyd copied to clipboard

Finish/fix migration to Mongodb 3

Open adrienjoly opened this issue 4 years ago โ€ข 1 comments

TODO

  • [ ] fix circular dependencies (see warnings included below)
  • [ ] DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
  • [ ] in calls to find(): fields: --> projection:
  • [ ] remove remaining references to deprecated functions (e.g. count() and remove())

Refs:


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

adrienjoly avatar Oct 26 '19 08:10 adrienjoly

After migrating to mongodb client v3 (see PRs #356 and #355, running in production for 2 days), we're getting the following warnings (and probably many others):

โŒ Error -- Sun, 08 Nov 2020 13:49:17 GMT (node:4241) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
โŒ Error -- Sun, 08 Nov 2020 13:49:17 GMT (node:4241) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
โŒ Error -- Sun, 08 Nov 2020 13:49:17 GMT (node:4241) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
โŒ Error -- Sun, 08 Nov 2020 13:49:17 GMT (node:4241) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency

...as spotted in https://github.com/openwhyd/openwhyd/runs/1370367735#step:10:40.

adrienjoly avatar Nov 08 '20 14:11 adrienjoly

Done in #630.

adrienjoly avatar Jul 27 '23 06:07 adrienjoly