refactor: unify data preparations and research input snapshots
Deploy production / deploy (push) Successful in 53s

This commit is contained in:
yuxuanhui
2026-09-12 01:24:02 +08:00
parent 849f86fef7
commit 394438e753
82 changed files with 4146 additions and 2076 deletions
+5 -1
View File
@@ -57,7 +57,11 @@ class Assets:
"view": ViewSpec,
"workflow": WorkflowSpec,
}[body.kind]
content = schema.model_validate(body.content).model_dump(mode="json")
parsed = schema.model_validate(body.content)
if body.kind == "feature":
from ..preparations.service import Preparations
await Preparations(self.db).bind(parsed)
content = parsed.model_dump(mode="json")
if body.kind == "workflow":
from .workflows import validate_graph