You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/03/20 14:54:44 UTC
[GitHub] [airflow] ashb edited a comment on issue #4335: [AIRFLOW-3458] Move
models.Connection into separate file
ashb edited a comment on issue #4335: [AIRFLOW-3458] Move models.Connection into separate file
URL: https://github.com/apache/airflow/pull/4335#issuecomment-474851078
@BasPH @Fokko I'd like to cherry-pick this in to 1.10.3, but do do that we need a deprecation shim.
I can do this with a few lines at the _end_ of models/__init__.py:
```python
# To avoid circular import on Python2.7 we need to define this at the _bottom_
from zope.deprecation import deprecated
from airflow.models.connection import Connection # noqa
deprecated('Connection', 'has been moved to airflow.models.connection package. Please update your code before Airflow 2.0')
```
Are you happy for me to "just" do that on the release branch?
Trying that https://github.com/ashb/airflow/commit/ae414097f46b9c4eef5e41907112b328fb13203d - tests running https://travis-ci.org/ashb/airflow/builds/508974769
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services