PNL0 commented on code in PR #47557:
URL: https://github.com/apache/airflow/pull/47557#discussion_r1988998517
##########
airflow/api_fastapi/core_api/routes/public/dags.py:
##########
@@ -235,6 +236,23 @@ def patch_dag(
data = patch_body.model_dump(include=fields_to_update, by_alias=True)
+ is_paused = data.get("is_paused")
+ if is_paused is not None:
Review Comment:
I think I should remove the if-clause, because is_paused is a boolean that
will always be true or false (since it represents the value of is_paused field
from the DagModel, after the update, it's impossible to be None).
--
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]