Skip to content

Commit 5c166b3

Browse files
zhaobingshuangzhaobs
and
zhaobs
authored
fix: tags could not be saved when the Workflow Tool was created (#11481)
Co-authored-by: zhaobs <[email protected]>
1 parent 230fa32 commit 5c166b3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

api/controllers/console/workspace/tool_providers.py

+1
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ def post(self):
368368
description=args["description"],
369369
parameters=args["parameters"],
370370
privacy_policy=args["privacy_policy"],
371+
labels=args["labels"],
371372
)
372373

373374

api/services/tools/workflow_tools_manage_service.py

+4
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ def create_workflow_tool(
8181
db.session.add(workflow_tool_provider)
8282
db.session.commit()
8383

84+
if labels is not None:
85+
ToolLabelManager.update_tool_labels(
86+
ToolTransformService.workflow_provider_to_controller(workflow_tool_provider), labels
87+
)
8488
return {"result": "success"}
8589

8690
@classmethod

0 commit comments

Comments
 (0)