From a2d04beaa1c589ffeef9a0234f04d78d3527d18d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 1 Oct 2025 10:17:26 +0100 Subject: [PATCH 1/2] (refactor) remove redundant source validation in CreateAgent --- application/api/user/routes.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/application/api/user/routes.py b/application/api/user/routes.py index 281664d3..18df1e60 100644 --- a/application/api/user/routes.py +++ b/application/api/user/routes.py @@ -1660,18 +1660,6 @@ class CreateAgent(Resource): "prompt_id", "agent_type", ] - # Require either source or sources (but not both) - - if not data.get("source") and not data.get("sources"): - return make_response( - jsonify( - { - "success": False, - "message": "Either 'source' or 'sources' field is required for published agents", - } - ), - 400, - ) validate_fields = ["name", "description", "prompt_id", "agent_type"] else: required_fields = ["name"] From 77f4f8d8b09e16a8f02f1c3449b5dd7a0c481edf Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 1 Oct 2025 10:17:52 +0100 Subject: [PATCH 2/2] (refactor) update launch configurations and remove obsolete tasks.json --- .vscode/launch.json | 33 +++++++++++++++++++++++++-------- .vscode/tasks.json | 21 --------------------- 2 files changed, 25 insertions(+), 29 deletions(-) delete mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json index 5083d977..da5d5472 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,15 +2,11 @@ "version": "0.2.0", "configurations": [ { - "name": "Docker Debug Frontend", + "name": "Frontend Debug (npm)", + "type": "node-terminal", "request": "launch", - "type": "chrome", - "preLaunchTask": "docker-compose: debug:frontend", - "url": "http://127.0.0.1:5173", - "webRoot": "${workspaceFolder}/frontend", - "skipFiles": [ - "/**" - ] + "command": "npm run dev", + "cwd": "${workspaceFolder}/frontend" }, { "name": "Flask Debugger", @@ -49,6 +45,27 @@ "--pool=solo" ], "cwd": "${workspaceFolder}" + }, + { + "name": "Dev Containers (Mongo + Redis)", + "type": "node-terminal", + "request": "launch", + "command": "docker compose -f deployment/docker-compose-dev.yaml up --build", + "cwd": "${workspaceFolder}" + } + ], + "compounds": [ + { + "name": "DocsGPT: Full Stack", + "configurations": [ + "Frontend Debug (npm)", + "Flask Debugger", + "Celery Debugger" + ], + "presentation": { + "group": "DocsGPT", + "order": 1 + } } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index ea0974bd..00000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "type": "docker-compose", - "label": "docker-compose: debug:frontend", - "dockerCompose": { - "up": { - "detached": true, - "services": [ - "frontend" - ], - "build": true - }, - "files": [ - "${workspaceFolder}/docker-compose.yaml" - ] - } - } - ] -} \ No newline at end of file