-
Notifications
You must be signed in to change notification settings - Fork 259
Upgrade mongodb to 4.8.1 (min version supporting mongo 6) #497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for submitting this pull request, @vidueirof! We'll look at it ASAP. In the mean time, here are some ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly. For help with questions about Sails, click here. |
|
Ok, looking into AppVeyor error |
|
Mongo node driver 4.x and superior it's not compatible with node 10. More info: https://www.mongodb.com/docs/drivers/node/current/compatibility/#language-compatibility |
|
I have a PR that updates travis and replaces it with Github actions, using newer mongodb versions. I could add other node versions and MongoDB 6 @mikermcneil What do you think about deprecating non-LTS node versions? |
|
I think we should get my PR approved first, so that we have a working CI, and then you can update it with the newer mongdb versions. |
| var mongoCollection = db.collection(tableName); | ||
| mongoCollection.find(mongoWhere).count(function countCb(err, nativeResult) { | ||
| mongoCollection.countDocuments(mongoWhere, function countCb(err, nativeResult) { | ||
| //mongoCollection.find(mongoWhere).count(function countCb(err, nativeResult) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this comment?
| _.each(s3q.newRecords, function (record){ | ||
| record.id = nativeResult.insertedIds[index]; | ||
| ++index; | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it normally _id?
| // ============================================ | ||
|
|
||
| s3q.newRecord.id = nativeResult.insertedId; | ||
| nativeResult.ops = [s3q.newRecord]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mike: Hmmm, why mutate nativeResult?
Should this be _id?
|
Hey @vidueirof, I'll be closing this PR as this other PR has implemented the upgrade and it has been merged. Thank you for working on this 💙 Also you can check here for the upgrade information. 👇🏾 |
Tested locally with mongo 4, 5 and 6. Also with Atlas (free tier).