yuseok89 commented on code in PR #66554:
URL: https://github.com/apache/airflow/pull/66554#discussion_r3234875742
##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/dag_run.py:
##########
@@ -73,6 +73,49 @@ def validate_model(cls, data: Any) -> Any:
return data
+class BulkDagRunBody(DAGRunPatchBody, StrictBaseModel):
+ """Request body for bulk update and delete Dag runs."""
+
+ dag_run_id: str
+ dag_id: str | None = None
+
+
+class DagRunIdentifier(StrictBaseModel):
+ """Identifier for a Dag run targeted by a bulk operation."""
+
+ dag_run_id: str
+ dag_id: str | None = None
Review Comment:
Made `BulkDagRunBody` inherit from `DagRunIdentifier` so the identifier
fields live in one place.
--
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]