From f906fd92985df7ddfcf46cac50d50ccb766908ee Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Tue, 7 Oct 2025 15:04:37 -0500 Subject: [PATCH] fix(backend): Allow Project.content to be optional for linear search projects (#11118) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the type of the 'content' field in the Project model to accept None, making it optional instead of required. Linear doesn't always return data here if its not set by the user. ### Changes 🏗️ - Makes the content optional ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Manually test it works with our data ## Summary by CodeRabbit - **Bug Fixes** - Improved handling of projects with no content by making content optional. - Prevents validation errors during project creation, import, or sync when content is missing. - Enhances compatibility with integrations that may omit content fields. - No impact on existing projects with content; behavior remains unchanged. - No user action required. --- autogpt_platform/backend/backend/blocks/linear/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/backend/backend/blocks/linear/models.py b/autogpt_platform/backend/backend/blocks/linear/models.py index 0d5daf43fb..7113435e06 100644 --- a/autogpt_platform/backend/backend/blocks/linear/models.py +++ b/autogpt_platform/backend/backend/blocks/linear/models.py @@ -38,4 +38,4 @@ class Project(BaseModel): description: str priority: int progress: float - content: str + content: str | None