Skip to content
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

Support passing extra connection options to the Mongo driver #10529

Merged
merged 13 commits into from
May 3, 2018

Conversation

saplla
Copy link
Contributor

@saplla saplla commented Apr 20, 2018

Fixes #10526

@CLAassistant
Copy link

CLAassistant commented Apr 20, 2018

CLA assistant check
All committers have signed the CLA.

@saplla
Copy link
Contributor Author

saplla commented Apr 20, 2018

I can't see anywhere obvious to document this. Any pointers?

@kaiiiiiiiii
Copy link
Contributor

Have a look at Rocket.Chat/docs.

Best place would be somewhere under “Installing and Updating” :)

@@ -13,6 +13,12 @@ Meteor.startup(function() {
}
}

var mongoOptionStr = process.env.MONGO_OPTIONS;
if (typeof(mongoOptionStr) !== 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with typeof mongoOptionStr to stay consistent with the rest of our codebase.

@theorenck theorenck added this to the 0.64.0 milestone Apr 20, 2018
Copy link
Member

@sampaiodiego sampaiodiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at how Mongo.setConnectionOptions works, looks like we cannot call it multiple times.. since we're calling it already, I'll ask you to change there to merge the options received from process.env.MONGO_OPTIONS

@RocketChat RocketChat deleted a comment Apr 23, 2018
@RocketChat RocketChat deleted a comment Apr 23, 2018
@RocketChat RocketChat deleted a comment Apr 23, 2018
@saplla
Copy link
Contributor Author

saplla commented Apr 23, 2018

@sampaiodiego Done.
@graywolf336 Done.

@saplla
Copy link
Contributor Author

saplla commented Apr 23, 2018

Documentation PR at https://github.com/RocketChat/docs/pull/707

@theorenck theorenck modified the milestones: 0.64.0, 0.65.0 Apr 23, 2018
@saplla
Copy link
Contributor Author

saplla commented Apr 24, 2018

@graywolf336 / @sampaiodiego any chance you could review this today please?

@rodrigok rodrigok merged commit 7bbf956 into RocketChat:develop May 3, 2018
@saplla saplla deleted the mongo-connection-options branch May 3, 2018 14:06
@rodrigok rodrigok mentioned this pull request May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants