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

   When refreshing the Dag or plugin import-error count failed, the Dashboard 
stats, the Dags list header and the Plugins page showed a full-width "500 
Internal Server Error" banner next to the count. These requests only fail when 
the API server or metadata database is having trouble, or when the user's role 
lacks the permission to see them. In those cases the rest of the page is 
already failing too, or the user can't do anything about it, and the banner 
pushed the page content down.
   
   The count widgets now fail silently: they keep the last loaded count, or 
show nothing if it never loaded, which is what already happened on a failed 
first load. The failed request is still visible in the browser's network tools.
   
   The plugin widget's special case for 403 is removed as well, since it only 
existed to hide that banner.
   
   ### Screenshots
   
   Each page loaded its count normally, then the next refresh returned 500 
(mocked in the browser). The stack had no plugin import errors, so the plugin 
count's first response was mocked as one error.
   
   | | Before | After |
   |---|---|---|
   | Dashboard | <img width="560" alt="dashboard-refetch-failed-before" 
src="https://github.com/user-attachments/assets/4ca261ac-68cb-4eaa-a1e0-774e24b2c37c";
 /> | <img width="560" alt="dashboard-refetch-failed-after" 
src="https://github.com/user-attachments/assets/cd166ebf-9059-4dbf-b364-bc39bca46b3d";
 /> |
   | Dags list | <img width="560" alt="dags-list-refetch-failed-before" 
src="https://github.com/user-attachments/assets/8712c434-b92c-4ed7-851f-86327ca2e218";
 /> | <img width="560" alt="dags-list-refetch-failed-after" 
src="https://github.com/user-attachments/assets/ae981c5f-7a2a-4bdc-aa51-0e52ca35d69a";
 /> |
   | Plugins | <img width="560" alt="plugins-refetch-failed-before" 
src="https://github.com/user-attachments/assets/7f1b75bf-cf07-4686-a7a3-8c55c9938690";
 /> | <img width="560" alt="plugins-refetch-failed-after" 
src="https://github.com/user-attachments/assets/2cb8142d-471b-4f05-a9c1-55463adab02c";
 /> |
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   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