namita-can commented on code in PR #70328:
URL: https://github.com/apache/airflow/pull/70328#discussion_r3779946266
##########
airflow-ctl/src/airflowctl/api/operations.py:
##########
@@ -603,7 +603,7 @@ def trigger(
trigger_dag_run.conf = {}
try:
self.response = self.client.post(
- f"dags/{dag_id}/dagRuns",
json=trigger_dag_run.model_dump(mode="json")
+ f"dags/{dag_id}/dagRuns",
json=trigger_dag_run.model_dump(mode="json", exclude_none=True)
Review Comment:
Good catch, @potiuk. Pushed a fix that switches from exclude_none=True to a
targeted exclude={"partition_key", "bundle_version"} - this keeps logical_date
in the body even when None (since the server requires it, just allows null),
while still dropping the two fields older servers reject.
--
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]