diff --git a/UPDATING.md b/UPDATING.md index 5b28a5efc35b61..baa87a449a7f56 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -61,6 +61,11 @@ https://developers.google.com/style/inclusive-documentation --> + +### Use NULL as default value for dag.description + +Now use NULL as default value for dag.description in dag table + ### Assigning task to a DAG using bitwise shift (bit-shift) operators are no longer supported Previously, you could assign a task to a DAG as follows: diff --git a/airflow/models/dag.py b/airflow/models/dag.py index f9f9bec408222a..a5642992a124d0 100644 --- a/airflow/models/dag.py +++ b/airflow/models/dag.py @@ -210,7 +210,7 @@ class DAG(BaseDag, LoggingMixin): def __init__( self, dag_id: str, - description: str = '', + description: Optional[str] = None, schedule_interval: Optional[ScheduleInterval] = timedelta(days=1), start_date: Optional[datetime] = None, end_date: Optional[datetime] = None, diff --git a/airflow/www/templates/airflow/dag.html b/airflow/www/templates/airflow/dag.html index 893d3b0e8fec3b..ded41def4c1f46 100644 --- a/airflow/www/templates/airflow/dag.html +++ b/airflow/www/templates/airflow/dag.html @@ -33,7 +33,8 @@