Charis
0bebe50a76
fix(studio): serialize SQL folder deletion IDs (#50223)
## Summary
* serialize SQL folder IDs as the comma-delimited API query value
* add regression coverage for the folder deletion request
## Testing
* `pnpm --filter studio exec vitest run
data/content/sql-folders-delete-mutation.test.ts`
* `pnpm exec prettier --check
apps/studio/data/content/sql-folders-delete-mutation.ts
apps/studio/data/content/sql-folders-delete-mutation.test.ts`
* `pnpm --filter studio exec eslint
data/content/sql-folders-delete-mutation.ts
data/content/sql-folders-delete-mutation.test.ts`
* `pnpm --filter studio exec tsc --noEmit --pretty false`
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Fixed SQL snippet folder deletion requests so multiple selected
folders are processed correctly.
* Improved request handling by formatting folder identifiers
consistently when submitting bulk deletions.
* **Tests**
* Added coverage to verify that deleting multiple SQL snippet folders
sends the expected folder identifiers.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-10 09:16:42 -04:00
..
2026-04-03 09:15:57 +02:00
2026-04-03 09:15:57 +02:00
2026-04-03 09:15:57 +02:00
2026-08-31 10:55:23 +08:00
2026-09-10 16:45:54 +08:00
2026-08-06 16:06:38 +07:00
2026-08-13 09:48:13 +02:00
2026-06-16 00:07:16 +08:00
2026-07-17 17:21:55 +08:00
2026-08-17 11:06:26 +10:00
2026-04-20 10:33:56 +10:00
2026-08-13 09:48:13 +02:00
2026-04-03 09:15:57 +02:00
2026-08-25 13:56:40 +02:00
2026-09-10 09:16:42 -04:00
2026-04-03 09:15:57 +02:00
2026-08-13 09:48:13 +02:00
2026-08-31 10:55:23 +08:00
2026-08-25 07:43:45 -06:00
2026-07-24 16:43:00 +08:00
2026-06-16 00:07:16 +08:00
2026-07-02 08:38:17 +00:00
2026-06-17 19:15:54 +08:00
2026-06-16 00:07:16 +08:00
2026-06-16 00:07:16 +08:00
2026-07-09 17:09:03 +08:00
2026-07-09 17:09:03 +08:00
2026-08-25 07:43:45 -06:00
2026-06-16 00:07:16 +08:00
2026-07-09 17:09:03 +08:00
2026-04-03 09:15:57 +02:00
2026-07-31 16:18:25 +08:00
2026-07-08 17:16:08 +02:00
2026-07-02 08:38:17 +00:00
2026-06-16 00:07:16 +08:00
2026-07-24 08:07:08 +02:00
2026-07-02 08:38:17 +00:00
2026-07-08 12:41:53 +02:00
2026-07-09 17:09:03 +08:00
2026-04-03 09:15:57 +02:00
2026-08-27 08:52:52 +00:00
2026-08-25 13:56:40 +02:00
2026-04-15 12:34:28 -03:00
2026-05-18 09:47:59 +02:00
2026-04-03 09:15:57 +02:00
2026-09-03 11:05:14 +02:00
2026-06-09 12:18:52 +02:00
2026-09-07 15:53:36 +02:00
2026-06-23 11:16:58 -04:00
2026-07-09 17:09:03 +08:00
2026-08-31 10:55:23 +08:00
2026-04-03 09:15:57 +02:00
2026-08-31 10:55:23 +08:00
2026-06-22 20:51:14 +00:00
2026-06-02 11:02:38 -06:00
2026-04-03 09:15:57 +02:00
2026-06-04 11:17:14 +02:00
2026-04-03 09:15:57 +02:00
2026-08-06 16:06:38 +07:00
2026-09-10 16:45:54 +08:00
2026-08-06 16:06:38 +07:00
2026-06-23 21:14:27 +00:00
2026-06-16 00:07:16 +08:00
2026-04-03 09:15:57 +02:00
2026-08-31 10:55:23 +08:00
2026-07-14 13:16:11 +02:00
2026-07-31 15:26:37 -04:00
2026-08-14 14:56:23 +02:00
2026-09-10 16:45:54 +08:00
2026-08-14 15:09:29 +07:00
2026-08-21 11:24:03 +08:00
2026-08-21 09:08:28 +01:00
2026-09-09 16:56:12 +10:00
2026-09-02 21:25:16 +08:00
2026-08-18 12:29:12 +01:00
2026-04-03 09:15:57 +02:00
2026-04-03 09:15:57 +02:00
2026-09-08 17:26:24 +08:00
2026-08-06 10:52:37 +02:00
2026-08-27 17:07:58 +02:00
2026-08-13 09:48:13 +02:00
2026-04-03 09:15:57 +02:00
2026-07-02 08:38:17 +00:00
2026-05-26 14:02:14 +02:00
2026-07-14 13:16:11 +02:00
2026-07-24 08:07:08 +02:00
2026-08-25 07:43:45 -06:00
2026-05-27 15:19:54 +08:00
2026-04-03 09:15:57 +02:00
2026-09-10 16:45:54 +08:00
2026-07-16 23:46:40 +08:00
2026-06-29 17:43:38 +08:00
2026-07-09 17:09:03 +08:00
2026-09-07 11:24:42 +02:00
2026-09-07 15:53:36 +02:00
2026-08-27 17:07:58 +02:00
2026-01-22 11:17:49 -05:00
2026-03-16 11:22:30 +01:00
2026-04-03 09:15:57 +02:00
2026-06-16 14:58:48 +00:00
2026-09-10 16:45:54 +08:00
2026-06-12 11:16:12 -06:00
2026-06-16 08:02:04 -06:00
2026-07-24 08:07:08 +02:00
2026-07-24 08:07:08 +02:00