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

   ### What this PR does
   
   Improves error handling when triggering a DAG without sufficient permissions.
   
   Previously the UI displayed a generic "Forbidden" error message when the 
backend returned a 403 response.  
   This change detects the 403 response and shows a clearer permission-related 
message in the UI toast.
   
   ### Changes
   
   - Detect 403 responses in `useTrigger`
   - Show `triggerDag.permissionDenied` message instead of generic error
   - Added missing i18n key for the permission error message
   
   ### How it was tested
   
   - Ran Airflow locally using Breeze
   - Triggered a DAG as a user without permission
   - Verified that the UI now shows a clear permission error message
   - Verified UI builds successfully (`pnpm build`)
   - Verified lint passes (`pnpm lint`)


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