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

Honor supports_http_options: false by dropping them when found #162

Merged
merged 3 commits into from
Jan 5, 2019

Conversation

mcg1969
Copy link
Collaborator

@mcg1969 mcg1969 commented Oct 31, 2018

As currently implemented, the supports_http_options flag has no useful impact.

For notebooks and bokeh apps, supports_http_options defaults to true, which allows the code to translate these options to a form that these types of applications can understand. Overriding this default, and setting supports_http_options to false, would break both of these apps. It would be better therefore if this option is not available for these cases.

On the other hand, for scripts (e.g., windows and unix), the flag has no effect whatsoever. If the HTTP options are passed to an anaconda-project run command, they are passed through unchanged, no matter what the value of this setting is.

This simple PR solves the second case, but not the first. It causes anaconda-project to properly respect an supports_http_options: false setting for scripts, by stripping those options out before constructing the full shell command..

@mcg1969 mcg1969 force-pushed the no-http-options branch 3 times, most recently from a9c2e29 to 569de88 Compare January 5, 2019 19:50
@mcg1969 mcg1969 merged commit 77eb725 into anaconda:master Jan 5, 2019
@mcg1969 mcg1969 deleted the no-http-options branch January 5, 2019 21:51
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.

None yet

1 participant