You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fokko Driesprong (JIRA)" <ji...@apache.org> on 2018/05/16 08:47:00 UTC

[jira] [Resolved] (AIRFLOW-2467) Improve AirflowImporter warn message

     [ https://issues.apache.org/jira/browse/AIRFLOW-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fokko Driesprong resolved AIRFLOW-2467.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
                   1.10.0

Issue resolved by pull request #3361
[https://github.com/apache/incubator-airflow/pull/3361]

> Improve AirflowImporter warn message
> ------------------------------------
>
>                 Key: AIRFLOW-2467
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2467
>             Project: Apache Airflow
>          Issue Type: Task
>            Reporter: Dan Fowler
>            Assignee: Dan Fowler
>            Priority: Trivial
>             Fix For: 1.10.0, 2.0.0
>
>
> Currently when importing modules from airflow.operators there is a warning message that looks like this:
> {code:java}
> [2018-05-14 02:43:19,205] {{logging_mixin.py:84}} WARNING - /usr/local/airflow/code/airflow/utils/helpers.py:351: DeprecationWarning: Importing DummyOperator directly from <module 'airflow.operators' from '/usr/local/airflow/code/airflow/operators/__init__.py'> has been deprecated. Please import from '<module 'airflow.operators' from '/usr/local/airflow/code/airflow/operators/__init__.py'>.[operator_module]' instead. Support for direct imports will be dropped entirely in Airflow 2.0.
> {code}
> It's not that clear what the issue is, this message should be improved for clarity. Most likely just use the module name rather than the module class's str repr.
>  



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