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

Add setting to allow user to change timeout. #900

Merged
merged 3 commits into from
Oct 25, 2018
Merged

Add setting to allow user to change timeout. #900

merged 3 commits into from
Oct 25, 2018

Conversation

PrashanthCorp
Copy link
Contributor

Fixes #809

@PrashanthCorp PrashanthCorp requested a review from a team October 24, 2018 21:06
package.json Outdated
@@ -765,6 +765,11 @@
"description": "Command to execute or full path to folder and executable to start the Mongo shell, needed by some Mongo scrapbook commands. If empty, will search in the system path for 'mongo'.",
"default": null
},
"mongo.shell.timeoutInMilliseconds": {
"type": "number",
"description": "The duration allowed (in milliseconds) for the mongo shell to execute a command. Default value is 5 seconds",
Copy link
Contributor

Choose a reason for hiding this comment

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

Mongo

Copy link
Contributor

Choose a reason for hiding this comment

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

I like "inMilliseconds" for variable names, but not so sure users will like it for options. I'd go with simple mongo.shell.timeout

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mongo in 'Mongo shell'?

Copy link
Member

Choose a reason for hiding this comment

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

If you're going to get rid of "inMilliseconds" I would make the timeout based on seconds. I feel like that's much more common for these types of settings

Copy link
Contributor

Choose a reason for hiding this comment

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

Current settings are mixed:
image

But I'm good with seconds.

@PrashanthCorp PrashanthCorp merged commit bfa0352 into master Oct 25, 2018
@PrashanthCorp PrashanthCorp deleted the ps/809 branch November 1, 2018 17:25
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants