BasPH opened a new pull request, #27541:
URL: https://github.com/apache/airflow/pull/27541

   I suggest removing the default owner config (introduced 7 years ago in 
https://github.com/apache/airflow/pull/1318), and defaulting `owner` to `None`.
   
   In my experience, the default "airflow" owner never reflects a meaningful 
entity and thus leads to confusion. Defaulting to None means users have to 
explicitly set an owner, which aligns better with Python's principle "Explicit 
is better than implicit".
   
   Currently, you cannot set `owner=None` 
([link](https://github.com/apache/airflow/blob/7297892558e94c8cc869b175e904ca96e0752afe/airflow/models/dag.py#L1234)).
 A workaround is setting an empty string. This PR also fixes the UI to display 
nothing when the owner is None:
   **After**
   
![image](https://user-images.githubusercontent.com/6249654/200289607-47450dfa-b73e-4c90-abf0-4ff1c2cbe973.png)
   
   **Before (with `owner=""`)**
   
![image](https://user-images.githubusercontent.com/6249654/200291144-93ea3cf6-36f1-468b-ac67-0a56a146ae05.png)
   
   
   There's likely somebody out there that uses default_owner, so this should be 
treated as a breaking change.
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in a 
newsfragment file, named `{pr_number}.significant.rst` or 
`{issue_number}.significant.rst`, in 
[newsfragments](https://github.com/apache/airflow/tree/main/newsfragments).
   


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to