Diego Imbert and Claude Opus 4.8
a672f125bd
feat(backend): scope drafts to the owning user's email
...
Add a nullable `email` column to the `draft` table and replace the
(workspace_id, path, typ) primary key with a unique index over
(workspace_id, path, typ, COALESCE(email, '')) so each user gets at most
one draft per path while the legacy/NULL bucket stays unique too. The
column is nullable so pre-migration drafts are preserved.
All draft reads/writes are now user-scoped:
- create_draft stamps email = authed.email and upserts per-user
- delete_draft and the deploy-time draft cleanup only touch the
caller's own draft
- get_{script,flow,app}_by_path_with_draft and the list endpoints only
surface the caller's own draft (draft.email = authed.email)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-03 15:53:04 +02:00
..
2026-05-18 23:33:39 +00:00
2026-02-07 22:12:55 +00:00
2026-05-20 15:58:05 +00:00
2026-05-30 09:33:27 +00:00
2026-03-26 08:18:01 +00:00
2025-06-02 22:12:33 +02:00
2026-06-03 15:53:04 +02:00
2026-04-07 12:14:24 +00:00
2026-03-27 09:55:04 +00:00
2026-03-04 11:50:59 +00:00
2026-01-20 12:52:58 +00:00
2026-04-23 16:30:18 +00:00
2026-02-07 22:12:55 +00:00
2026-04-05 14:00:44 +00:00
2026-03-08 16:18:22 +00:00
2026-06-03 15:53:04 +02:00
2026-05-11 22:09:21 +00:00
2026-02-07 22:12:55 +00:00
2026-02-04 18:48:51 +00:00
2026-03-27 09:55:04 +00:00
2026-02-08 12:12:03 +00:00
2026-02-08 12:12:03 +00:00
2025-06-02 22:12:33 +02:00
2026-02-08 12:12:03 +00:00
2026-03-27 09:55:04 +00:00
2026-02-08 12:12:03 +00:00
2026-03-28 09:32:10 +00:00
2026-03-03 16:46:10 +00:00
2025-12-10 17:28:56 +00:00
2026-04-14 00:04:10 +00:00
2026-03-24 09:45:37 +00:00
2026-03-05 06:19:51 +00:00
2026-02-07 22:12:55 +00:00
2026-02-07 22:12:55 +00:00
2026-06-02 22:10:16 +00:00
2026-05-26 20:36:53 +00:00
2026-02-07 22:12:55 +00:00
2026-01-14 12:06:40 +00:00
2026-02-11 06:44:10 +00:00
2026-04-24 17:14:08 +00:00
2026-05-03 07:14:14 +00:00
2025-06-02 22:12:33 +02:00
2026-05-20 13:26:34 +00:00
2026-01-14 12:06:40 +00:00
2026-02-07 22:12:55 +00:00
2026-04-03 17:39:32 +00:00
2026-03-27 09:55:04 +00:00
2026-04-03 13:46:09 +00:00
2025-09-04 22:05:22 +00:00
2026-03-22 17:18:22 +00:00
2026-03-27 09:55:04 +00:00
2026-03-27 09:55:04 +00:00
2026-04-08 20:35:27 +00:00
2026-05-29 04:50:31 +00:00
2026-04-02 20:55:23 +00:00
2025-06-02 22:12:33 +02:00
2026-05-30 10:05:19 +00:00
2025-06-02 22:12:33 +02:00
2025-06-02 22:12:33 +02:00
2025-09-19 17:43:16 +00:00
2026-02-07 22:12:55 +00:00
2026-04-23 16:30:18 +00:00
2026-04-13 21:50:50 +00:00
2026-05-03 07:14:14 +00:00
2026-03-20 12:37:05 +00:00
2026-06-02 06:43:03 +00:00
2026-02-11 10:31:03 +00:00
2026-02-07 22:12:55 +00:00
2026-03-05 06:19:51 +00:00
2026-02-08 00:39:56 +00:00
2026-03-27 09:55:04 +00:00
2026-04-29 18:54:55 +00:00
2026-05-14 08:16:24 +00:00
2026-04-24 17:14:08 +00:00