sunank200 commented on code in PR #47371:
URL: https://github.com/apache/airflow/pull/47371#discussion_r1993087490
##########
airflow/configuration.py:
##########
@@ -403,6 +403,64 @@ def inversed_deprecated_sections(self):
upgraded_values: dict[tuple[str, str], str]
"""Mapping of (section,option) to the old value that was upgraded"""
+ legacy_incompatible_defaults: dict[tuple[str, str], tuple[Pattern, str,
str]] = {
+ ("logging", "log_filename_template"): (
+ re.compile(
+ r"^(?:" + re.escape("{{ ti.dag_id }}/{{ ti.task_id }}/{{ ts
}}/{{ try_number }}.log") + r"|"
+
r"dag_id=\{\s*ti\.dag_id\s*\}/run_id=\{\s*ti\.run_id\s*\}/task_id=\{\s*ti\.task_id\s*\}/"
+
r"\{%%\s*if\s+ti\.map_index\s*>=\s*0\s*%%\}map_index=\{\s*ti\.map_index\s*\}/\{%%\s*endif\s*%%\}"
+ r"attempt=\{\s*try_number\s*\}\.log" + r")$"
+ ),
+ "3.0",
+ "The default value for 'log_filename_template' from Airflow 2 may
break task logs in the new UI.",
+ ),
+ ("core", "dag_ignore_file_syntax"): (
+ re.compile(r"^regexp$"),
+ "3.0",
+ "The default value changed from 'regexp' in Airflow 2.x to 'glob'
in Airflow 3.0.",
+ ),
+ ("api", "auth_backends"): (
+ re.compile(r"^airflow\.api\.auth\.backend\.session$"),
+ "3.0",
+ "The default auth backend has changed from
'airflow.api.auth.backend.session' to "
+ "'airflow.providers.fab.auth_manager.api.auth.backend.session' in
Airflow 3.0.",
+ ),
Review Comment:
removed it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]