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

   ### Summary
   
   Although PR #64815 was closed, issue #50992 remains on the roadmap for 
AIP-86, so I've opened this PR to address it.
   
   - Add tests verifying the public DAG API endpoints work correctly with 
deadline-bearing DAGs
   - Cover `GET /dags`, `GET /dags/{id}`, `GET /dags/{id}/details`, `PATCH 
/dags/{id}`, `PATCH /dags`, and `DELETE /dags/{id}`
   - Add `clear_db_deadline` and `clear_db_deadline_alert` to test cleanup to 
prevent FK constraint issues
   
   ### Details
   The public DAG endpoint tests (`test_dags.py`) never created DAGs with 
deadline alerts, so there was
   no coverage for how the API behaves when `DagModel._deadline` has data and
   `SerializedDagModel.deadline_alerts` has FK-linked records.
   
   7 new test methods across 6 test classes. No existing tests modified.
   
   closes: #50992
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Sonnet 5)
   
   Generated-by: Claude Code (Sonnet 5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
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]

Reply via email to