Skip to content

feat(platform): Support multiple credentials inputs on blocks#8932

Merged
Pwuts merged 19 commits intodevfrom
reinier/open-2157-support-multiple-provider-credentials-inputs
Jan 3, 2025
Merged

feat(platform): Support multiple credentials inputs on blocks#8932
Pwuts merged 19 commits intodevfrom
reinier/open-2157-support-multiple-provider-credentials-inputs

Conversation

@Pwuts
Copy link
Member

@Pwuts Pwuts commented Dec 10, 2024

Changes 🏗️

  • feat(platform): Support multiple credentials inputs on blocks

    Aside from credentials, fields within the name pattern *_credentials are now also supported!

  • Update docs with info on multi credentials support

Checklist 📋

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • I have tested my changes according to the test plan:

… `credentials` inputs

- Add `credentials_provider` and `credentials_types` to field schema from `CredentialsMetaInput` instead of `CredentialsField`
  - Remove `provider` and `supported_credential_types` params from `CredentialsField` and all its usages
  - Add `credentials` schema validation logic to `CredentialsMetaInput`, which is called from `BlockSchema.__pydantic_init_subclass__`
- Add missing providers to `ProviderName`
- Replace string literals for provider names with `ProviderName.{PROVIDER}` on blocks and in `CredentialsMetaInput`, `BlockWebhookConfig`, `*OAuthHandler`
- docs: Update instructions for blocks with authentication
@github-actions github-actions bot added documentation Improvements or additions to documentation platform/backend AutoGPT Platform - Back end platform/blocks size/xl labels Dec 10, 2024
@netlify
Copy link

netlify bot commented Dec 10, 2024

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit 66d2468
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/6776f0b60ed7400008b88310

@netlify
Copy link

netlify bot commented Dec 10, 2024

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit 66d2468
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/6776f0b69148760008993ece

@github-actions github-actions bot added the platform/frontend AutoGPT Platform - Front end label Dec 10, 2024
@Pwuts Pwuts marked this pull request as ready for review December 11, 2024 11:44
@Pwuts Pwuts requested a review from a team as a code owner December 11, 2024 11:44
@Pwuts Pwuts requested review from Swiftyos, aarushik93, kcze and ntindle and removed request for a team and Swiftyos December 11, 2024 11:44
@Pwuts Pwuts changed the base branch from dev to reinier/make-providername-enum December 11, 2024 11:48
@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Dec 11, 2024
…support-multiple-provider-credentials-inputs
@github-actions
Copy link
Contributor

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Dec 11, 2024
@Pwuts
Copy link
Member Author

Pwuts commented Dec 11, 2024

@aarushik93 could you branch from this PR and see if it works for you? I currently have no blocks to test it on.

Base automatically changed from reinier/make-providername-enum to dev December 11, 2024 19:56
@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Dec 11, 2024
@github-actions
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Dec 11, 2024
@github-actions
Copy link
Contributor

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

aarushik93
aarushik93 previously approved these changes Dec 17, 2024
Copy link
Contributor

@aarushik93 aarushik93 left a comment

Choose a reason for hiding this comment

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

Other than @kcze coments looks good

@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Dec 18, 2024
@github-actions
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

Swiftyos
Swiftyos previously approved these changes Jan 2, 2025
@Pwuts Pwuts dismissed stale reviews from Swiftyos and aarushik93 via d858bc1 January 2, 2025 19:54
@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2025

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Jan 2, 2025
@Pwuts Pwuts requested review from aarushik93 and kcze January 2, 2025 20:16
@Pwuts Pwuts enabled auto-merge January 2, 2025 20:19
Copy link
Contributor

@kcze kcze left a comment

Choose a reason for hiding this comment

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

LGTM

@Pwuts Pwuts added this pull request to the merge queue Jan 3, 2025
Merged via the queue into dev with commit 1375a0f Jan 3, 2025
@Pwuts Pwuts deleted the reinier/open-2157-support-multiple-provider-credentials-inputs branch January 3, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation platform/backend AutoGPT Platform - Back end platform/frontend AutoGPT Platform - Front end size/l

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants