mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-20 07:21:35 +01:00
A workspace delete removes versions by workspace_id, but a request moved to another workspace kept versions tagged with the old one, so deleting the old workspace deleted versions that responses in the new workspace still pointed at. The workspace cascade has to stay: a workspace delete removes its requests in bulk and never runs each request's own version cascade. Instead, every request upsert retags that request's versions to its current workspace, one indexed UPDATE that changes no rows unless the request moved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>