You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "github-actions[bot] (via GitHub)" <gi...@apache.org> on 2026/04/01 14:49:23 UTC
[PR] [v3-2-test] Fix TypeError in GET /dags/{dag_id}/tasks when order_by field has None values (#64384) [airflow]
github-actions[bot] opened a new pull request, #64587:
URL: https://github.com/apache/airflow/pull/64587
The tasks endpoint crashed with a 500 Internal Server Error when sorting
by a field (e.g. start_date) that contains None values, because Python 3
cannot compare None with None using '<'.
This adds explicit validation of the order_by parameter against a
whitelist of sortable fields (returning 400 for invalid fields, consistent
with SortParam used in other endpoints) and handles None values in the
sort key so nullable fields work correctly.
Closes: #63927
(cherry picked from commit 15cf396a3b906f9297852d6a4cb9e36dbdb43ef1)
Co-authored-by: Antonio Mello <aj...@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <no...@anthropic.com>
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-2-test] Fix TypeError in GET /dags/{dag_id}/tasks when order_by field has None values (#64384) [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun merged PR #64587:
URL: https://github.com/apache/airflow/pull/64587
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org