BaaRai
84a623bf2d
fix(db): parenthesise a top-level OR in asset DSL queries
...
QueryDSLInScope builds the DSL clause and then appends the task-scope clause with AND. An OR node joined its children without wrapping the whole group, so '(a) OR (b) AND id IN (scope)' let the first branch return assets outside the task scope. Wrap the whole disjunction; the children are already parenthesised.
Tests: the pure builder shape, and a PostgreSQL case where the bare-text branch matches both an in-scope and an out-of-scope asset (fails before the fix).
2026-11-20 01:34:28 +01:00
..
2026-11-18 00:07:50 +01:00
2026-11-17 15:41:56 -05:00
2026-11-17 15:41:56 -05:00
2026-10-08 23:14:34 +02:00
2026-11-19 14:25:04 +01:00
2026-11-20 01:34:28 +01:00
2026-11-20 01:34:28 +01:00
2026-10-08 23:14:34 +02:00
2026-11-11 15:47:58 +01:00
2026-11-15 13:38:35 +01:00
2026-11-18 17:09:04 +01:00
2026-11-18 17:09:04 +01:00
2026-11-18 22:42:38 +01:00
2026-11-18 22:42:38 +01:00
2026-10-08 23:14:34 +02:00
2026-11-14 00:38:00 +01:00
2026-11-14 12:52:34 +01:00
2026-11-10 15:49:41 +01:00
2026-11-10 15:49:41 +01:00
2026-08-24 19:29:14 +08:00
2026-11-14 00:38:00 +01:00
2026-11-13 23:46:42 +01:00
2026-10-08 23:14:34 +02:00
2026-08-31 12:20:31 -04:00
2026-11-13 23:46:42 +01:00
2026-11-16 23:48:40 +08:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-14 00:38:00 +01:00
2026-11-10 23:05:47 +01:00
2026-11-14 21:16:49 +01:00
2026-11-14 00:38:00 +01:00
2026-11-12 20:48:34 +01:00
2026-11-14 00:38:00 +01:00
2026-11-18 22:43:30 +01:00
2026-11-18 22:43:30 +01:00
2026-09-09 11:52:15 -04:00
2026-11-13 22:56:52 +01:00
2026-11-14 00:38:00 +01:00
2026-08-28 14:03:07 +08:00
2026-10-08 23:14:34 +02:00
2026-09-11 08:47:57 +08:00
2026-11-18 01:51:41 +00:00
2026-11-09 12:22:46 +01:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-17 08:40:37 +08:00
2026-11-11 23:43:12 +01:00
2026-10-08 23:14:34 +02:00
2026-11-09 21:47:40 +01:00
2026-11-10 23:05:47 +01:00
2026-09-10 13:03:20 +08:00
2026-11-13 22:56:52 +01:00
2026-11-13 22:56:52 +01:00
2026-11-09 20:21:27 +01:00
2026-11-18 00:07:50 +01:00
2026-11-18 00:07:50 +01:00
2026-08-24 19:29:00 +08:00
2026-11-10 17:45:11 +01:00
2026-08-24 19:29:00 +08:00
2026-10-08 23:14:34 +02:00
2026-11-13 10:14:39 +01:00
2026-11-09 22:35:09 +01:00
2026-11-09 22:17:56 +01:00
2026-11-12 22:35:11 +01:00
2026-09-15 23:51:37 +08:00
2026-10-08 23:14:34 +02:00
2026-11-09 12:22:46 +01:00
2026-10-08 23:14:34 +02:00
2026-11-09 12:22:46 +01:00
2026-11-09 22:35:09 +01:00
2026-09-12 03:00:28 -04:00
2026-11-17 19:13:32 +00:00
2026-11-17 19:13:31 +00:00
2026-11-14 12:52:34 +01:00
2026-11-15 18:17:33 +01:00
2026-11-16 00:00:56 +01:00
2026-11-17 13:04:36 -05:00
2026-08-24 19:28:18 +08:00
2026-11-13 23:46:42 +01:00
2026-10-08 23:14:34 +02:00
2026-07-26 04:27:45 -04:00
2026-11-18 00:07:50 +01:00
2026-11-14 13:10:57 +01:00
2026-10-08 23:14:34 +02:00
2026-11-13 14:42:56 +01:00
2026-11-17 17:52:09 +01:00
2026-11-17 17:52:09 +01:00
2026-11-18 00:07:50 +01:00
2026-11-17 17:22:35 +01:00
2026-11-17 17:22:35 +01:00
2026-11-17 22:54:16 +01:00
2026-11-17 22:54:16 +01:00
2026-09-11 00:41:01 +08:00
2026-10-08 23:14:34 +02:00
2026-10-19 00:33:08 +02:00
2026-08-24 19:30:14 +08:00
2026-08-28 12:56:29 +08:00
2026-11-16 23:48:40 +08:00
2026-11-11 00:34:55 +01:00
2026-11-11 00:34:55 +01:00
2026-08-28 12:56:29 +08:00
2026-11-14 12:17:33 +01:00
2026-11-18 00:07:50 +01:00
2026-11-18 00:07:50 +01:00
2026-11-18 00:07:50 +01:00
2026-11-12 09:38:52 +01:00
2026-11-14 00:38:00 +01:00
2026-10-08 23:14:34 +02:00
2026-11-14 00:38:00 +01:00
2026-08-24 09:16:44 -04:00
2026-11-14 00:38:00 +01:00
2026-10-08 23:14:34 +02:00
2026-11-17 18:08:49 +00:00
2026-11-13 14:42:56 +01:00
2026-08-24 19:29:00 +08:00
2026-10-08 23:14:34 +02:00
2026-11-15 08:20:08 +01:00
2026-11-17 15:50:00 -05:00
2026-08-25 14:56:15 +08:00
2026-10-19 00:28:27 +02:00
2026-08-24 19:29:00 +08:00
2026-11-16 15:31:47 -06:00
2026-11-17 15:52:04 -05:00
2026-11-17 13:04:36 -05:00
2026-08-24 19:29:00 +08:00
2026-11-14 00:38:00 +01:00
2026-09-19 09:27:03 -04:00
2026-11-14 00:38:00 +01:00
2026-11-16 15:31:47 -06:00
2026-11-13 14:42:56 +01:00
2026-08-25 12:05:26 +08:00
2026-08-28 12:56:29 +08:00
2026-11-13 21:52:27 +01:00
2026-11-13 21:52:27 +01:00
2026-11-17 00:12:09 +01:00
2026-11-17 00:12:09 +01:00
2026-10-08 23:14:34 +02:00