Skip to content
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

fix(frontend): Allow importing agent file with empty description #8670

Merged

Conversation

Pwuts
Copy link
Member

@Pwuts Pwuts commented Nov 15, 2024

Changes 🏗️

  • Check structure of agent file with obj[key] != null rather than !!obj[key] to allow empty strings

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:
    • Make an agent with an empty description; export and import it
Example test plan
  • Create from scratch and execute an agent with at least 3 blocks
  • Import an agent from file upload, and confirm it executes correctly
  • Upload agent to marketplace
  • Import an agent from marketplace and confirm it executes correctly
  • Edit an agent from monitor, and confirm it executes correctly

@Pwuts Pwuts requested a review from a team as a code owner November 15, 2024 14:37
@Pwuts Pwuts requested review from Bentlybro and kcze and removed request for a team November 15, 2024 14:37
@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end platform/backend AutoGPT Platform - Back end size/s labels Nov 15, 2024
Copy link

netlify bot commented Nov 15, 2024

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit 49819b5
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/673bd1bb2dbdce00086528f6

@Pwuts Pwuts enabled auto-merge (squash) November 15, 2024 14:38
@Pwuts Pwuts merged commit e81083d into dev Nov 18, 2024
15 checks passed
@Pwuts Pwuts deleted the reinier/open-2044-agent-import-fails-with-empty-description branch November 18, 2024 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/backend AutoGPT Platform - Back end platform/frontend AutoGPT Platform - Front end size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants