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-2928] replace uuid1 with uuid4 for better randomness #3779

Merged
merged 1 commit into from
Aug 29, 2018

Conversation

imsut
Copy link
Contributor

@imsut imsut commented Aug 21, 2018

Description

some components in Airflow use the first 8 bytes of uuid.uuid1 to generate a unique job name. The first 8 bytes, however, seem to come from clock. so if this is called multiple times in a short time period, two ids will likely collide.
uuid.uuid4 provides random values.

Tests

Python 2.7.15 (default, Jun 17 2018, 12:46:58)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import uuid
>>> for i in range(10):
...   uuid.uuid1()
...
UUID('e8bc9959-a586-11e8-ab8c-8c859010d0c2')
UUID('e8c254e3-a586-11e8-ac39-8c859010d0c2')
UUID('e8c2560f-a586-11e8-8251-8c859010d0c2')
UUID('e8c256c2-a586-11e8-994a-8c859010d0c2')
UUID('e8c25759-a586-11e8-9ba6-8c859010d0c2')
UUID('e8c257e6-a586-11e8-a854-8c859010d0c2')
UUID('e8c2587d-a586-11e8-89e9-8c859010d0c2')
UUID('e8c2590a-a586-11e8-a825-8c859010d0c2')
UUID('e8c25994-a586-11e8-9421-8c859010d0c2')
UUID('e8c25a21-a586-11e8-83fd-8c859010d0c2')
>>> for i in range(10):
...   uuid.uuid4()
...
UUID('f1eba69f-18ea-467e-a414-b18d67f34a51')
UUID('aaa4e18e-d4e6-42c9-905c-3cde714c2741')
UUID('82f55c27-69ae-474b-ab9a-afcc7891587c')
UUID('fab63643-ad33-4307-837b-68444fce7240')
UUID('c4efca6c-3d1b-436c-8b09-e9b7f55ccefb')
UUID('58de3a76-9d98-4427-8232-d6d7df2a1904')
UUID('4f0a55e8-1357-4697-a345-e60891685b00')
UUID('0fed47a3-07b6-423e-ae2e-d821c440cb63')
UUID('144b2c55-a9bd-431d-b536-239fb2048a5e')
UUID('d47fd8a0-48e9-4dcc-87f7-42c022c309a8')
Attachments

@codecov-io
Copy link

codecov-io commented Aug 21, 2018

Codecov Report

Merging #3779 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3779      +/-   ##
==========================================
- Coverage   77.67%   77.67%   -0.01%     
==========================================
  Files         204      204              
  Lines       15840    15840              
==========================================
- Hits        12304    12303       -1     
- Misses       3536     3537       +1
Impacted Files Coverage Δ
airflow/models.py 88.74% <0%> (-0.05%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 27309b1...31c2c8d. Read the comment docs.

@msumit
Copy link
Contributor

msumit commented Aug 29, 2018

lgtm

@msumit msumit merged commit c3939c8 into apache:master Aug 29, 2018
wmorris75 pushed a commit to modmed/incubator-airflow that referenced this pull request Sep 4, 2018
add 8fit to list of companies

[AIRFLOW-XXX] Add THE ICONIC to the list of orgs using Airflow

Closes apache#3807 from ksaagariconic/patch-2

[AIRFLOW-2933] Enable Codecov on Docker-CI Build (apache#3780)

- Add missing variables and use codecov instead of coveralls.
  The issue why it wasn't working was because missing environment variables.
  The codecov library heavily depends on the environment variables in
  the CI to determine how to push the reports to codecov.

- Remove the explicit passing of the variables in the `tox.ini`
  since it is already done in the `docker-compose.yml`,
  having to maintain this at two places makes it brittle.

- Removed the empty Codecov yml since codecov was complaining that
  it was unable to parse it

[AIRFLOW-2960] Pin boto3 to <1.8 (apache#3810)

Boto 1.8 has been released a few days ago and they break our tests.

[AIRFLOW-2957] Remove obselete sensor references

[AIRFLOW-2959] Refine HTTPSensor doc (apache#3809)

HTTP Error code other than 404,
or Connection Refused, would fail the sensor
itself directly (no more poking).

[AIRFLOW-2961] Refactor tests.BackfillJobTest.test_backfill_examples test (apache#3811)

Simplify this test since it takes up 15% of all the time. This is because
every example dag, with some exclusions, are backfilled. This will put some
pressure on the scheduler and everything. If the test just covers a couple
of dags should be sufficient

254 seconds:
[success] 15.03% tests.BackfillJobTest.test_backfill_examples: 254.9323s

[AIRFLOW-XXX] Remove residual line in Changelog (apache#3814)

[AIRFLOW-2930] Fix celery excecutor scheduler crash (apache#3784)

Caused by an update in PR apache#3740.
execute_command.apply_async(args=command, ...)
-command is a list of short unicode strings and the above code pass multiple
arguments to a function defined as taking only one argument.
-command = ["airflow", "run", "dag323",...]
-args = command = ["airflow", "run", "dag323", ...]
-execute_command("airflow","run","dag3s3", ...) will be error and exit.

[AIRFLOW-2916] Arg `verify` for AwsHook() & S3 sensors/operators (apache#3764)

This is useful when
1. users want to use a different CA cert bundle than the
  one used by botocore.
2. users want to have '--no-verify-ssl'. This is especially useful
  when we're using on-premises S3 or other implementations of
  object storage, like IBM's Cloud Object Storage.

The default value here is `None`, which is also the default
value in boto3, so that backward compatibility is ensured too.

Reference:
https://boto3.readthedocs.io/en/latest/reference/core/session.html

[AIRFLOW-2709] Improve error handling in Databricks hook (apache#3570)

* Use float for default value
* Use status code to determine whether an error is retryable
* Fix wrong type in assertion
* Fix style to prevent lines from exceeding 90 characters
* Fix wrong way of checking exception type

[AIRFLOW-2854] kubernetes_pod_operator add more configuration items (apache#3697)

* kubernetes_pod_operator add more configuration items
* fix test_kubernetes_pod_operator test_faulty_service_account failure case
* fix review comment issues
* pod_operator add hostnetwork config
* add doc example

[AIRFLOW-2994] Fix command status check in Qubole Check operator (apache#3790)

[AIRFLOW-2928] Use uuid4 instead of uuid1 (apache#3779)

for better randomness.

[AIRFLOW-2993] s3_to_sftp and sftp_to_s3 operators (apache#3828)

[AIRFLOW-2993] s3_to_sftp and sftp_to_s3 operators (apache#3828)

[AIRFLOW-2993] s3_to_sftp and sftp_to_s3 operators (apache#3828)

[AIRFLOW-2993] s3_to_sftp and sftp_to_s3 operators (apache#3828)

[AIRFLOW-2993] s3_to_sftp and sftp_to_s3 operators (apache#3828)

[AIRFLOW-2993] Added sftp_to_s3 and s3_to_sftp operators (apache#3828)

[AIRFLOW-2993] Added sftp_to_s3 and s3_to_sftp operators (apache#3828)

[AIRFLOW-2949] Add syntax highlight for single quote strings (apache#3795)

* AIRFLOW-2949: Add syntax highlight for single quote strings

* AIRFLOW-2949: Also updated new UI main.css

[AIRFLOW-2948] Arg check & better doc - SSHOperator & SFTPOperator (apache#3793)

There may be different combinations of arguments, and
some processings are being done 'silently', while users
may not be fully aware of them.

For example
- User only needs to provide either `ssh_hook`
  or `ssh_conn_id`, while this is not clear in doc
- if both provided, `ssh_conn_id` will be ignored.
- if `remote_host` is provided, it will replace
  the `remote_host` which wasndefined in `ssh_hook`
  or predefined in the connection of `ssh_conn_id`

These should be documented clearly to ensure it's
transparent to the users. log.info() should also be
used to remind users and provide clear logs.

In addition, add instance check for ssh_hook to ensure
it is of the correct type (SSHHook).

Tests are updated for this PR.

[AIRFLOW-XXX] Fix Broken Link in CONTRIBUTING.md

[AIRFLOW-2980] ReadTheDocs - Fix Missing API Reference

[AIRFLOW-2984] Convert operator dates to UTC (apache#3822)

Tasks can have start_dates or end_dates separately
from the DAG. These need to be converted to UTC otherwise
we cannot use them for calculation the next execution
date.

[AIRFLOW-2779] Make GHE auth third party licensed (apache#3803)

This reinstates the original license.

[AIRFLOW-XXX] Add Format to list of companies (apache#3824)

[AIRFLOW-2993] Added sftp_to_s3 and s3_to_sftp operators (apache#3828)

[AIRFLOW-2993] Added sftp_to_s3 and s3_to_sftp operators (apache#3828)

Addition of s3_to_sftp and sftp_to_s3 operators.

[AIRFLOW-2900] Show code for packaged DAGs (apache#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (apache#3821)

[AIRFLOW-2989] Add param to set bootDiskType in Dataproc Op (apache#3825)

Add param to set bootDiskType for master and
worker nodes in `DataprocClusterCreateOperator`

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-2993] Fix Docstrings for Operators (apache#3828)

Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-2993] Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-1762] Implement key_file support in ssh_hook create_tunnel

Switched to using sshtunnel package instead of
popen approach

Closes apache#3473 from NielsZeilemaker/ssh_hook

Addition of s3_to_sftp and sftp_to_s3 operators.

[AIRFLOW-2993] sftp_to_s3 and s3_to_sftp Operators (apache#3828)

Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-2993] Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-1762] Implement key_file support in ssh_hook create_tunnel

Switched to using sshtunnel package instead of
popen approach

Closes apache#3473 from NielsZeilemaker/ssh_hook

Addition of s3_to_sftp and sftp_to_s3 operators.

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-2993] Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-1762] Implement key_file support in ssh_hook create_tunnel

Switched to using sshtunnel package instead of
popen approach

Closes apache#3473 from NielsZeilemaker/ssh_hook

Addition of s3_to_sftp and sftp_to_s3 operators.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-2993] Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-1762] Implement key_file support in ssh_hook create_tunnel

Switched to using sshtunnel package instead of
popen approach

Closes apache#3473 from NielsZeilemaker/ssh_hook

[AIRFLOW-2900] Show code for packaged DAGs (apache#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (apache#3821)

[AIRFLOW-2989] Add param to set bootDiskType in Dataproc Op (apache#3825)

Add param to set bootDiskType for master and
worker nodes in `DataprocClusterCreateOperator`

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-2993] Fix Docstrings for Operators (apache#3828)

Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-2993] Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-1762] Implement key_file support in ssh_hook create_tunnel

Switched to using sshtunnel package instead of
popen approach

Closes apache#3473 from NielsZeilemaker/ssh_hook

Addition of s3_to_sftp and sftp_to_s3 operators.

[AIRFLOW-2993] sftp_to_s3 and s3_to_sftp Operators (apache#3828)

Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-2993] Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-1762] Implement key_file support in ssh_hook create_tunnel

Switched to using sshtunnel package instead of
popen approach

Closes apache#3473 from NielsZeilemaker/ssh_hook

Addition of s3_to_sftp and sftp_to_s3 operators.

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-2993] Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-1762] Implement key_file support in ssh_hook create_tunnel

Switched to using sshtunnel package instead of
popen approach

Closes apache#3473 from NielsZeilemaker/ssh_hook

Addition of s3_to_sftp and sftp_to_s3 operators.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-2993] Addition of s3_to_sftp and sftp_to_s3 operators.

Add 'steps' into template_fields in EmrAddSteps

Rendering templates which are in steps is especially useful if you
want to pass execution time as one of the paramaters of a step in
an EMR cluster. All fields in template_fields will get rendered.

[AIRFLOW-1762] Implement key_file support in ssh_hook create_tunnel

Switched to using sshtunnel package instead of
popen approach

Closes apache#3473 from NielsZeilemaker/ssh_hook

Addition of s3_to_sftp and sftp_to_s3 operators.

[AIRFLOW-2993] Renamed operators to meet name length requirements.

[AIRFLOW-2993] Renamed operators to meet name length requirements (apache#3828)

[AIRFLOW-2993] Corrected flake8 line diff format (apache#3828)

[AIRFLOW-2993] Corrected flake8 line diff format (apache#3828)

[AIRFLOW-2900] Show code for packaged DAGs (apache#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (apache#3821)

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

[AIRFLOW-2993] Corrected flake8 line diff format (apache#3828)

[AIRFLOW-2949] Add syntax highlight for single quote strings (apache#3795)

* AIRFLOW-2949: Add syntax highlight for single quote strings

* AIRFLOW-2949: Also updated new UI main.css

[AIRFLOW-XXX] Fix Broken Link in CONTRIBUTING.md

[AIRFLOW-2980] ReadTheDocs - Fix Missing API Reference

[AIRFLOW-2984] Convert operator dates to UTC (apache#3822)

Tasks can have start_dates or end_dates separately
from the DAG. These need to be converted to UTC otherwise
we cannot use them for calculation the next execution
date.

[AIRFLOW-2779] Make GHE auth third party licensed (apache#3803)

This reinstates the original license.

[AIRFLOW-XXX] Add Format to list of companies (apache#3824)

[AIRFLOW-2900] Show code for packaged DAGs (apache#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (apache#3821)

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

[AIRFLOW-2949] Add syntax highlight for single quote strings (apache#3795)

* AIRFLOW-2949: Add syntax highlight for single quote strings

* AIRFLOW-2949: Also updated new UI main.css

[AIRFLOW-XXX] Fix Broken Link in CONTRIBUTING.md

[AIRFLOW-2980] ReadTheDocs - Fix Missing API Reference

[AIRFLOW-2984] Convert operator dates to UTC (apache#3822)

Tasks can have start_dates or end_dates separately
from the DAG. These need to be converted to UTC otherwise
we cannot use them for calculation the next execution
date.

[AIRFLOW-2779] Make GHE auth third party licensed (apache#3803)

This reinstates the original license.

[AIRFLOW-XXX] Add Format to list of companies (apache#3824)

[AIRFLOW-2900] Show code for packaged DAGs (apache#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (apache#3821)

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

[AIRFLOW-2949] Add syntax highlight for single quote strings (apache#3795)

* AIRFLOW-2949: Add syntax highlight for single quote strings

* AIRFLOW-2949: Also updated new UI main.css

[AIRFLOW-2948] Arg check & better doc - SSHOperator & SFTPOperator (apache#3793)

There may be different combinations of arguments, and
some processings are being done 'silently', while users
may not be fully aware of them.

For example
- User only needs to provide either `ssh_hook`
  or `ssh_conn_id`, while this is not clear in doc
- if both provided, `ssh_conn_id` will be ignored.
- if `remote_host` is provided, it will replace
  the `remote_host` which wasndefined in `ssh_hook`
  or predefined in the connection of `ssh_conn_id`

These should be documented clearly to ensure it's
transparent to the users. log.info() should also be
used to remind users and provide clear logs.

In addition, add instance check for ssh_hook to ensure
it is of the correct type (SSHHook).

Tests are updated for this PR.

[AIRFLOW-XXX] Fix Broken Link in CONTRIBUTING.md

[AIRFLOW-2980] ReadTheDocs - Fix Missing API Reference

[AIRFLOW-2984] Convert operator dates to UTC (apache#3822)

Tasks can have start_dates or end_dates separately
from the DAG. These need to be converted to UTC otherwise
we cannot use them for calculation the next execution
date.

[AIRFLOW-2779] Make GHE auth third party licensed (apache#3803)

This reinstates the original license.

[AIRFLOW-XXX] Add Format to list of companies (apache#3824)

[AIRFLOW-2900] Show code for packaged DAGs (apache#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (apache#3821)

[AIRFLOW-2989] Add param to set bootDiskType in Dataproc Op (apache#3825)

Add param to set bootDiskType for master and
worker nodes in `DataprocClusterCreateOperator`

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

[AIRFLOW-2949] Add syntax highlight for single quote strings (apache#3795)

* AIRFLOW-2949: Add syntax highlight for single quote strings

* AIRFLOW-2949: Also updated new UI main.css

[AIRFLOW-2948] Arg check & better doc - SSHOperator & SFTPOperator (apache#3793)

There may be different combinations of arguments, and
some processings are being done 'silently', while users
may not be fully aware of them.

For example
- User only needs to provide either `ssh_hook`
  or `ssh_conn_id`, while this is not clear in doc
- if both provided, `ssh_conn_id` will be ignored.
- if `remote_host` is provided, it will replace
  the `remote_host` which wasndefined in `ssh_hook`
  or predefined in the connection of `ssh_conn_id`

These should be documented clearly to ensure it's
transparent to the users. log.info() should also be
used to remind users and provide clear logs.

In addition, add instance check for ssh_hook to ensure
it is of the correct type (SSHHook).

Tests are updated for this PR.

[AIRFLOW-XXX] Fix Broken Link in CONTRIBUTING.md

[AIRFLOW-2980] ReadTheDocs - Fix Missing API Reference

[AIRFLOW-2984] Convert operator dates to UTC (apache#3822)

Tasks can have start_dates or end_dates separately
from the DAG. These need to be converted to UTC otherwise
we cannot use them for calculation the next execution
date.

[AIRFLOW-2779] Make GHE auth third party licensed (apache#3803)

This reinstates the original license.

[AIRFLOW-XXX] Add Format to list of companies (apache#3824)

[AIRFLOW-2900] Show code for packaged DAGs (apache#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (apache#3821)

[AIRFLOW-2974] Extended Databricks hook with clusters operation (apache#3817)

Add hooks for:
- cluster start,
- restart,
- terminate.
Add unit tests for the added hooks.
Add hooks for cluster start, restart and terminate.
Add unit tests for the added hooks.
Add cluster_id variable for performing cluster operation tests.

[AIRFLOW-XXX] Fix Docstrings for Operators (apache#3820)

[AIRFLOW-2994] Fix flatten_results for BigQueryOperator (apache#3829)

[AIRFLOW-2951] Update dag_run table end_date when state change (apache#3798)

The existing airflow only change dag_run table end_date value when
a user teminate a dag in web UI. The end_date will not be updated
if airflow detected a dag finished and updated its state.

This commit add end_date update in DagRun's set_state function to
make up tho problem mentioned above.

[AIRFLOW-2145] fix deadlock on clearing running TI (apache#3657)

a `shutdown` task is not considered be `unfinished`, so a dag run can
deadlock when all `unfinished` downstreams are all waiting on a task
that's in the `shutdown` state. fix this by considering `shutdown` to
be `unfinished`, since it's not truly a terminal state

[AIRFLOW-2981] Fix TypeError in dataflow operators (apache#3831)

- Fix TypeError in dataflow operators when using GCS jar or py_file

[AIRFLOW-XXX] Fix typo in docstring of gcs_to_bq (apache#3833)

[AIRFLOW-2476] Allow tabulate up to 0.8.2 (apache#3835)

[AIRFLOW-XXX] Fix typos in faq.rst (apache#3837)

[AIRFLOW-2979] Make celery_result_backend conf Backwards compatible (apache#3832)

(apache#2806) Renamed `celery_result_backend` to `result_backend` and broke backwards compatibility.

[AIRFLOW-2866] Fix missing CSRF token head when using RBAC UI (apache#3804)

[AIRFLOW-491] Add feature to pass extra api configs to BQ Hook (apache#3733)

[AIRFLOW-208] Add badge to show supported Python versions (apache#3839)

[AIRFLOW-2993] Added sftp_to_s3 operator and s3_to_sftp operator. (apache#3828)
wmorris75 pushed a commit to modmed/incubator-airflow that referenced this pull request Oct 7, 2018
[AIRFLOW-XXX] Remove residual line in Changelog (#3814)

[AIRFLOW-2993] s3_to_sftp and sftp_to_s3 operators (#3828)

[AIRFLOW-2709] Improve error handling in Databricks hook (#3570)

* Use float for default value
* Use status code to determine whether an error is retryable
* Fix wrong type in assertion
* Fix style to prevent lines from exceeding 90 characters
* Fix wrong way of checking exception type

[AIRFLOW-2854] kubernetes_pod_operator add more configuration items (#3697)

* kubernetes_pod_operator add more configuration items
* fix test_kubernetes_pod_operator test_faulty_service_account failure case
* fix review comment issues
* pod_operator add hostnetwork config
* add doc example

[AIRFLOW-2994] Fix command status check in Qubole Check operator (#3790)

[AIRFLOW-2928] Use uuid4 instead of uuid1 (#3779)

for better randomness.

[AIRFLOW-2949] Add syntax highlight for single quote strings (#3795)

* AIRFLOW-2949: Add syntax highlight for single quote strings

* AIRFLOW-2949: Also updated new UI main.css

[AIRFLOW-2948] Arg check & better doc - SSHOperator & SFTPOperator (#3793)

There may be different combinations of arguments, and
some processings are being done 'silently', while users
may not be fully aware of them.

For example
- User only needs to provide either `ssh_hook`
  or `ssh_conn_id`, while this is not clear in doc
- if both provided, `ssh_conn_id` will be ignored.
- if `remote_host` is provided, it will replace
  the `remote_host` which wasndefined in `ssh_hook`
  or predefined in the connection of `ssh_conn_id`

These should be documented clearly to ensure it's
transparent to the users. log.info() should also be
used to remind users and provide clear logs.

In addition, add instance check for ssh_hook to ensure
it is of the correct type (SSHHook).

Tests are updated for this PR.

[AIRFLOW-XXX] Fix Broken Link in CONTRIBUTING.md

[AIRFLOW-2980] ReadTheDocs - Fix Missing API Reference

[AIRFLOW-2984] Convert operator dates to UTC (#3822)

Tasks can have start_dates or end_dates separately
from the DAG. These need to be converted to UTC otherwise
we cannot use them for calculation the next execution
date.

[AIRFLOW-2779] Make GHE auth third party licensed (#3803)

This reinstates the original license.

[AIRFLOW-XXX] Add Format to list of companies (#3824)

[AIRFLOW-2900] Show code for packaged DAGs (#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (#3821)

[AIRFLOW-XXX] Fix Docstrings for Operators (#3820)

[AIRFLOW-2951] Update dag_run table end_date when state change (#3798)

The existing airflow only change dag_run table end_date value when
a user teminate a dag in web UI. The end_date will not be updated
if airflow detected a dag finished and updated its state.

This commit add end_date update in DagRun's set_state function to
make up tho problem mentioned above.

[AIRFLOW-2145] fix deadlock on clearing running TI (#3657)

a `shutdown` task is not considered be `unfinished`, so a dag run can
deadlock when all `unfinished` downstreams are all waiting on a task
that's in the `shutdown` state. fix this by considering `shutdown` to
be `unfinished`, since it's not truly a terminal state

[AIRFLOW-XXX] Fix typo in docstring of gcs_to_bq (#3833)

[AIRFLOW-2476] Allow tabulate up to 0.8.2 (#3835)

[AIRFLOW-XXX] Fix typos in faq.rst (#3837)

[AIRFLOW-2979] Make celery_result_backend conf Backwards compatible (#3832)

(#2806) Renamed `celery_result_backend` to `result_backend` and broke backwards compatibility.

[AIRFLOW-2866] Fix missing CSRF token head when using RBAC UI (#3804)

[AIRFLOW-491] Add feature to pass extra api configs to BQ Hook (#3733)

[AIRFLOW-208] Add badge to show supported Python versions (#3839)

[AIRFLOW-3007] Update backfill example in Scheduler docs

The scheduler docs at https://airflow.apache.org/scheduler.html#backfill-and-catchup use deprecated way of passing `schedule_interval`. `schedule_interval` should be pass to DAG as a separate parameter and not as a default arg.

[AIRFLOW-3005] Replace 'Airbnb Airflow' with 'Apache Airflow' (#3845)

[AIRFLOW-3002] Fix variable & tests in GoogleCloudBucketHelper (#3843)

[AIRFLOW-2991] Log path to driver output after Dataproc job (#3827)

[AIRFLOW-XXX] Fix python3 and flake8 errors in dev/airflow-jira

This is a script that checks if the Jira's marked as fixed in a release
are actually merged in - getting this working is helpful to me in
preparing 1.10.1

[AIRFLOW-3006] Add note on using None for schedule_interval

[AIRFLOW-3003] Pull the krb5 image instead of building (#3844)

Pull the image instead of building it, this will speed up the CI
process since we don't have to build it every time.

[AIRFLOW-2883] Add import and export for pool cli using JSON

[AIRFLOW-2847] Remove legacy imports support for plugins (#3692)

[AIRFLOW-1998] Implemented DatabricksRunNowOperator for jobs/run-now … (#3813)

Add functionality to kick of a Databricks job right away.

* Per feedback: fixed a documentation error,
  reintegrated the execute and on_kill onto the objects.
* Fixed a  documentation issue.

[AIRFLOW-3021] Add Censys to who uses Airflow list

> Censys
> Find and analyze every reachable server and device on the Internet
> https://censys.io/

closes AIRFLOW-3021 https://issues.apache.org/jira/browse/AIRFLOW-3021

[AIRFLOW-3018] Fix Minor issues in Documentation

Add Branch to Company List

[AIRFLOW-3023] Fix docstring datatypes

[AIRFLOW-3008] Move Kubernetes example DAGs to contrib

[AIRFLOW-2997] Support cluster fields in bigquery (#3838)

This adds a cluster_fields argument to the bigquery hook, GCS to
bigquery operator and bigquery query operators. This field requests that
bigquery store the result of the query/load operation sorted according
to the specified fields (the order of fields given is significant).

[AIRFLOW-XXX] Redirect FAQ `airflow[crypto]` to How-to Guides.

[AIRFLOW-XXX] Remove redundant space in Kerberos (#3866)

[AIRFLOW-3028] Update Text & Images in Readme.md

[AIRFLOW-1917] Trim extra newline and trailing whitespace from log (#3862)

[AIRFLOW-2985] Operators for S3 object copying/deleting (#3823)

1. Copying:
Under the hood, it's `boto3.client.copy_object()`.
It can only handle the situation in which the
S3 connection used can access both source and
destination bucket/key.

2. Deleting:
2.1 Under the hood, it's `boto3.client.delete_objects()`.
It supports either deleting one single object or
multiple objects.
2.2 If users try to delete a non-existent object, the
request will still succeed, but there will be an
entry 'Errors' in the response. There may also be
other reasons which may cause similar 'Errors' (
request itself would succeed without explicit
exception). So an argument `silent_on_errors` is added
to let users decide if this sort of 'Errors' should
fail the operator.

The corresponding methods are added into S3Hook, and
these two operators are 'wrappers' of these methods.

[AIRFLOW-3030] Fix CLI docs (#3872)

[AIRFLOW-XXX] Update kubernetes.rst docs (#3875)

Update kubernetes.rst with correct KubernetesPodOperator inputs
for the volumes.

[AIRFLOW-XXX] Add Enigma to list of companies

[AIRFLOW-2965] CLI tool to show the next execution datetime

Cover different cases

- schedule_interval is "@once" or None, then following_schedule
  method would always return None
- If dag is paused, print reminder
- If latest_execution_date is not found, print warning saying
  not applicable.

[AIRFLOW-XXX] Add Bombora Inc using Airflow

[AIRFLOW-2156] Parallelize Celery Executor task state fetching (#3830)

[AIRFLOW-XXX] Move Dag level access control out of 1.10 section (#3882)

It isn't in 1.10 (and wasn't in this section when the PR was created).

[AIRFLOW-3040] Enable ProBot to clean up stale Pull Requests (#3883)

[AIRFLOW-3012] Fix Bug when passing emails for SLA

[AIRFLOW-2797] Create Google Dataproc cluster with custom image (#3871)

[AIRFLOW-XXX] Updated README  to include CAVA

Addressed comments in PR with appropriate refactoring of s3-sftp operators.
Added s3-sftp operator links

[AIRFLOW-2993] s3_to_sftp and sftp_to_s3 operators #3828

Rearranged input parameters for sftp_to_s3_operator.

[AIRFLOW-2988] Run specifically python2 for dataflow (#3826)

Apache beam does not yet support python3, so it's best to run dataflow
jobs with python2 specifically until python3 support is complete
(BEAM-1251), in case if the user's 'python' in PATH is python3.

[AIRFLOW-3035] Allow custom 'job_error_states' in dataproc ops (#3884)

Allow caller to pass in custom list of Dataproc job states into the
DataProc*Operator classes that should result in the
_DataProcJob.raise_error() method raising an Exception.

[AIRFLOW-3034]: Readme updates : Add Slack & Twitter, remove Gitter

[AIRFLOW-3056] Add happn to Airflow user list

[AIRFLOW-3052] Add logo options to Airflow (#3892)

[AIRFLOW-3060] DAG context manager fails to exit properly in certain circumstances

[AIRFLOW-2524] Add SageMaker Batch Inference (#3767)

* Fix for comments
* Fix sensor test
* Update non_terminal_states and failed_states to static variables of SageMakerHook

Add SageMaker Transform Operator & Sensor
Co-authored-by: srrajeev-aws <srrajeev@amazon.com>

[AIRFLOW-2772] Fix Bug in BigQuery hook for Partitioned Table  (#3901)

[AIRFLOW-XXX] Added Jeitto as one of happy Airflow users! (#3902)

[AIRFLOW-XXX] Add Jeitto as one happy Airflow user!

[AIRFLOW-3044] Dataflow operators accept templated job_name param (#3887)

* Default value of new job_name param is templated task_id, to match the
existing behavior as much as possible.
* Change expected value in test_mlengine_operator_utils.py to match
default for new job_name param.

[AIRFLOW-2707] Validate task_log_reader on upgrade from <=1.9 (#3881)

We changed the default logging config and config from 1.9 to 1.10, but
anyone who upgrades and has an existing airflow.cfg won't know they need
to change this value - instead they will get nothing displayed in the UI
(ajax request fails) and see "'NoneType' object has no attribute 'read'"
in the error log.

This validates that config section at start up, and seamlessly upgrades
the old previous value.

[AIRFLOW-3025] Enable specifying dns and dns_search options for DockerOperator (#3860)

Enable specifying dns and dns_search options for DockerOperator

[AIRFLOW-1298] Clear UPSTREAM_FAILED using the clean cli (#3886)

* [AIRFLOW-1298] Fix 'clear only_failed'

* [AIRFLOW-1298] Fix 'clear only_failed'

[AIRFLOW-3059] Log how many rows are read from Postgres (#3905)

To know how many data is being read from Postgres, it is nice to log
this to the Airflow log.

Previously when there was no data, it would still create a single file.
This is not something that we want, and therefore we've changed this
behaviour.

Refactored the tests to make use of Postgres itself since we have it
running. This makes the tests more realistic, instead of mocking
everything.

[AIRFLOW-XXX] Fix typo in docs/timezone.rst (#3904)

[AIRFLOW-3070] Refine web UI authentication-related docs (#3863)

[AIRFLOW-3068] Remove deprecated imports

[AIRFLOW-3036] Add relevant ECS options to ECS operator. (#3908)

The ECS operator currently supports only a subset of available options
for running ECS tasks. This patch adds all ECS options that could be
relevant to airflow; options that wouldn't make sense here, like
`count`, were skipped.

[AIRFLOW-1195] Add feature to clear tasks in Parent Dag (#3907)

[AIRFLOW-3073] Add note-Profiling feature not supported in new webserver (#3909)

Adhoc queries and Charts features are no longer supported in new
FAB-based webserver and UI. But this is not mentioned at all in the doc
"Data Profiling" (https://airflow.incubator.apache.org/profiling.html)

This commit adds a note to remind users for this.

[AIRFLOW-XXX] Fix SlackWebhookOperator docs (#3915)

The docs refer to `conn_id` while the actual argument is `http_conn_id`.

[AIRFLOW-1441] Fix inconsistent tutorial code (#2466)

[AIRFLOW-XXX] Add 90 Seconds to companies

[AIRFLOW-3096] Reduce DaysUntilStale for probot/stale

[AIRFLOW-3096] Further reduce DaysUntilStale for probo/stale

[AIRFLOW-3072] Assign permission get_logs_with_metadata to viewer role (#3913)

[AIRFLOW-3090] Demote dag start/stop log messages to debug (#3920)

[AIRFLOW-2407] Use feature detection for reload() (#3298)

* [AIRFLOW-2407] Use feature detection for reload()

[Use feature detection instead of version detection](https://docs.python.org/3/howto/pyporting.html#use-feature-detection-instead-of-version-detection) is a Python porting best practice that avoids a flake8 undefined name error...

flake8 testing of https://github.com/apache/incubator-airflow on Python 3.6.3

[AIRFLOW-2747] Explicit re-schedule of sensors (#3596)

* [AIRFLOW-2747] Explicit re-schedule of sensors

Add `mode` property to sensors. If set to `reschedule` an
AirflowRescheduleException is raised instead of sleeping which sets
the task back to state `NONE`. Reschedules are recorded in new
`task_schedule` table and visualized in the Gantt view. New TI
dependency checks if a sensor task is ready to be re-scheduled.

* Reformat sqlalchemy imports

* Make `_handle_reschedule` private

* Remove print

* Add comment

* Add comment

* Don't record reschule request in test mode

[AIRFLOW-XXX] Fix a wrong sample bash command, a display issue & a few typos (#3924)

[AIRFLOW-3090] Make No tasks to consider for execution debug (#3923)

During normal operation, it is not necessary to see the message.  This
can only be useful when debugging an issue.

AIRFLOW-2952 Fix Kubernetes CI (#3922)

The current dockerised CI pipeline doesn't run minikube and the
Kubernetes integration tests. This starts a Kubernetes cluster
using minikube and runs k8s integration tests using docker-compose.

[AIRFLOW-2918] Fix Flake8 violations (#3931)

[AIRFLOW-3076] Remove preloading of MySQL testdata (#3911)

One of the things for tests is being self contained. This means that
it should not depend on anything external, such as loading data.

This PR will use the setUp and tearDown to load the data into MySQL
and remove it afterwards. This removes the actual bash mysql commands
and will make it easier to dockerize the whole testsuite in the future

[AIRFLOW-2887] Added BigQueryCreateEmptyDatasetOperator and create_emty_dataset to bigquery_hook (#3876)

[AIRFLOW-2918] Remove unused imports

[AIRFLOW-3099] Stop Missing Section Errors for optional sections (#3934)

[AIRFLOW-3090] Specify path of key file in log message (#3921)

[AIRFLOW-3067] Display www_rbac Flask flash msg properly (#3903)

The Flask flash messages are not displayed properly.

When we don't give a category for a flash message, defautl
value will be 'message'. In some cases, we specify 'error'
category.

Using Flask-AppBuilder, the flash message will be given
a CSS class 'alert-[category]'. But We don't have
'alert-message' or 'alert-error' in the current
'bootstrap-theme.css' file.

This makes the the flash messages in www_rbac UI come with
no background color.

This commit addresses this issue by adding 'alert-message'
(using specs of existing CSS class 'alert-info') and
'alert-error' (using specs of existing CSS class 'alert-danger')
into 'bootstrap-theme.css'.

[AIRFLOW-3109] Bugfix to allow user/op roles to clear task intance via UI by default

add show statements to hql filtering.

[AIRFLOW-3051] Change CLI to make users ops similar to connections

The ability to manipulate users from the  command line is a bit clunky.  Currently 'airflow create_user' and 'airflow delete_user' and 'airflow list_users'.  It seems that these ought to be made more like connections, so that it becomes 'airflow users list ...', 'airflow users delete ...' and 'airflow users create ...'

[AIRFLOW-3009] Import Hashable from collection.abc to fix Python 3.7 deprecation warning (#3849)

[AIRFLOW-XXX] Add Tesla as an Apache Airflow user (#3947)

[AIRFLOW-3111] Fix instructions in UPDATING.md and remove comment (#3944)

artifacts in default_airflow.cfg

- fixed incorrect instructions in UPDATING.md regarding core.log_filename_template and elasticsearch.elasticsearch_log_id_template
- removed comments referencing "additional curly braces" from
default_airflow.cfg since they're irrelevant to the rendered airflow.cfg

[AIRFLOW-3117] Add instructions to allow GPL dependency (#3949)

The installation instructions failed to mention how to proceed with the GPL dependency. For those who are not concerned by GPL, it is useful to know how to proceed with GPL dependency.

[AIRFLOW-XXX] Add Square to the companies lists

[AIRFLOW-XXX] Add Fathom Health to readme

[AIRFLOW-XXX] Pin Click to 6.7 to Fix CI (#3962)

[AIRFLOW-XXX] Fix SlackWebhookOperator execute method comment (#3963)

[AIRFLOW-3100][AIRFLOW-3101] Improve docker compose local testing (#3933)

[AIRFLOW-3127] Fix out-dated doc for Celery SSL (#3967)

Now in `airflow.cfg`, for Celery-SSL, the item names are
"ssl_active", "ssl_key", "ssl_cert", and "ssl_cacert".
(since PR https://github.com/apache/incubator-airflow/pull/2806/files)

But in the documentation
https://airflow.incubator.apache.org/security.html?highlight=celery
or
https://github.com/apache/incubator-airflow/blob/master/docs/security.rst,
it's "CELERY_SSL_ACTIVE", "CELERY_SSL_KEY", "CELERY_SSL_CERT", and
"CELERY_SSL_CACERT", which is out-dated and may confuse readers.

[AIRFLOW-XXX] Fix PythonVirtualenvOperator tests (#3968)

The recent update to the CI image changed the default
python from python2 to python3. The PythonVirtualenvOperator
tests expected python2 as default and fail due to
serialisation errors.

[AIRFLOW-2952] Fix Kubernetes CI (#3957)

- Update outdated cli command to create user
- Remove `airflow/example_dags_kubernetes` as the dag already exists in `contrib/example_dags/`
- Update the path to copy K8s dags

[AIRFLOW-3104] Add .airflowignore info into doc (#3939)

.airflowignore is a nice feature, but it was not mentioned at all in the documentation.

[AIRFLOW-3130] Add CLI docs for users command

[AIRFLOW-XXX] Add Delete for CLI Example in UPDATING.md

[AIRFLOW-3123] Use a stack for DAG context management (#3956)

[AIRFLOW-3125] Monitor Task Instances creation rates (#3966)

Montor Task Instances creation rates by Operator type.
These stats can provide some visibility on how much workload Airflow is
getting. They can be used for resource allocation in the long run (i.e.
to determine when we should scale up workers) and debugging in scenarios
like the creation rate of certain type of Task Instances spikes.

[AIRFLOW-3129] Backfill mysql hook unit tests. (#3970)

[AIRFLOW-3124] Fix RBAC webserver debug mode (#3958)

[AIRFLOW-XXX] Add Compass to companies list (#3972)

We're using Airflow at Compass now.

[AIRFLOW-XXX] Speed up DagBagTest cases (#3974)

I noticed that many of the tests of DagBags operate on a specific DAG
only, and don't need to load the example or test dags. By not loading
the dags we don't need to this shaves about 10-20s of test time.

[AIRFLOW-2912] Add Deploy and Delete operators for GCF (#3969)

Both Deploy and Delete operators interact with Google
Cloud Functions to manage functions. Both are idempotent
and make use of GcfHook - hook that encapsulates
communication with GCP over GCP API.

[AIRFLOW-1390] Update Alembic to 0.9 (#3935)

[AIRFLOW-2238] Update PR tool to remove outdated info (#3978)

[AIRFLOW-XXX] Don't spam test logs with "bad cron expression" messages (#3973)

We needed these test dags to check the behaviour of invalid cron
expressions, but by default we were loading them every time we create a
DagBag (which many, many tests to).

Instead we ignore these known-bad dags by default, and the test checking
those (tests/models.py:DagBagTest.test_process_file_cron_validity_check)
is already explicitly processing those DAGs directly, so it remains
tested.

[AIRFLOW-XXX] Fix undocumented params in S3_hook

Some function parameters were undocumented. Additional docstrings
were added for clarity.

[AIRFLOW-3079] Improve migration scripts to support MSSQL Server (#3964)

There were two problems for MSSQL.  First, 'timestamp' data type in MSSQL Server
is essentially a row-id, and not a timezone enabled date/time stamp. Second, alembic
creates invalid SQL when applying the 0/1 constraint to boolean values. MSSQL should
enforce this constraint by simply asserting a boolean value.

[AIRFLOW-XXX] Add DoorDash to README.md (#3980)

DoorDash uses Airflow https://softwareengineeringdaily.com/2018/09/28/doordash/

[AIRFLOW-3062] Add Qubole in integration docs (#3946)

[AIRFLOW-3129] Improve test coverage of airflow.models. (#3982)

[AIRFLOW-2574] Cope with '%' in SQLA DSN when running migrations (#3787)

Alembic uses a ConfigParser like Airflow does, and "%% is a special
value in there, so we need to escape it. As per the Alembic docs:

> Note that this value is passed to ConfigParser.set, which supports
> variable interpolation using pyformat (e.g. `%(some_value)s`). A raw
> percent sign not part of an interpolation symbol must therefore be
> escaped, e.g. `%%`

[AIRFLOW-3137] Make ProxyFix middleware optional. (#3983)

The ProxyFix middleware should only be used when airflow is running
behind a trusted proxy. This patch adds a `USE_PROXY_FIX` flag that
defaults to `False`.

[AIRFLOW-3004] Add config disabling scheduler cron (#3899)

[AIRFLOW-3103][AIRFLOW-3147] Update flask-appbuilder (#3937)

[AIRFLOW-2993] s3_to_sftp and sftp_to_s3 operators #3828
Added apply_default decorator.

Added test for operators

 [AIRFLOW-XXX] Fixing the issue in Documentation (#3998)

Fixing the operator name from DataFlowOperation  to DataFlowJavaOperator  in Documentation

[AIRFLOW-3088] Include slack-compatible emoji image

[AIRFLOW-3161] fix TaskInstance log link in RBAC UI

[AIRFLOW-3148] Remove unnecessary arg "parameters" in RedshiftToS3Transfer (#3995)

"Parameters" are used to help render the SQL command.
But in this operator, only "schema" and "table" are needed.
There is no SQL command to render.

By checking the code,we can also find argument
"parameters" is never really used.

(Fix a minor issue in the docstring as well)

[AIRFLOW-3159] Update GCS logging docs for latest code (#3952)

Formatted code

 [AIRFLOW-XXX] Fixing the issue in Documentation (#3998)

Fixing the operator name from DataFlowOperation  to DataFlowJavaOperator  in Documentation

[AIRFLOW-3088] Include slack-compatible emoji image

[AIRFLOW-3161] fix TaskInstance log link in RBAC UI

[AIRFLOW-3148] Remove unnecessary arg "parameters" in RedshiftToS3Transfer (#3995)

"Parameters" are used to help render the SQL command.
But in this operator, only "schema" and "table" are needed.
There is no SQL command to render.

By checking the code,we can also find argument
"parameters" is never really used.

(Fix a minor issue in the docstring as well)

[AIRFLOW-3159] Update GCS logging docs for latest code (#3952)

[AIRFLOW-2930] Fix celery excecutor scheduler crash (#3784)

Caused by an update in PR #3740.
execute_command.apply_async(args=command, ...)
-command is a list of short unicode strings and the above code pass multiple
arguments to a function defined as taking only one argument.
-command = ["airflow", "run", "dag323",...]
-args = command = ["airflow", "run", "dag323", ...]
-execute_command("airflow","run","dag3s3", ...) will be error and exit.

[AIRFLOW-2854] kubernetes_pod_operator add more configuration items (#3697)

* kubernetes_pod_operator add more configuration items
* fix test_kubernetes_pod_operator test_faulty_service_account failure case
* fix review comment issues
* pod_operator add hostnetwork config
* add doc example

[AIRFLOW-2994] Fix command status check in Qubole Check operator (#3790)

[AIRFLOW-2949] Add syntax highlight for single quote strings (#3795)

* AIRFLOW-2949: Add syntax highlight for single quote strings

* AIRFLOW-2949: Also updated new UI main.css

[AIRFLOW-2948] Arg check & better doc - SSHOperator & SFTPOperator (#3793)

There may be different combinations of arguments, and
some processings are being done 'silently', while users
may not be fully aware of them.

For example
- User only needs to provide either `ssh_hook`
  or `ssh_conn_id`, while this is not clear in doc
- if both provided, `ssh_conn_id` will be ignored.
- if `remote_host` is provided, it will replace
  the `remote_host` which wasndefined in `ssh_hook`
  or predefined in the connection of `ssh_conn_id`

These should be documented clearly to ensure it's
transparent to the users. log.info() should also be
used to remind users and provide clear logs.

In addition, add instance check for ssh_hook to ensure
it is of the correct type (SSHHook).

Tests are updated for this PR.

[AIRFLOW-XXX] Fix Broken Link in CONTRIBUTING.md

[AIRFLOW-2980] ReadTheDocs - Fix Missing API Reference

[AIRFLOW-2779] Make GHE auth third party licensed (#3803)

This reinstates the original license.

[AIRFLOW-XXX] Add Format to list of companies (#3824)

[AIRFLOW-2900] Show code for packaged DAGs (#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (#3821)

[AIRFLOW-2951] Update dag_run table end_date when state change (#3798)

The existing airflow only change dag_run table end_date value when
a user teminate a dag in web UI. The end_date will not be updated
if airflow detected a dag finished and updated its state.

This commit add end_date update in DagRun's set_state function to
make up tho problem mentioned above.

[AIRFLOW-2145] fix deadlock on clearing running TI (#3657)

a `shutdown` task is not considered be `unfinished`, so a dag run can
deadlock when all `unfinished` downstreams are all waiting on a task
that's in the `shutdown` state. fix this by considering `shutdown` to
be `unfinished`, since it's not truly a terminal state

[AIRFLOW-XXX] Fix typo in docstring of gcs_to_bq (#3833)

[AIRFLOW-2476] Allow tabulate up to 0.8.2 (#3835)

[AIRFLOW-XXX] Fix typos in faq.rst (#3837)

[AIRFLOW-2979] Make celery_result_backend conf Backwards compatible (#3832)

(#2806) Renamed `celery_result_backend` to `result_backend` and broke backwards compatibility.

[AIRFLOW-2866] Fix missing CSRF token head when using RBAC UI (#3804)

[AIRFLOW-3007] Update backfill example in Scheduler docs

The scheduler docs at https://airflow.apache.org/scheduler.html#backfill-and-catchup use deprecated way of passing `schedule_interval`. `schedule_interval` should be pass to DAG as a separate parameter and not as a default arg.

[AIRFLOW-3005] Replace 'Airbnb Airflow' with 'Apache Airflow' (#3845)

[AIRFLOW-3002] Fix variable & tests in GoogleCloudBucketHelper (#3843)

[AIRFLOW-2991] Log path to driver output after Dataproc job (#3827)

[AIRFLOW-XXX] Fix python3 and flake8 errors in dev/airflow-jira

This is a script that checks if the Jira's marked as fixed in a release
are actually merged in - getting this working is helpful to me in
preparing 1.10.1

[AIRFLOW-2883] Add import and export for pool cli using JSON

[AIRFLOW-3021] Add Censys to who uses Airflow list

> Censys
> Find and analyze every reachable server and device on the Internet
> https://censys.io/

closes AIRFLOW-3021 https://issues.apache.org/jira/browse/AIRFLOW-3021

Add Branch to Company List

[AIRFLOW-3008] Move Kubernetes example DAGs to contrib

[AIRFLOW-2997] Support cluster fields in bigquery (#3838)

This adds a cluster_fields argument to the bigquery hook, GCS to
bigquery operator and bigquery query operators. This field requests that
bigquery store the result of the query/load operation sorted according
to the specified fields (the order of fields given is significant).

[AIRFLOW-XXX] Redirect FAQ `airflow[crypto]` to How-to Guides.

[AIRFLOW-XXX] Remove redundant space in Kerberos (#3866)

[AIRFLOW-3028] Update Text & Images in Readme.md

[AIRFLOW-1917] Trim extra newline and trailing whitespace from log (#3862)

[AIRFLOW-2985] Operators for S3 object copying/deleting (#3823)

1. Copying:
Under the hood, it's `boto3.client.copy_object()`.
It can only handle the situation in which the
S3 connection used can access both source and
destination bucket/key.

2. Deleting:
2.1 Under the hood, it's `boto3.client.delete_objects()`.
It supports either deleting one single object or
multiple objects.
2.2 If users try to delete a non-existent object, the
request will still succeed, but there will be an
entry 'Errors' in the response. There may also be
other reasons which may cause similar 'Errors' (
request itself would succeed without explicit
exception). So an argument `silent_on_errors` is added
to let users decide if this sort of 'Errors' should
fail the operator.

The corresponding methods are added into S3Hook, and
these two operators are 'wrappers' of these methods.

[AIRFLOW-3030] Fix CLI docs (#3872)

[AIRFLOW-XXX] Update kubernetes.rst docs (#3875)

Update kubernetes.rst with correct KubernetesPodOperator inputs
for the volumes.

[AIRFLOW-XXX] Add Enigma to list of companies

[AIRFLOW-2965] CLI tool to show the next execution datetime

Cover different cases

- schedule_interval is "@once" or None, then following_schedule
  method would always return None
- If dag is paused, print reminder
- If latest_execution_date is not found, print warning saying
  not applicable.

[AIRFLOW-XXX] Add Bombora Inc using Airflow

[AIRFLOW-XXX] Move Dag level access control out of 1.10 section (#3882)

It isn't in 1.10 (and wasn't in this section when the PR was created).

[AIRFLOW-3012] Fix Bug when passing emails for SLA

[AIRFLOW-2797] Create Google Dataproc cluster with custom image (#3871)

[AIRFLOW-XXX] Updated README  to include CAVA

[AIRFLOW-3035] Allow custom 'job_error_states' in dataproc ops (#3884)

Allow caller to pass in custom list of Dataproc job states into the
DataProc*Operator classes that should result in the
_DataProcJob.raise_error() method raising an Exception.

[AIRFLOW-3034]: Readme updates : Add Slack & Twitter, remove Gitter

[AIRFLOW-3056] Add happn to Airflow user list

[AIRFLOW-3052] Add logo options to Airflow (#3892)

[AIRFLOW-2524] Add SageMaker Batch Inference (#3767)

* Fix for comments
* Fix sensor test
* Update non_terminal_states and failed_states to static variables of SageMakerHook

Add SageMaker Transform Operator & Sensor
Co-authored-by: srrajeev-aws <srrajeev@amazon.com>

[AIRFLOW-XXX] Added Jeitto as one of happy Airflow users! (#3902)

[AIRFLOW-XXX] Add Jeitto as one happy Airflow user!

[AIRFLOW-3044] Dataflow operators accept templated job_name param (#3887)

* Default value of new job_name param is templated task_id, to match the
existing behavior as much as possible.
* Change expected value in test_mlengine_operator_utils.py to match
default for new job_name param.

[AIRFLOW-2707] Validate task_log_reader on upgrade from <=1.9 (#3881)

We changed the default logging config and config from 1.9 to 1.10, but
anyone who upgrades and has an existing airflow.cfg won't know they need
to change this value - instead they will get nothing displayed in the UI
(ajax request fails) and see "'NoneType' object has no attribute 'read'"
in the error log.

This validates that config section at start up, and seamlessly upgrades
the old previous value.

[AIRFLOW-3025] Enable specifying dns and dns_search options for DockerOperator (#3860)

Enable specifying dns and dns_search options for DockerOperator

[AIRFLOW-1298] Clear UPSTREAM_FAILED using the clean cli (#3886)

* [AIRFLOW-1298] Fix 'clear only_failed'

* [AIRFLOW-1298] Fix 'clear only_failed'

[AIRFLOW-3059] Log how many rows are read from Postgres (#3905)

To know how many data is being read from Postgres, it is nice to log
this to the Airflow log.

Previously when there was no data, it would still create a single file.
This is not something that we want, and therefore we've changed this
behaviour.

Refactored the tests to make use of Postgres itself since we have it
running. This makes the tests more realistic, instead of mocking
everything.

[AIRFLOW-XXX] Fix typo in docs/timezone.rst (#3904)

[AIRFLOW-3068] Remove deprecated imports

[AIRFLOW-3036] Add relevant ECS options to ECS operator. (#3908)

The ECS operator currently supports only a subset of available options
for running ECS tasks. This patch adds all ECS options that could be
relevant to airflow; options that wouldn't make sense here, like
`count`, were skipped.

[AIRFLOW-1195] Add feature to clear tasks in Parent Dag (#3907)

[AIRFLOW-3073] Add note-Profiling feature not supported in new webserver (#3909)

Adhoc queries and Charts features are no longer supported in new
FAB-based webserver and UI. But this is not mentioned at all in the doc
"Data Profiling" (https://airflow.incubator.apache.org/profiling.html)

This commit adds a note to remind users for this.

[AIRFLOW-XXX] Fix SlackWebhookOperator docs (#3915)

The docs refer to `conn_id` while the actual argument is `http_conn_id`.

[AIRFLOW-1441] Fix inconsistent tutorial code (#2466)

[AIRFLOW-XXX] Add 90 Seconds to companies

[AIRFLOW-3096] Further reduce DaysUntilStale for probo/stale

[AIRFLOW-3072] Assign permission get_logs_with_metadata to viewer role (#3913)

[AIRFLOW-3090] Demote dag start/stop log messages to debug (#3920)

[AIRFLOW-2407] Use feature detection for reload() (#3298)

* [AIRFLOW-2407] Use feature detection for reload()

[Use feature detection instead of version detection](https://docs.python.org/3/howto/pyporting.html#use-feature-detection-instead-of-version-detection) is a Python porting best practice that avoids a flake8 undefined name error...

flake8 testing of https://github.com/apache/incubator-airflow on Python 3.6.3

[AIRFLOW-XXX] Fix a wrong sample bash command, a display issue & a few typos (#3924)

[AIRFLOW-3090] Make No tasks to consider for execution debug (#3923)

During normal operation, it is not necessary to see the message.  This
can only be useful when debugging an issue.

AIRFLOW-2952 Fix Kubernetes CI (#3922)

The current dockerised CI pipeline doesn't run minikube and the
Kubernetes integration tests. This starts a Kubernetes cluster
using minikube and runs k8s integration tests using docker-compose.

[AIRFLOW-2918] Fix Flake8 violations (#3931)

[AIRFLOW-3076] Remove preloading of MySQL testdata (#3911)

One of the things for tests is being self contained. This means that
it should not depend on anything external, such as loading data.

This PR will use the setUp and tearDown to load the data into MySQL
and remove it afterwards. This removes the actual bash mysql commands
and will make it easier to dockerize the whole testsuite in the future

[AIRFLOW-2918] Remove unused imports

[AIRFLOW-3099] Stop Missing Section Errors for optional sections (#3934)

[AIRFLOW-3090] Specify path of key file in log message (#3921)

[AIRFLOW-3067] Display www_rbac Flask flash msg properly (#3903)

The Flask flash messages are not displayed properly.

When we don't give a category for a flash message, defautl
value will be 'message'. In some cases, we specify 'error'
category.

Using Flask-AppBuilder, the flash message will be given
a CSS class 'alert-[category]'. But We don't have
'alert-message' or 'alert-error' in the current
'bootstrap-theme.css' file.

This makes the the flash messages in www_rbac UI come with
no background color.

This commit addresses this issue by adding 'alert-message'
(using specs of existing CSS class 'alert-info') and
'alert-error' (using specs of existing CSS class 'alert-danger')
into 'bootstrap-theme.css'.

[AIRFLOW-3109] Bugfix to allow user/op roles to clear task intance via UI by default

add show statements to hql filtering.

[AIRFLOW-3051] Change CLI to make users ops similar to connections

The ability to manipulate users from the  command line is a bit clunky.  Currently 'airflow create_user' and 'airflow delete_user' and 'airflow list_users'.  It seems that these ought to be made more like connections, so that it becomes 'airflow users list ...', 'airflow users delete ...' and 'airflow users create ...'

[AIRFLOW-3009] Import Hashable from collection.abc to fix Python 3.7 deprecation warning (#3849)

[AIRFLOW-XXX] Add Tesla as an Apache Airflow user (#3947)

[AIRFLOW-3111] Fix instructions in UPDATING.md and remove comment (#3944)

artifacts in default_airflow.cfg

- fixed incorrect instructions in UPDATING.md regarding core.log_filename_template and elasticsearch.elasticsearch_log_id_template
- removed comments referencing "additional curly braces" from
default_airflow.cfg since they're irrelevant to the rendered airflow.cfg

[AIRFLOW-3117] Add instructions to allow GPL dependency (#3949)

The installation instructions failed to mention how to proceed with the GPL dependency. For those who are not concerned by GPL, it is useful to know how to proceed with GPL dependency.

[AIRFLOW-XXX] Add Square to the companies lists

[AIRFLOW-XXX] Add Fathom Health to readme

[AIRFLOW-XXX] Pin Click to 6.7 to Fix CI (#3962)

[AIRFLOW-XXX] Fix SlackWebhookOperator execute method comment (#3963)

[AIRFLOW-3100][AIRFLOW-3101] Improve docker compose local testing (#3933)

[AIRFLOW-3127] Fix out-dated doc for Celery SSL (#3967)

Now in `airflow.cfg`, for Celery-SSL, the item names are
"ssl_active", "ssl_key", "ssl_cert", and "ssl_cacert".
(since PR https://github.com/apache/incubator-airflow/pull/2806/files)

But in the documentation
https://airflow.incubator.apache.org/security.html?highlight=celery
or
https://github.com/apache/incubator-airflow/blob/master/docs/security.rst,
it's "CELERY_SSL_ACTIVE", "CELERY_SSL_KEY", "CELERY_SSL_CERT", and
"CELERY_SSL_CACERT", which is out-dated and may confuse readers.

[AIRFLOW-XXX] Fix PythonVirtualenvOperator tests (#3968)

The recent update to the CI image changed the default
python from python2 to python3. The PythonVirtualenvOperator
tests expected python2 as default and fail due to
serialisation errors.

[AIRFLOW-2952] Fix Kubernetes CI (#3957)

- Update outdated cli command to create user
- Remove `airflow/example_dags_kubernetes` as the dag already exists in `contrib/example_dags/`
- Update the path to copy K8s dags

[AIRFLOW-3104] Add .airflowignore info into doc (#3939)

.airflowignore is a nice feature, but it was not mentioned at all in the documentation.

[AIRFLOW-XXX] Add Delete for CLI Example in UPDATING.md

[AIRFLOW-3123] Use a stack for DAG context management (#3956)

[AIRFLOW-3125] Monitor Task Instances creation rates (#3966)

Montor Task Instances creation rates by Operator type.
These stats can provide some visibility on how much workload Airflow is
getting. They can be used for resource allocation in the long run (i.e.
to determine when we should scale up workers) and debugging in scenarios
like the creation rate of certain type of Task Instances spikes.

[AIRFLOW-3129] Backfill mysql hook unit tests. (#3970)

[AIRFLOW-3124] Fix RBAC webserver debug mode (#3958)

[AIRFLOW-XXX] Add Compass to companies list (#3972)

We're using Airflow at Compass now.

[AIRFLOW-XXX] Speed up DagBagTest cases (#3974)

I noticed that many of the tests of DagBags operate on a specific DAG
only, and don't need to load the example or test dags. By not loading
the dags we don't need to this shaves about 10-20s of test time.

[AIRFLOW-2912] Add Deploy and Delete operators for GCF (#3969)

Both Deploy and Delete operators interact with Google
Cloud Functions to manage functions. Both are idempotent
and make use of GcfHook - hook that encapsulates
communication with GCP over GCP API.

[AIRFLOW-1390] Update Alembic to 0.9 (#3935)

[AIRFLOW-2238] Update PR tool to remove outdated info (#3978)

[AIRFLOW-XXX] Don't spam test logs with "bad cron expression" messages (#3973)

We needed these test dags to check the behaviour of invalid cron
expressions, but by default we were loading them every time we create a
DagBag (which many, many tests to).

Instead we ignore these known-bad dags by default, and the test checking
those (tests/models.py:DagBagTest.test_process_file_cron_validity_check)
is already explicitly processing those DAGs directly, so it remains
tested.

[AIRFLOW-XXX] Fix undocumented params in S3_hook

Some function parameters were undocumented. Additional docstrings
were added for clarity.

[AIRFLOW-3079] Improve migration scripts to support MSSQL Server (#3964)

There were two problems for MSSQL.  First, 'timestamp' data type in MSSQL Server
is essentially a row-id, and not a timezone enabled date/time stamp. Second, alembic
creates invalid SQL when applying the 0/1 constraint to boolean values. MSSQL should
enforce this constraint by simply asserting a boolean value.

[AIRFLOW-XXX] Add DoorDash to README.md (#3980)

DoorDash uses Airflow https://softwareengineeringdaily.com/2018/09/28/doordash/

[AIRFLOW-3062] Add Qubole in integration docs (#3946)

[AIRFLOW-3129] Improve test coverage of airflow.models. (#3982)

[AIRFLOW-2574] Cope with '%' in SQLA DSN when running migrations (#3787)

Alembic uses a ConfigParser like Airflow does, and "%% is a special
value in there, so we need to escape it. As per the Alembic docs:

> Note that this value is passed to ConfigParser.set, which supports
> variable interpolation using pyformat (e.g. `%(some_value)s`). A raw
> percent sign not part of an interpolation symbol must therefore be
> escaped, e.g. `%%`

[AIRFLOW-3137] Make ProxyFix middleware optional. (#3983)

The ProxyFix middleware should only be used when airflow is running
behind a trusted proxy. This patch adds a `USE_PROXY_FIX` flag that
defaults to `False`.

[AIRFLOW-3004] Add config disabling scheduler cron (#3899)

[AIRFLOW-3103][AIRFLOW-3147] Update flask-appbuilder (#3937)

 [AIRFLOW-XXX] Fixing the issue in Documentation (#3998)

Fixing the operator name from DataFlowOperation  to DataFlowJavaOperator  in Documentation

[AIRFLOW-3088] Include slack-compatible emoji image

[AIRFLOW-3161] fix TaskInstance log link in RBAC UI

[AIRFLOW-3148] Remove unnecessary arg "parameters" in RedshiftToS3Transfer (#3995)

"Parameters" are used to help render the SQL command.
But in this operator, only "schema" and "table" are needed.
There is no SQL command to render.

By checking the code,we can also find argument
"parameters" is never really used.

(Fix a minor issue in the docstring as well)

[AIRFLOW-3159] Update GCS logging docs for latest code (#3952)

Reformmatted to flaskdiff requirements.

[AIRFLOW-XXX] Remove residual line in Changelog (#3814)

[AIRFLOW-2930] Fix celery excecutor scheduler crash (#3784)

Caused by an update in PR #3740.
execute_command.apply_async(args=command, ...)
-command is a list of short unicode strings and the above code pass multiple
arguments to a function defined as taking only one argument.
-command = ["airflow", "run", "dag323",...]
-args = command = ["airflow", "run", "dag323", ...]
-execute_command("airflow","run","dag3s3", ...) will be error and exit.

[AIRFLOW-2854] kubernetes_pod_operator add more configuration items (#3697)

* kubernetes_pod_operator add more configuration items
* fix test_kubernetes_pod_operator test_faulty_service_account failure case
* fix review comment issues
* pod_operator add hostnetwork config
* add doc example

[AIRFLOW-2994] Fix command status check in Qubole Check operator (#3790)

[AIRFLOW-2949] Add syntax highlight for single quote strings (#3795)

* AIRFLOW-2949: Add syntax highlight for single quote strings

* AIRFLOW-2949: Also updated new UI main.css

[AIRFLOW-2948] Arg check & better doc - SSHOperator & SFTPOperator (#3793)

There may be different combinations of arguments, and
some processings are being done 'silently', while users
may not be fully aware of them.

For example
- User only needs to provide either `ssh_hook`
  or `ssh_conn_id`, while this is not clear in doc
- if both provided, `ssh_conn_id` will be ignored.
- if `remote_host` is provided, it will replace
  the `remote_host` which wasndefined in `ssh_hook`
  or predefined in the connection of `ssh_conn_id`

These should be documented clearly to ensure it's
transparent to the users. log.info() should also be
used to remind users and provide clear logs.

In addition, add instance check for ssh_hook to ensure
it is of the correct type (SSHHook).

Tests are updated for this PR.

[AIRFLOW-XXX] Fix Broken Link in CONTRIBUTING.md

[AIRFLOW-2980] ReadTheDocs - Fix Missing API Reference

[AIRFLOW-2779] Make GHE auth third party licensed (#3803)

This reinstates the original license.

[AIRFLOW-XXX] Add Format to list of companies (#3824)

[AIRFLOW-2900] Show code for packaged DAGs (#3749)

[AIRFLOW-2983] Add prev_ds_nodash and next_ds_nodash macro (#3821)

[AIRFLOW-2951] Update dag_run table end_date when state change (#3798)

The existing airflow only change dag_run table end_date value when
a user teminate a dag in web UI. The end_date will not be updated
if airflow detected a dag finished and updated its state.

This commit add end_date update in DagRun's set_state function to
make up tho problem mentioned above.

[AIRFLOW-2145] fix deadlock on clearing running TI (#3657)

a `shutdown` task is not considered be `unfinished`, so a dag run can
deadlock when all `unfinished` downstreams are all waiting on a task
that's in the `shutdown` state. fix this by considering `shutdown` to
be `unfinished`, since it's not truly a terminal state

[AIRFLOW-XXX] Fix typo in docstring of gcs_to_bq (#3833)

[AIRFLOW-2476] Allow tabulate up to 0.8.2 (#3835)

[AIRFLOW-XXX] Fix typos in faq.rst (#3837)

[AIRFLOW-2979] Make celery_result_backend conf Backwards compatible (#3832)

(#2806) Renamed `celery_result_backend` to `result_backend` and broke backwards compatibility.

[AIRFLOW-2866] Fix missing CSRF token head when using RBAC UI (#3804)

[AIRFLOW-3007] Update backfill example in Scheduler docs

The scheduler docs at https://airflow.apache.org/scheduler.html#backfill-and-catchup use deprecated way of passing `schedule_interval`. `schedule_interval` should be pass to DAG as a separate parameter and not as a default arg.

[AIRFLOW-3005] Replace 'Airbnb Airflow' with 'Apache Airflow' (#3845)

[AIRFLOW-3002] Fix variable & tests in GoogleCloudBucketHelper (#3843)

[AIRFLOW-2991] Log path to driver output after Dataproc job (#3827)

[AIRFLOW-XXX] Fix python3 and flake8 errors in dev/airflow-jira

This is a script that checks if the Jira's marked as fixed in a release
are actually merged in - getting this working is helpful to me in
preparing 1.10.1

[AIRFLOW-2883] Add import and export for pool cli using JSON

[AIRFLOW-3021] Add Censys to who uses Airflow list

> Censys
> Find and analyze every reachable server and device on the Internet
> https://censys.io/

closes AIRFLOW-3021 https://issues.apache.org/jira/browse/AIRFLOW-3021

Add Branch to Company List

[AIRFLOW-3008] Move Kubernetes example DAGs to contrib

[AIRFLOW-2997] Support cluster fields in bigquery (#3838)

This adds a cluster_fields argument to the bigquery hook, GCS to
bigquery operator and bigquery query operators. This field requests that
bigquery store the result of the query/load operation sorted according
to the specified fields (the order of fields given is significant).

[AIRFLOW-XXX] Redirect FAQ `airflow[crypto]` to How-to Guides.

[AIRFLOW-XXX] Remove redundant space in Kerberos (#3866)

[AIRFLOW-3028] Update Text & Images in Readme.md

[AIRFLOW-1917] Trim extra newline and trailing whitespace from log (#3862)

[AIRFLOW-2985] Operators for S3 object copying/deleting (#3823)

1. Copying:
Under the hood, it's `boto3.client.copy_object()`.
It can only handle the situation in which the
S3 connection used can access both source and
destination bucket/key.

2. Deleting:
2.1 Under the hood, it's `boto3.client.delete_objects()`.
It supports either deleting one single object or
multiple objects.
2.2 If users try to delete a non-existent object, the
request will still succeed, but there will be an
entry 'Errors' in the response. There may also be
other reasons which may cause similar 'Errors' (
request itself would succeed without explicit
exception). So an argument `silent_on_errors` is added
to let users decide if this sort of 'Errors' should
fail the operator.

The corresponding methods are added into S3Hook, and
these two operators are 'wrappers' of these methods.

[AIRFLOW-3030] Fix CLI docs (#3872)

[AIRFLOW-XXX] Update kubernetes.rst docs (#3875)

Update kubernetes.rst with correct KubernetesPodOperator inputs
for the volumes.

[AIRFLOW-XXX] Add Enigma to list of companies

[AIRFLOW-2965] CLI tool to show the next execution datetime

Cover different cases

- schedule_interval is "@once" or None, then following_schedule
  method would always return None
- If dag is paused, print reminder
- If latest_execution_date is not found, print warning saying
  not applicable.

[AIRFLOW-XXX] Add Bombora Inc using Airflow

[AIRFLOW-XXX] Move Dag level access control out of 1.10 section (#3882)

It isn't in 1.10 (and wasn't in this section when the PR was created).

[AIRFLOW-3012] Fix Bug when passing emails for SLA

[AIRFLOW-2797] Create Google Dataproc cluster with custom image (#3871)

[AIRFLOW-XXX] Updated README  to include CAVA

[AIRFLOW-3035] Allow custom 'job_error_states' in dataproc ops (#3884)

Allow caller to pass in custom list of Dataproc job states into the
DataProc*Operator classes that should result in the
_DataProcJob.raise_error() method raising an Exception.

[AIRFLOW-3034]: Readme updates : Add Slack & Twitter, remove Gitter

[AIRFLOW-3056] Add happn to Airflow user list

[AIRFLOW-3052] Add logo options to Airflow (#3892)

[AIRFLOW-2524] Add SageMaker Batch Inference (#3767)

* Fix for comments
* Fix sensor test
* Update non_terminal_states and failed_states to static variables of SageMakerHook

Add SageMaker Transform Operator & Sensor
Co-authored-by: srrajeev-aws <srrajeev@amazon.com>

[AIRFLOW-XXX] Added Jeitto as one of happy Airflow users! (#3902)

[AIRFLOW-XXX] Add Jeitto as one happy Airflow user!

[AIRFLOW-3044] Dataflow operators accept templated job_name param (#3887)

* Default value of new job_name param is templated task_id, to match the
existing behavior as much as possible.
* Change expected value in test_mlengine_operator_utils.py to match
default for new job_name param.

[AIRFLOW-2707] Validate task_log_reader on upgrade from <=1.9 (#3881)

We changed the default logging config and config from 1.9 to 1.10, but
anyone who upgrades and has an existing airflow.cfg won't know they need
to change this value - instead they will get nothing displayed in the UI
(ajax request fails) and see "'NoneType' object has no attribute 'read'"
in the error log.

This validates that config section at start up, and seamlessly upgrades
the old previous value.

[AIRFLOW-3025] Enable specifying dns and dns_search options for DockerOperator (#3860)

Enable specifying dns and dns_search options for DockerOperator

[AIRFLOW-1298] Clear UPSTREAM_FAILED using the clean cli (#3886)

* [AIRFLOW-1298] Fix 'clear only_failed'

* [AIRFLOW-1298] Fix 'clear only_failed'

[AIRFLOW-3059] Log how many rows are read from Postgres (#3905)

To know how many data is being read from Postgres, it is nice to log
this to the Airflow log.

Previously when there was no data, it would still create a single file.
This is not something that we want, and therefore we've changed this
behaviour.

Refactored the tests to make use of Postgres itself since we have it
running. This makes the tests more realistic, instead of mocking
everything.

[AIRFLOW-XXX] Fix typo in docs/timezone.rst (#3904)

[AIRFLOW-3068] Remove deprecated imports

[AIRFLOW-3036] Add relevant ECS options to ECS operator. (#3908)

The ECS operator currently supports only a subset of available options
for running ECS tasks. This patch adds all ECS options that could be
relevant to airflow; options that wouldn't make sense here, like
`count`, were skipped.

[AIRFLOW-1195] Add feature to clear tasks in Parent Dag (#3907)

[AIRFLOW-3073] Add note-Profiling feature not supported in new webserver (#3909)

Adhoc queries and Charts features are no longer supported in new
FAB-based webserver and UI. But this is not mentioned at all in the doc
"Data Profiling" (https://airflow.incubator.apache.org/profiling.html)

This commit adds a note to remind users for this.

[AIRFLOW-XXX] Fix SlackWebhookOperator docs (#3915)

The docs refer to `conn_id` while the actual argument is `http_conn_id`.

[AIRFLOW-1441] Fix inconsistent tutorial code (#2466)

[AIRFLOW-XXX] Add 90 Seconds to companies

[AIRFLOW-3096] Further reduce DaysUntilStale for probo/stale

[AIRFLOW-3072] Assign permission get_logs_with_metadata to viewer role (#3913)

[AIRFLOW-3090] Demote dag start/stop log messages to debug (#3920)

[AIRFLOW-2407] Use feature detection for reload() (#3298)

* [AIRFLOW-2407] Use feature detection for reload()

[Use feature detection instead of version detection](https://docs.python.org/3/howto/pyporting.html#use-feature-detection-instead-of-version-detection) is a Python porting best practice that avoids a flake8 undefined name error...

flake8 testing of https://github.com/apache/incubator-airflow on Python 3.6.3

[AIRFLOW-XXX] Fix a wrong sample bash command, a display issue & a few typos (#3924)

[AIRFLOW-3090] Make No tasks to consider for execution debug (#3923)

During normal operation, it is not necessary to see the message.  This
can only be useful when debugging an issue.

AIRFLOW-2952 Fix Kubernetes CI (#3922)

The current dockerised CI pipeline doesn't run minikube and the
Kubernetes integration tests. This starts a Kubernetes cluster
using minikube and runs k8s integration tests using docker-compose.

[AIRFLOW-2918] Fix Flake8 violations (#3931)

[AIRFLOW-3076] Remove preloading of MySQL testdata (#3911)

One of the things for tests is being self contained. This means that
it should not depend on anything external, such as loading data.

This PR will use the setUp and tearDown to load the data into MySQL
and remove it afterwards. This removes the actual bash mysql commands
and will make it easier to dockerize the whole testsuite in the future

[AIRFLOW-2918] Remove unused imports

[AIRFLOW-3099] Stop Missing Section Errors for optional sections (#3934)

[AIRFLOW-3090] Specify path of key file in log message (#3921)

[AIRFLOW-3067] Display www_rbac Flask flash msg properly (#3903)

The Flask flash messages are not displayed properly.

When we don't give a category for a flash message, defautl
value will be 'message'. In some cases, we specify 'error'
category.

Using Flask-AppBuilder, the flash message will be given
a CSS class 'alert-[category]'. But We don't have
'alert-message' or 'alert-error' in the current
'bootstrap-theme.css' file.

This makes the the flash messages in www_rbac UI come with
no background color.

This commit addresses this issue by adding 'alert-message'
(using specs of existing CSS class 'alert-info') and
'alert-error' (using specs of existing CSS class 'alert-danger')
into 'bootstrap-theme.css'.

[AIRFLOW-3109] Bugfix to allow user/op roles to clear task intance via UI by default

add show statements to hql filtering.

[AIRFLOW-3051] Change CLI to make users ops similar to connections

The ability to manipulate users from the  command line is a bit clunky.  Currently 'airflow create_user' and 'airflow delete_user' and 'airflow list_users'.  It seems that these ought to be made more like connections, so that it becomes 'airflow users list ...', 'airflow users delete ...' and 'airflow users create ...'

[AIRFLOW-3009] Import Hashable from collection.abc to fix Python 3.7 deprecation warning (#3849)

[AIRFLOW-XXX] Add Tesla as an Apache Airflow user (#3947)

[AIRFLOW-3111] Fix instructions in UPDATING.md and remove comment (#3944)

artifacts in default_airflow.cfg

- fixed incorrect instructions in UPDATING.md regarding core.log_filename_template and elasticsearch.elasticsearch_log_id_template
- removed comments referencing "additional curly braces" from
default_airflow.cfg since they're irrelevant to the rendered airflow.cfg

[AIRFLOW-3117] Add instructions to allow GPL dependency (#3949)

The installation instructions failed to mention how to proceed with the GPL dependency. For those who are not concerned by GPL, it is useful to know how to proceed with GPL dependency.

[AIRFLOW-XXX] Add Square to the companies lists

[AIRFLOW-XXX] Add Fathom Health to readme

[AIRFLOW-XXX] Pin Click to 6.7 to Fix CI (#3962)

[AIRFLOW-XXX] Fix SlackWebhookOperator execute method comment (#3963)

[AIRFLOW-3100][AIRFLOW-3101] Improve docker compose local testing (#3933)

[AIRFLOW-3127] Fix out-dated doc for Celery SSL (#3967)

Now in `airflow.cfg`, for Celery-SSL, the item names are
"ssl_active", "ssl_key", "ssl_cert", and "ssl_cacert".
(since PR https://github.com/apache/incubator-airflow/pull/2806/files)

But in the documentation
https://airflow.incubator.apache.org/security.html?highlight=celery
or
https://github.com/apache/incubator-airflow/blob/master/docs/security.rst,
it's "CELERY_SSL_ACTIVE", "CELERY_SSL_KEY", "CELERY_SSL_CERT", and
"CELERY_SSL_CACERT", which is out-dated and may confuse readers.

[AIRFLOW-XXX] Fix PythonVirtualenvOperator tests (#3968)

The recent update to the CI image changed the default
python from python2 to python3. The PythonVirtualenvOperator
tests expected python2 as default and fail due to
serialisation errors.

[AIRFLOW-2952] Fix Kubernetes CI (#3957)

- Update outdated cli command to create user
- Remove `airflow/example_dags_kubernetes` as the dag already exists in `contrib/example_dags/`
- Update the path to copy K8s dags

[AIRFLOW-3104] Add .airflowignore info into doc (#3939)

.airflowignore is a nice feature, but it was not mentioned at all in the documentation.

[AIRFLOW-XXX] Add Delete for CLI Example in UPDATING.md

[AIRFLOW-3123] Use a stack for DAG context management (#3956)

[AIRFLOW-3125] Monitor Task Instances creation rates (#3966)

Montor Task Instances creation rates by Operator type.
These stats can provide some visibility on how much workload Airflow is
getting. They can be used for resource allocation in the long run (i.e.
to determine when we should scale up workers) and debugging in scenarios
like the creation rate of certain type of Task Instances spikes.

[AIRFLOW-3129] Backfill mysql hook unit tests. (#3970)

[AIRFLOW-3124] Fix RBAC webserver debug mode (#3958)

[AIRFLOW-XXX] Add Compass to companies list (#3972)

We're using Airflow at Compass now.

[AIRFLOW-XXX] Speed up DagBagTest cases (#3974)

I noticed that many of the tests of DagBags operate on a specific DAG
only, and don't need to load the example or test dags. By not loading
the dags we don't need to this shaves about 10-20s of test time.

[AIRFLOW-2912] Add Deploy and Delete operators for GCF (#3969)

Both Deploy and Delete operators interact with Google
Cloud Functions to manage functions. Both are idempotent
and make use of GcfHook - hook that encapsulates
communication with GCP over GCP API.

[AIRFLOW-1390] Update Alembic to 0.9 (#3935)

[AIRFLOW-2238] Update PR tool to remove outdated info (#3978)

[AIRFLOW-XXX] Don't spam test logs with "bad cron expression" messages (#3973)

We needed these test dags to check the behaviour of invalid cron
expressions, but by default we were loading them every time we create a
DagBag (which many, many tests to).

Instead we ignore these known-bad dags by default, and the test checking
those (tests/models.py:DagBagTest.test_process_file_cron_validity_check)
is already explicitly processing those DAGs directly, so it remains
tested.

[AIRFLOW-XXX] Fix undocumented params in S3_hook

Some function parameters were undocumented. Additional docstrings
were added for clarity.

[AIRFLOW-3079] Improve migration scripts to support MSSQL Server (#3964)

There were two problems for MSSQL.  First, 'timestamp' data type in MSSQL Server
is essentially a row-id, and not a timezone enabled date/time stamp. Second, alembic
creates invalid SQL when applying the 0/1 constraint to boolean values. MSSQL should
enforce this constraint by simply asserting a boolean value.

[AIRFLOW-XXX] Add DoorDash to README.md (#3980)

DoorDash uses Airflow https://softwareengineeringdaily.com/2018/09/28/doordash/

[AIRFLOW-3062] Add Qubole in integration docs (#3946)

[AIRFLOW-3129] Improve test coverage of airflow.models. (#3982)

[AIRFLOW-2574] Cope with '%' in SQLA DSN when running migrations (#3787)

Alembic uses a ConfigParser like Airflow does, and "%% is a special
value in there, so we need to escape it. As per the Alembic docs:

> Note that this value is passed to ConfigParser.set, which supports
> variable interpolation using pyformat (e.g. `%(some_value)s`). A raw
> percent sign not part of an interpolation symbol must therefore be
> escaped, e.g. `%%`

[AIRFLOW-3137] Make ProxyFix middleware optional. (#3983)

The ProxyFix middleware should only be used when airflow is running
behind a trusted proxy. This patch adds a `USE_PROXY_FIX` flag that
defaults to `False`.

[AIRFLOW-3004] Add config disabling scheduler cron (#3899)

[AIRFLOW-3103][AIRFLOW-3147] Update flask-appbuilder (#3937)

 [AIRFLOW-XXX] Fixing the issue in Documentation (#3998)

Fixing the operator name from DataFlowOperation  to DataFlowJavaOperator  in Documentation

[AIRFLOW-3088] Include slack-compatible emoji image

[AIRFLOW-3161] fix TaskInstance log link in RBAC UI

[AIRFLOW-3148] Remove unnecessary arg "parameters" in RedshiftToS3Transfer (#3995)

"Parameters" are used to help render the SQL command.
But in this operator, only "schema" and "table" are needed.
There is no SQL command to render.

By checking the code,we can also find argument
"parameters" is never really used.

(Fix a minor issue in the docstring as well)

[AIRFLOW-3159] Update GCS logging docs for latest code (#3952)

[AIRFLOW-XXX] Fix  airflow.models.DAG docstring mistake

Closes #4004 from Sambeth/sambeth

Updated the tests written for s3/sftp operators

Fixed the flask diff errors.

Fixed aws connection test

Fixed flask diff errors.

Updated test_s3_to_sftp_operator with correct class name.

Fixed test_s3_to_sftp_operator error reported in travis.

Fixed test_s3_to_sftp_operator error reported in travis.

Changed default values for s3_to_sftp_operator

Updated test for checking for sftp file content.

Fixed flask diff error.

[AIRFLOW-XXX] Adding Home Depot as users of Apache airflow (#4013)

* Adding Home Depot as users of Apache airflow

[AIRFLOW-XXX] Added ThoughtWorks as user of Airflow in README (#4012)

[AIRFLOW-XXX] Added DataCamp to list of companies in README (#4009)

[AIRFLOW-3165] Document interpolation of '%' and warn (#4007)

[AIRFLOW-3099] Complete list of optional airflow.cfg sections (#4002)

[AIRFLOW-3162] Fix HttpHook URL parse error when port is specified (#4001)

[AIRFLOW-3055] add get_dataset and get_datasets_list to bigquery_hook (#3894)

* [AIRFLOW-3055] add get_dataset and get_datasets_list to bigquery_hook
aliceabe pushed a commit to aliceabe/incubator-airflow that referenced this pull request Jan 3, 2019
ashb pushed a commit to ashb/airflow that referenced this pull request Mar 4, 2019
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

3 participants