Skip to content

armgit / dify

Public Imported from GitHub
0

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.

refactor(api): require app trigger node ids (#43344)

kr1shna-execfb89d018563
diff --git a/api/models/trigger.py b/api/models/trigger.py
index 2ee04946332..f1544948d2b 100644
--- a/api/models/trigger.py
+++ b/api/models/trigger.py
@@ -443,7 +443,7 @@ class AppTrigger(TypeBase):
- title (string) Trigger title
- status (string) Status: enabled, disabled, unauthorized, error
- - node_id (string) Optional workflow node ID
+ - node_id (string) Required workflow node ID
- created_at (timestamp) Creation time
- updated_at (timestamp) Last update time
"""
@@ -459,7 +459,7 @@ class AppTrigger(TypeBase):
)
tenant_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
app_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
- node_id: Mapped[str | None] = mapped_column(String(64), nullable=False)
+ node_id: Mapped[str] = mapped_column(String(64), nullable=False)
trigger_type: Mapped[str] = mapped_column(EnumText(AppTriggerType, length=50), nullable=False)
title: Mapped[str] = mapped_column(String(255), nullable=False)
provider_name: Mapped[str | None] = mapped_column(String(255), nullable=True, default="")