Script - credential / secret integration (#3279)

This commit is contained in:
Shuchang Zheng
2025-08-22 18:54:40 -07:00
committed by GitHub
parent 164bcf57c9
commit e13ad75dd3
8 changed files with 158 additions and 108 deletions

View File

@@ -3930,7 +3930,7 @@ class AgentDB:
.where(WorkflowScriptModel.deleted_at.is_(None))
)
if cache_key:
if cache_key is not None:
ws_script_ids_subquery = ws_script_ids_subquery.where(WorkflowScriptModel.cache_key == cache_key)
# Latest version per script_id within the org and not deleted

View File

@@ -840,11 +840,6 @@ class ScriptFileModel(Base):
class WorkflowScriptModel(Base):
__tablename__ = "workflow_scripts"
__table_args__ = (
UniqueConstraint(
"workflow_permanent_id",
"cache_key_value",
name="uc_workflow_permanent_id_cache_key_value",
),
Index("idx_workflow_scripts_org_created", "organization_id", "created_at"),
Index("idx_workflow_scripts_workflow_permanent_id", "workflow_permanent_id"),
)