-
Notifications
You must be signed in to change notification settings - Fork 44.5k
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
refactor(backend): Simplify CredentialsField
usage + use ProviderName
globally
#8725
base: dev
Are you sure you want to change the base?
Conversation
…e hooks + other infra
…inier/open-1961-implement-github-on-pull-request-block
…h/Node | Graph/Node -> GraphModel/NodeModel
…inier/open-1961-implement-github-on-pull-request-block
…k' into reinier/make-providername-enum
Haven't reviewed or tested yet - but is this going to be a breaking change for ppls existing blocks at all? |
Nope, this is purely a refactor for DX purposes. Serialization and validation of existing objects shouldn't be affected. |
…igger block - Improve input descriptions for `repo`, `payload`, and `pull_request` - Add `<SchemaTooltip>` in cases where `NodeHandle` isn't used for a block input - Fix spacing within `<CredentialsInput>`
c415bd0
to
397ae0b
Compare
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Resolves #8357 - Add user flow to explicitly confirm deleting credentials linked to in-use webhooks - Add logic to deregister, remove, and unlink webhooks before deleting parent credentials - backend: Add `NeedConfirmation` exception - frontend: Add `AlertDialog` UI component
Resolves #8738 - Disable webhook blocks if `PLATFORM_BASE_URL` is not set - Throw `MissingConfigError` when trying to set up a node-webhook-link if `PLATFORM_BASE_URL` is not set - Add `MissingConfigError` - Add field validator to `Config.platform_base_url` and `Config.frontend_base_url`
…k' into reinier/make-providername-enum
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
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.
LGTM
@@ -16,7 +17,7 @@ | |||
|
|||
GithubCredentials = APIKeyCredentials | OAuth2Credentials | |||
GithubCredentialsInput = CredentialsMetaInput[ | |||
Literal["github"], | |||
Literal[ProviderName.GITHUB], | |||
Literal["api_key", "oauth2"] if GITHUB_OAUTH_IS_CONFIGURED else Literal["api_key"], |
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.
Didn't know you could use a condition inside generic type 😮
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
✅ Deploy Preview for auto-gpt-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
ProviderName
fills that gap.credentials
input currently requires defining the provider and credential type(s) both onCredentialsMetaInput
andCredentialsField
. For better DX, this redundancy should be removed, but without compromising schema generation and data validation.Changes 🏗️
credentials
inputsProviderName
enum globally