Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(api): update tag name with a single UPDATE statement (#42449)
william26831445d08c
diff --git a/api/services/tag_service.py b/api/services/tag_service.pyindex f2e819175ac..8ba8add0310 100644--- a/api/services/tag_service.py+++ b/api/services/tag_service.py@@ -5,7 +5,7 @@ import sqlalchemy as safrom flask_login import current_userfrom flask_sqlalchemy.session import Session as FlaskSessionfrom pydantic import BaseModel, Field-from sqlalchemy import delete, func, select+from sqlalchemy import delete, func, select, updatefrom sqlalchemy.engine import CursorResultfrom sqlalchemy.orm import Session, scoped_sessionfrom werkzeug.exceptions import NotFound@@ -179,7 +179,12 @@ class TagService:)if existing:raise ValueError("Tag name already exists")- tag.name = payload.name+ session.execute(+ update(Tag)+ .where(Tag.id == tag_id, Tag.tenant_id == current_tenant_id)+ .values(name=payload.name)+ .execution_options(synchronize_session="fetch")+ )session.commit()return tag