-
Notifications
You must be signed in to change notification settings - Fork 77
DOCSP-45732-add-proxy-setting-compass-config #716
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
DOCSP-45732-add-proxy-setting-compass-config #716
Conversation
✅ Deploy Preview for docs-compass ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
source/settings/config-file.txt
Outdated
with. For more information on connecting to your deployment with a | ||
proxy, see :ref:`ssh-connection`. | ||
|
||
You must pass either a URL or a DevtoolsProxyOptions object as JSON |
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.
Users won't know what a DevtoolsProxyOptions
object is -- we'll need to explain what this means, or maybe give an example.
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.
thank you for your review, @betsybutton ; changes made, let me know how the approach i took looks to you.
source/settings/config-file.txt
Outdated
for the Proxy setting. You can also set the Proxy setting to an empty | ||
string. |
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.
Can we specify that if proxy
is set to an empty string, no proxy will be used?
source/settings/config-file.txt
Outdated
proxy, see :ref:`ssh-connection`. | ||
|
||
You must pass either a URL or a ``DevtoolsProxyOptions`` object as JSON | ||
for the Proxy setting. A ``DevtoolsProxyOptions`` object takes the following |
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.
There's a mixture of proxy with and without capital P here, might be good to align them (I see no reason why we'd capitalize it)
source/settings/config-file.txt
Outdated
useEnvironmentVariableProxies: boolean; | ||
sshOptions: { | ||
identityKeyFile: string; | ||
identityKeyPassphrase: string; | ||
}; | ||
ca: ConnectionOptions['ca']; | ||
env: Record<string, string | undefined>; |
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.
useEnvironmentVariableProxies: boolean; | |
sshOptions: { | |
identityKeyFile: string; | |
identityKeyPassphrase: string; | |
}; | |
ca: ConnectionOptions['ca']; | |
env: Record<string, string | undefined>; |
I wouldn't expose any of these options to users, they're meant to be internal. proxy
and noProxyHosts
are the relevant options here.
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.
thank you for taking a look at this @addaleax, could you take a second look at the changes, when you get a chance?
source/settings/config-file.txt
Outdated
with. For more information on connecting to your deployment with a | ||
proxy, see :ref:`ssh-connection`. | ||
|
||
You must pass either a URL or a ``DevtoolsProxyOptions`` object as JSON |
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.
I'd still avoid using DevtoolsProxyOptions
here if we can. It's not a meaningful term for users.
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.
thanks @addaleax ! just to clarify, do you think we should take out the references to DevtoolsProxyOptions
and the JSON block showing the format for the object, or just take out the references to DevtoolsProxyOptions
but keep the code block?
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.
It's just the name that's meaningless, the JS block (it's JS here, not JSON, although the users will need to use JSON – maybe also worth adjusting) defines what the structure is so there's no need to define a name that's never used again
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.
Agreed - it would be better to have the example represent the actual structure the value needs to take.
source/settings/config-file.txt
Outdated
- Allows you to enforce or define a proxy to connect to your deployment | ||
with. For more information on connecting to your deployment with a |
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.
Super nit pick, but ending a sentence with "with" sounds a bit informal. Should we reword this to:
Enables you to specify or enforce the use of a proxy for connecting to your deployment.
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.
thanks @betsybutton ! could you take a final look at this to see if the changes look ok to you?
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.
Thanks @amalhotra-mdb ! I just left a couple suggestions!
source/settings/config-file.txt
Outdated
- Enables you to specify or enforce the use of a proxy for connecting | ||
to your deployment. For more information on connecting to your |
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.
[suggestion] to avoid using a gerund
- Enables you to specify or enforce the use of a proxy for connecting | |
to your deployment. For more information on connecting to your | |
- Enables you to specify or enforce the use of a proxy to connect | |
to your deployment. For more information on connecting to your |
source/settings/config-file.txt
Outdated
You must pass either a URL or pass the following format: | ||
|
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.
[suggestion] for minimalism
You must pass either a URL or pass the following format: | |
You must pass either a URL or the following format: | |
source/settings/config-file.txt
Outdated
If you set ``proxy`` to an empty string, no | ||
proxy will be used. |
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.
[suggestion] for active voice
If you set ``proxy`` to an empty string, no | |
proxy will be used. | |
If you set ``proxy`` to an empty string, your deployment does not use a proxy. |
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.
If you want this, it should be
If you set ``proxy`` to an empty string, no | |
proxy will be used. | |
If you set ``proxy`` to an empty string, Compass does not use a proxy. |
Thanks for your review, @ltran-mdb2 ! Could you take another look at this, whenever you get a chance? Thank you! |
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.
LGTM! Thanks @amalhotra-mdb !
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.
LGTM, thank you Anika!
DESCRIPTION
add a new proxy setting to the Compass config file docs.
STAGING
https://deploy-preview-716--docs-compass.netlify.app/settings/config-file/
JIRA
https://jira.mongodb.org/browse/DOCSP-45732
BUILD LOG
Self-Review Checklist
External Review Requirements
What's expected of an external reviewer?