-
Notifications
You must be signed in to change notification settings - Fork 260
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
upgrade mongodb driver #472
Conversation
@naderio would you mind rebasing this to master? |
Any chance @naderio you could get this ready to be merged? I'd highly appreciate it! |
@mikermcneil this PR is patch intended for version 0.12.x (branch 0.12.x) and NOT for 1.x (branch master) .. therefore rebasing against master is not needed |
CHANGELOG.md
Outdated
@@ -1,5 +1,10 @@ | |||
# Sails-Mongo Changelog | |||
|
|||
### 0.12.4 | |||
|
|||
* [INTERNAL] Bump `mongodb` version for |
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.
This sentence is not finished
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.
@patrick-webs fixed, thanks
@mikermcneil Is this likely/unlikely to be merged at some point and released as 0.12.4? I'm investigating updating a sails 0.12 app to work with newer MongoDB versions and hoping to avoid having to upgrade to sails 1.x at the same time, another 0.12.x release would be great for us. MongoDB 3.0 and 3.2 support has been EOLed as of this month and Mongo's driver documentation states that a driver >=2.2.12 is recommended to use MongoDB 3.4. |
cc @luislobo |
@patrick-webs @mikermcneil I actually have a fork with a branch that has updated mongodb drivers that work with Atlas (we are using it ourselves). And in the near future, I plan to evaluate migrating sails-mongo to the latest native mongodb driver. But at least the one I have works. |
I will compare this PR and our branch to see if we can join efforts. |
FYI I have this version running for months in production with MongoDB 3.6 and no issues. |
@naderio yeah, my branch had the same issues. I'l double check mine and yours, and see if it is fully compatible with MongoDB Atlas |
FYI @naderio , I tried using your branch, it worked fine to connect to a local MongoDB 3.4 instance. When I tried connecting to a MongoDB 3.4 on Atlas, I began to get issues causing sails to not start:
I found that I had to add a |
@patrick-webs Yeah, we had to do the same here too. I'll try to get some time extra to review this PR during the weekend. |
@naderio I've added several comments in the PR's code. To add to those, what @patrick-webs mentions should be added to the README.md too, as an "atlas" configuration section. |
@luislobo @patrick-webs ssl issue should be fixed, tested with mongodb atlas |
any chance for this to be merged soon? |
I just received an email from mLab that they upgrade all mongo instances to 3.6 by May 7th. Any chance to get this PR merged soon? |
FWIW, I privately forked 97e6a4f and published it to a private npm module for my use, we've been using it in production with MongoDB Atlas without issue for the last 6 months. |
@patrick-webs can you please share you implementation? The mentioned repo is private. |
I applied the fixes here: https://github.com/TypischTouristik/sails-mongo |
@simonmilz Sorry, I referenced the wrong repo in my previous comment. I updated my comment to reference the commit from this pull request that I meant to reference. The fork I am using has no other changes besides private configuration files for building and uploading to my private npm repository. |
Thanks for sharing this. Has anyone tried to upgrade the driver on the legacy branch to >=3.1 for MongoDB 4.0 support? |
@manuelzi we are working on this right now. |
@simonmilz Ok thanks, let me know if you need help testing. |
Hey @naderio, @AtiX, @simonmilz, @manuelzi, @constantx, and, @patrick-webs, 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 @naderio 💙 Also you can check here for the upgrade information. 👇🏾 |
^2.2.22
(to support MongoDB 3.6) and update connection optionsfind()
anddestroy()