feat: add board memory, approvals, onboarding APIs

This commit is contained in:
Abhimanyu Saharan
2026-02-05 14:43:25 +05:30
parent c58117c494
commit 5471671dc4
5 changed files with 391 additions and 0 deletions

View File

@@ -161,6 +161,14 @@ def update_board(
)
for key, value in updates.items():
setattr(board, key, value)
if updates.get("board_type") == "goal":
objective = updates.get("objective") or board.objective
metrics = updates.get("success_metrics") or board.success_metrics
if not objective or not metrics:
raise HTTPException(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
detail="Goal boards require objective and success_metrics",
)
if not board.gateway_id:
raise HTTPException(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,