-
Notifications
You must be signed in to change notification settings - Fork 16.4k
feat: added toasters for permission denied (#57966) #58016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added toasters for permission denied (#57966) #58016
Conversation
|
@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. |
@jroachgolf84 I added the "grey out" in the last commit.
|
0b18963 to
e68ea2c
Compare
There was a problem hiding this comment.
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.
@pierrejeambrun I marked this as ready for review. Should the error alert be removed from the bottom of the trigger dag form too? |
7622399 to
4160373
Compare
pierrejeambrun
left a comment
There was a problem hiding this comment.
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.
* 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
* 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)
|
Manual backport: |
* 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 <163314771+aaron-wolmutt@users.noreply.github.com>


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