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

   On the Task Instances list, unselecting the last selected row sends `GET 
/api/v2/dags//details`, which the API answers with a 404.
   
   The bulk Clear button keeps its dialog mounted while the action bar is 
closed. With no task instance to clear, the dialog's Dag id fell back to an 
empty string and was handed to `useAutoRefresh`, which only skips its Dag 
details lookup when the id is `undefined`. The dialog now passes `undefined` 
when it has nothing to clear. The selection in the Grid view (#75221) goes 
through the same dialog, and a plain click that ends a multi-selection 
triggered the same request there.
   
   Requests to `/dags//` while selecting one row of the Task Instances list, 
then unselecting it:
   
   | Before | After |
   | --- | --- |
   | `unselect it: GET /api/v2/dags//details -> 404` | none |
   
   | Task Instances list with one row selected (the bulk Clear dialog is 
mounted from here on) |
   | --- |
   | SCREENSHOT |
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.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