Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Update the SQL-text and RLS scope goldens for deletePages running in a transaction

garrytan3445b0eaa2f5
diff --git a/test/fixtures/goldens/rls-scope-inventory.json b/test/fixtures/goldens/rls-scope-inventory.json
index b2301f974b..231976b58f 100644
--- a/test/fixtures/goldens/rls-scope-inventory.json
+++ b/test/fixtures/goldens/rls-scope-inventory.json
@@ -385,12 +385,12 @@
},
"deletePages#default": {
"flagOffLanes": [
- "pool"
+ "tx"
],
- "flagOffOpensTransaction": false,
+ "flagOffOpensTransaction": true,
"flagOn": "unscoped",
"flagOnLanes": [
- "pool"
+ "tx"
],
"flagOnScopes": []
},
diff --git a/test/fixtures/goldens/sql-text/pages.json b/test/fixtures/goldens/sql-text/pages.json
index a0225f728a..3074f82636 100644
--- a/test/fixtures/goldens/sql-text/pages.json
+++ b/test/fixtures/goldens/sql-text/pages.json
@@ -187,13 +187,21 @@
"deletePages": {
"default": [
{
- "lane": "pool",
+ "event": "begin",
+ "lane": "tx"
+ },
+ {
+ "lane": "tx",
"params": [
"array<string>",
"string"
],
"sql": "DELETE FROM pages WHERE slug = ANY($1::text[]) AND source_id = $2 RETURNING slug",
- "textSha256": "86db0206d12c7c1dad3d3cd92d5ce73c9fd3c3084e54fd078f87fa960ff38611"
+ "textSha256": "f2b7a55d8e378066ca8966102867a9cc197b072f657a22a1025fe9c06bad47d1"
+ },
+ {
+ "event": "commit",
+ "lane": "tx"
}
]
},