This is an automated email from the ASF dual-hosted git repository.

kamilbregula pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new cb9d142  Update version added field in config after 2.2.0 release 
(#18899)
cb9d142 is described below

commit cb9d142a8fc2f35a8105e37b85ed473365416ba4
Author: Kamil BreguĊ‚a <mik-...@users.noreply.github.com>
AuthorDate: Tue Oct 12 10:11:10 2021 +0200

    Update version added field in config after 2.2.0 release (#18899)
    
    * Update version added field in config after 2.2.0 release
    
    * fixup! Update version added field in config after 2.2.0 release
---
 airflow/config_templates/config.yml            | 4 ++--
 dev/validate_version_added_fields_in_config.py | 8 ++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/airflow/config_templates/config.yml 
b/airflow/config_templates/config.yml
index 0e58f26..edc5b63 100644
--- a/airflow/config_templates/config.yml
+++ b/airflow/config_templates/config.yml
@@ -1967,14 +1967,14 @@
     - name: forwardable
       description: |
         Allow to disable ticket forwardability.
-      version_added: ~
+      version_added: 2.2.0
       type: boolean
       example: ~
       default: "True"
     - name: include_ip
       description: |
         Allow to remove source IP from token, useful when using token behind 
NATted Docker host.
-      version_added: ~
+      version_added: 2.2.0
       type: boolean
       example: ~
       default: "True"
diff --git a/dev/validate_version_added_fields_in_config.py 
b/dev/validate_version_added_fields_in_config.py
index e02e2fe..20f9b1d 100755
--- a/dev/validate_version_added_fields_in_config.py
+++ b/dev/validate_version_added_fields_in_config.py
@@ -28,6 +28,12 @@ import yaml
 
 ROOT_DIR = Path(__file__).resolve().parent / ".."
 
+KNOWN_FALSE_DETECTIONS = {
+    # This option has been added in v2.0.0, but we had mistake in config.yml 
file until v2.2.0.
+    # https://github.com/apache/airflow/pull/17808
+    ('logging', 'extra_logger_names', '2.2.0')
+}
+
 
 def fetch_pypi_versions() -> List[str]:
     r = requests.get('https://pypi.org/pypi/apache-airflow/json')
@@ -105,6 +111,8 @@ local_options_with_version_added: Set[Tuple[str, str, str]] 
= {
 }
 diff_options: Set[Tuple[str, str, str]] = computed_options - 
local_options_with_version_added
 
+diff_options -= KNOWN_FALSE_DETECTIONS
+
 if diff_options:
     pprint(diff_options)
     sys.exit(1)

Reply via email to