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

[AIRFLOW-6740] Remove Undocumented, Deprecated, Dysfunctional PROXY_FIX_NUM_PROXIES #7359

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

sbrandtb
Copy link
Contributor

@sbrandtb sbrandtb commented Feb 4, 2020

This parameter is deprecated by werkzeug, see: https://github.com/pallets/werkzeug/blob/0.16.1/src/werkzeug/middleware/proxy_fix.py#L113-L120

However, it is also broken. The value is acquired as string from the config, while it should be int like the other x_* attributes. Those were fixed in #6901, but num_proxies was forgotten.

I think we can safely remove it because:

  • There is virtually no possibility that someone is using that parameter in their config without raising an exception.
  • The configuration variable is not present in Airflow's docs or anywhere else anymore. The removed line is the only trace of it.

https://issues.apache.org/jira/browse/AIRFLOW-6740

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Feb 4, 2020
@boring-cyborg
Copy link

boring-cyborg bot commented Feb 4, 2020

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, pylint and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://apache-airflow-slack.herokuapp.com/

@sbrandtb sbrandtb force-pushed the remove_deprecated_and_unused_config branch 2 times, most recently from aa992b8 to a4712a5 Compare February 4, 2020 15:57
@sbrandtb sbrandtb changed the title [AIRFLOW-XXX] Remove Undocumented, Deprecated, Dysfunctional PROXY_FIX_NUM_PROXIES [AIRFLOW-XXXX] Remove Undocumented, Deprecated, Dysfunctional PROXY_FIX_NUM_PROXIES Feb 4, 2020
@sbrandtb sbrandtb force-pushed the remove_deprecated_and_unused_config branch from a4712a5 to bd35e3d Compare February 4, 2020 15:59
@ashb
Copy link
Member

ashb commented Feb 5, 2020

Change looks good, but this needs a jira ticket please.

@sbrandtb sbrandtb force-pushed the remove_deprecated_and_unused_config branch 3 times, most recently from f2f7fad to 2b66b2a Compare February 5, 2020 20:12
@sbrandtb sbrandtb changed the title [AIRFLOW-XXXX] Remove Undocumented, Deprecated, Dysfunctional PROXY_FIX_NUM_PROXIES [AIRFLOW-6740] Remove Undocumented, Deprecated, Dysfunctional PROXY_FIX_NUM_PROXIES Feb 5, 2020
…IX_NUM_PROXIES

This parameter is deprecated by werkzeug, see:
https://github.com/pallets/werkzeug/blob/0.16.1/src/werkzeug/middleware/proxy_fix.py#L113-L120

However, it is also broken. The value is acquired as string from the
config, while it should be int like the other `x_*` attributes. Those
were fixed in apache#6901, but `num_proxies` was forgotten.

I think we can safely remove it because:

* There is virtually no possibility that someone is using that parameter
  in their config without raising an exception.
* The configuration variable is not present in Airflow's docs or
   anywhere else anymore. The removed line is the only trace of it.

More details:
https://issues.apache.org/jira/browse/AIRFLOW-6740
@sbrandtb sbrandtb force-pushed the remove_deprecated_and_unused_config branch from 2b66b2a to 820b3a8 Compare February 5, 2020 20:13
@sbrandtb
Copy link
Contributor Author

sbrandtb commented Feb 5, 2020

@ashb Done.

@sbrandtb
Copy link
Contributor Author

sbrandtb commented Feb 5, 2020

@ashb weird. One CI job failed with "fatal: unable to access 'https://github.com/apache/airflow.git/': Failed to connect to github.com port 443: Connection timed out". Looks like it could be a temporary issue. How to retrigger the CI?

@mik-laj
Copy link
Member

mik-laj commented Feb 5, 2020

I restarted job.

@ashb ashb merged commit 936f7fe into apache:master Feb 6, 2020
@boring-cyborg
Copy link

boring-cyborg bot commented Feb 6, 2020

Awesome work, congrats on your first merged pull request!

galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
…IX_NUM_PROXIES (apache#7359)

This parameter is deprecated by werkzeug, see:
https://github.com/pallets/werkzeug/blob/0.16.1/src/werkzeug/middleware/proxy_fix.py#L113-L120

However, it is also broken. The value is acquired as string from the
config, while it should be int like the other `x_*` attributes. Those
were fixed in apache#6901, but `num_proxies` was forgotten.

I think we can safely remove it because:

* There is virtually no possibility that someone is using that parameter
  in their config without raising an exception.
* The configuration variable is not present in Airflow's docs or
   anywhere else anymore. The removed line is the only trace of it.

More details:
https://issues.apache.org/jira/browse/AIRFLOW-6740
kaxil pushed a commit that referenced this pull request Mar 17, 2020
…IX_NUM_PROXIES (#7359)

This parameter is deprecated by werkzeug, see:
https://github.com/pallets/werkzeug/blob/0.16.1/src/werkzeug/middleware/proxy_fix.py#L113-L120

However, it is also broken. The value is acquired as string from the
config, while it should be int like the other `x_*` attributes. Those
were fixed in #6901, but `num_proxies` was forgotten.

I think we can safely remove it because:

* There is virtually no possibility that someone is using that parameter
  in their config without raising an exception.
* The configuration variable is not present in Airflow's docs or
   anywhere else anymore. The removed line is the only trace of it.

More details:
https://issues.apache.org/jira/browse/AIRFLOW-6740

(cherry picked from commit 936f7fe)
kaxil pushed a commit that referenced this pull request Mar 19, 2020
…IX_NUM_PROXIES (#7359)

This parameter is deprecated by werkzeug, see:
https://github.com/pallets/werkzeug/blob/0.16.1/src/werkzeug/middleware/proxy_fix.py#L113-L120

However, it is also broken. The value is acquired as string from the
config, while it should be int like the other `x_*` attributes. Those
were fixed in #6901, but `num_proxies` was forgotten.

I think we can safely remove it because:

* There is virtually no possibility that someone is using that parameter
  in their config without raising an exception.
* The configuration variable is not present in Airflow's docs or
   anywhere else anymore. The removed line is the only trace of it.

More details:
https://issues.apache.org/jira/browse/AIRFLOW-6740

(cherry picked from commit 936f7fe)
kaxil pushed a commit to astronomer/airflow that referenced this pull request Mar 19, 2020
…IX_NUM_PROXIES (apache#7359)

This parameter is deprecated by werkzeug, see:
https://github.com/pallets/werkzeug/blob/0.16.1/src/werkzeug/middleware/proxy_fix.py#L113-L120

However, it is also broken. The value is acquired as string from the
config, while it should be int like the other `x_*` attributes. Those
were fixed in apache#6901, but `num_proxies` was forgotten.

I think we can safely remove it because:

* There is virtually no possibility that someone is using that parameter
  in their config without raising an exception.
* The configuration variable is not present in Airflow's docs or
   anywhere else anymore. The removed line is the only trace of it.

More details:
https://issues.apache.org/jira/browse/AIRFLOW-6740

(cherry picked from commit 936f7fe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants