-
Notifications
You must be signed in to change notification settings - Fork 12
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
Mongo :: instantiate MongoClient with kwargs instead of building a connection string #120
Conversation
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
==========================================
- Coverage 98.29% 98.23% -0.06%
==========================================
Files 33 33
Lines 1759 1758 -1
==========================================
- Hits 1729 1727 -2
- Misses 30 31 +1
Continue to review full report at Codecov.
|
@@ -305,7 +304,7 @@ def test_status_bad_host(mongo_connector): | |||
('Host connection', None), | |||
('Authenticated', None), | |||
] | |||
assert 'not known' in status['error'] | |||
assert len(status['error']) > 0 |
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.
Pourquoi avoir changé ce test ?
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.
le message d'erreur qui est renvoyé dépends de configurations système, et ne contient pas toujours la string "not known"
* unpin urllib3 (which was pinned in #120) to avoid conflicts in Toucan api with responses 0.10.16 * bump version number
DataSet type is defined as two properties: - `headers`: a list of objects defining columns - each column is itself defined by a `name` and an optional `type`. We'll probably add extra metadata later, - `data`: a list of list of values Use this type in the `DataViewer` component. Related to ToucanToco/weaverbird#26
Instantiate
MongoClient
with kwargs rather than with a connection string built from the connector parameters.It means that it will be easier to add any supported
MongoClient
kwargs at theMongoConnector
level.It also means that we can use a connection string in the
host
field and leave out all the other parameters. In the end we can natively support a lot more connections options than we cover with the few parameters that we have explicitly listed inMongoConnector
. cf. https://docs.mongodb.com/manual/reference/connection-string/And more specifically this means that when you create a new MongoDB Atlas cluster, you can just copy and paste the connection string that is given by Atlas into our configurations files.