You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/06/28 13:50:00 UTC

[jira] [Commented] (AIRFLOW-4723) Remove the deprecated pass-through conf methods

    [ https://issues.apache.org/jira/browse/AIRFLOW-4723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16874934#comment-16874934 ] 

Ash Berlin-Taylor commented on AIRFLOW-4723:
--------------------------------------------

Turns out we haven't been _actually_ issuing warnings for this

> Remove the deprecated pass-through conf methods
> -----------------------------------------------
>
>                 Key: AIRFLOW-4723
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4723
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: configuration
>    Affects Versions: 2.0.0
>            Reporter: Bas Harenslak
>            Assignee: Bas Harenslak
>            Priority: Major
>
> This has been deprecated since 2016 (airflow/configuration.py):
> {code}
> # Historical convenience functions to access config entries
> load_test_config = conf.load_test_config
> get = conf.get
> getboolean = conf.getboolean
> getfloat = conf.getfloat
> getint = conf.getint
> getsection = conf.getsection
> has_option = conf.has_option
> remove_option = conf.remove_option
> as_dict = conf.as_dict
> set = conf.set # noqa
> for func in [load_test_config, get, getboolean, getfloat, getint, has_option,
>              remove_option, as_dict, set]:
>     deprecated(
>         func,
>         "Accessing configuration method '{f.__name__}' directly from "
>         "the configuration module is deprecated. Please access the "
>         "configuration from the 'configuration.conf' object via "
>         "'conf.{f.__name__}'".format(f=func)){code}
>  Time to remove it and unify the way to access conf.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)