Skip to content

feat: added toasters for permission denied (#57966) - #58016

Merged
bbovenzi merged 20 commits into
apache:mainfrom
aaron-wolmutt:feat-unauthorized-dag-run
Dec 4, 2025
Merged

bbovenzi merged 20 commits into
apache:mainfrom
aaron-wolmutt:feat-unauthorized-dag-run

Conversation

@aaron-wolmutt

Copy link
Copy Markdown
Contributor

Add http error validation when running a dag. Displays toasters if the user is forbidden, unauthorized, or a generic error occurs.

Response to #57966

image

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Nov 7, 2025
@jroachgolf84

Copy link
Copy Markdown
Collaborator

@aaron-wolmutt - just to confirm, the "Trigger" button is greyed out as soon when the pop-up initially opens? Or does it "grey out" after they try to trigger it for the first time?

@aaron-wolmutt

Copy link
Copy Markdown
Contributor Author

@aaron-wolmutt - just to confirm, the "Trigger" button is greyed out as soon when the pop-up initially opens? Or does it "grey out" after they try to trigger it for the first time?

It only adds the toaster in the bottom right.

@aaron-wolmutt

Copy link
Copy Markdown
Contributor Author

@aaron-wolmutt - just to confirm, the "Trigger" button is greyed out as soon when the pop-up initially opens? Or does it "grey out" after they try to trigger it for the first time?

@jroachgolf84 I added the "grey out" in the last commit.

image

@aaron-wolmutt
aaron-wolmutt force-pushed the feat-unauthorized-dag-run branch from 0b18963 to e68ea2c Compare November 11, 2025 23:59
@aaron-wolmutt
aaron-wolmutt marked this pull request as draft November 18, 2025 20:34

@pierrejeambrun pierrejeambrun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

A few early stage suggestions, let me know when the PR is unmarked as draft.

@aaron-wolmutt
aaron-wolmutt marked this pull request as ready for review November 21, 2025 16:41
@aaron-wolmutt

Copy link
Copy Markdown
Contributor Author

Thanks for the PR.

A few early stage suggestions, let me know when the PR is unmarked as draft.

@pierrejeambrun I marked this as ready for review. Should the error alert be removed from the bottom of the trigger dag form too?

@aaron-wolmutt

Copy link
Copy Markdown
Contributor Author

Here is the behavior of the permissions denied with the grey out

20251121-1655-42 7059869

@aaron-wolmutt
aaron-wolmutt marked this pull request as draft November 28, 2025 19:12
@aaron-wolmutt
aaron-wolmutt force-pushed the feat-unauthorized-dag-run branch from 7622399 to 4160373 Compare November 28, 2025 23:20
@aaron-wolmutt
aaron-wolmutt marked this pull request as ready for review November 28, 2025 23:20

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last nit, looking good to me.

@aaron-wolmutt aaron-wolmutt changed the title feat: add http error validation and toasters for permission denied (#57966) feat: added toasters for permission denied (#57966) Dec 4, 2025
@bbovenzi bbovenzi added this to the Airflow 3.1.4 milestone Dec 4, 2025
@bbovenzi
bbovenzi merged commit ba7e2fb into apache:main Dec 4, 2025
@aaron-wolmutt
aaron-wolmutt deleted the feat-unauthorized-dag-run branch December 16, 2025 01:04
pierrejeambrun pushed a commit to astronomer/airflow that referenced this pull request Jan 16, 2026
* feat: add http error validation and toasters for permission denied

* disable trigger dag button if the useTrigger hook returns an error

* fix lint

* ci: ran prek hooks

* ci: fix linting

* fix toaster error handling. added toaster error translations json

* removed error util. refactored to use generic error

* remove deleted utility import

* remove generic from triggerDag.toaster.error translation

(cherry picked from commit ba7e2fb)
@pierrejeambrun

Copy link
Copy Markdown
Member

Manual backport:
#60646

pierrejeambrun added a commit that referenced this pull request Jan 16, 2026
* feat: add http error validation and toasters for permission denied

* disable trigger dag button if the useTrigger hook returns an error

* fix lint

* ci: ran prek hooks

* ci: fix linting

* fix toaster error handling. added toaster error translations json

* removed error util. refactored to use generic error

* remove deleted utility import

* remove generic from triggerDag.toaster.error translation

(cherry picked from commit ba7e2fb)

Co-authored-by: Aaron Wolmutt <[email protected]>
jhgoebbert pushed a commit to jhgoebbert/airflow_Owen-CH-Leung that referenced this pull request Feb 8, 2026
* feat: add http error validation and toasters for permission denied

* disable trigger dag button if the useTrigger hook returns an error

* fix lint

* ci: ran prek hooks

* ci: fix linting

* fix toaster error handling. added toaster error translations json

* removed error util. refactored to use generic error

* remove deleted utility import

* remove generic from triggerDag.toaster.error translation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants