-
Notifications
You must be signed in to change notification settings - Fork 79
MONGOSH-268: Fix autocompletion in compass-shell #251
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ class CliServiceProvider implements ServiceProvider { | |
} | ||
|
||
private readonly mongoClient: MongoClient; | ||
private readonly uri: string; | ||
private readonly uri?: string; | ||
|
||
/** | ||
* Instantiate a new CliServiceProvider with the Node driver's connected | ||
|
@@ -112,13 +112,15 @@ class CliServiceProvider implements ServiceProvider { | |
// eslint-disable-next-line no-empty | ||
} catch (e) { | ||
} | ||
|
||
const connectInfo = getConnectInfo( | ||
this.uri, | ||
this.uri ? this.uri : '', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should perhaps add a test for an empty uri in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call - added a test. I also noticed we didn't have a |
||
version, | ||
buildInfo, | ||
cmdLineOpts, | ||
topology | ||
); | ||
|
||
return { | ||
buildInfo: buildInfo, | ||
topology: topology, | ||
|
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.
Didn't see these tests being run with the lerna tests, so I added the test script.
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.
nice! i don't think this was intentionally left out.