From 0fb9e31b35138af61c91683f982970720fe107b8 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Wed, 19 Aug 2026 04:11:51 +0000 Subject: [PATCH 1/2] chore(fixtures): bump the @constructive-db fixture modules to the same-scope FK release Picks up apps@7.0.0, catalog@6.0.0, routing@8.0.0, routing-platform@7.0.0, the published output of the constructive-db same-scope foreign key fix. --- pgpm.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pgpm.json b/pgpm.json index c006b5b38..f292d2fb4 100644 --- a/pgpm.json +++ b/pgpm.json @@ -3,10 +3,10 @@ "testing/*" ], "dependencies": { - "@constructive-db/apps": "5.1.0", - "@constructive-db/catalog": "5.1.0", - "@constructive-db/routing": "6.1.0", - "@constructive-db/routing-platform": "5.1.0", + "@constructive-db/apps": "7.0.0", + "@constructive-db/catalog": "6.0.0", + "@constructive-db/routing": "8.0.0", + "@constructive-db/routing-platform": "7.0.0", "@pgpm/database-jobs": "0.41.0", "@pgpm/function-resolution": "0.41.0", "@pgpm/jwt-claims": "0.41.0", From 96b3c6f123e3b565479fe6aa0f789909a7aa0876 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Wed, 19 Aug 2026 04:23:06 +0000 Subject: [PATCH 2/2] ci: bootstrap the authenticated_client role for the new routing grants routing@8.0.0 / routing-platform@7.0.0 grant to authenticated_client, which is opt-in (admin-users bootstrap --client) and was absent from 6.1.0 / 5.1.0, so every seed.pgpm deploy failed with role "authenticated_client" does not exist. --- .agents/skills/constructive-monorepo-setup/SKILL.md | 2 +- .agents/skills/constructive-setup/SKILL.md | 4 ++-- .../skills/constructive-setup/references/local-dev-setup.md | 2 +- .agents/skills/constructive-setup/references/local-env.md | 2 +- .github/workflows/run-tests.yaml | 6 +++--- DEVELOPMENT.md | 2 +- Makefile | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.agents/skills/constructive-monorepo-setup/SKILL.md b/.agents/skills/constructive-monorepo-setup/SKILL.md index f86a20cc3..fef2b61f9 100644 --- a/.agents/skills/constructive-monorepo-setup/SKILL.md +++ b/.agents/skills/constructive-monorepo-setup/SKILL.md @@ -22,7 +22,7 @@ pgpm docker start --image docker.io/constructiveio/postgres-plus:18 --recreate eval "$(pgpm env)" # 4. Bootstrap admin users for testing -pgpm admin-users bootstrap --yes +pgpm admin-users bootstrap --client --yes pgpm admin-users add --test --yes # 5. Build the monorepo diff --git a/.agents/skills/constructive-setup/SKILL.md b/.agents/skills/constructive-setup/SKILL.md index 8e5ee055f..42aaa60a8 100644 --- a/.agents/skills/constructive-setup/SKILL.md +++ b/.agents/skills/constructive-setup/SKILL.md @@ -29,7 +29,7 @@ pgpm docker start --image docker.io/constructiveio/postgres-plus:18 --recreate eval "$(pgpm env)" # 3. Bootstrap database users -pgpm admin-users bootstrap --yes +pgpm admin-users bootstrap --client --yes pgpm admin-users add --test --yes # 4. Build the monorepo @@ -70,7 +70,7 @@ For environment variable details, see the **pgpm** skill: [references/env.md](.. Create the required PostgreSQL roles for Constructive's security model: ```bash -pgpm admin-users bootstrap --yes +pgpm admin-users bootstrap --client --yes pgpm admin-users add --test --yes ``` diff --git a/.agents/skills/constructive-setup/references/local-dev-setup.md b/.agents/skills/constructive-setup/references/local-dev-setup.md index 93513c28b..a783da4d4 100644 --- a/.agents/skills/constructive-setup/references/local-dev-setup.md +++ b/.agents/skills/constructive-setup/references/local-dev-setup.md @@ -13,7 +13,7 @@ Quick-start for running the Constructive GraphQL server locally with Docker Post ```bash pgpm docker start --image docker.io/constructiveio/postgres-plus:18 --recreate eval "$(pgpm env)" -pgpm admin-users bootstrap --yes +pgpm admin-users bootstrap --client --yes pgpm admin-users add --test --yes ``` diff --git a/.agents/skills/constructive-setup/references/local-env.md b/.agents/skills/constructive-setup/references/local-env.md index ec3eeea55..bf1eb1e16 100644 --- a/.agents/skills/constructive-setup/references/local-env.md +++ b/.agents/skills/constructive-setup/references/local-env.md @@ -44,7 +44,7 @@ Sets `PGHOST`, `PGPORT`, `PGUSER`, `PGPASSWORD`, and `PGDATABASE` for the local ### 4. Bootstrap database users ```bash -pgpm admin-users bootstrap --yes +pgpm admin-users bootstrap --client --yes pgpm admin-users add --test --yes ``` diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 423e5438c..c5c3f866f 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -306,7 +306,7 @@ jobs: - name: Seed app_user run: | - pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes + pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --client --yes pnpm --filter pgpm exec node dist/index.js admin-users add --test --yes - name: Install pgpm fixture modules @@ -426,7 +426,7 @@ jobs: - name: Seed app_user run: | - pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes + pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --client --yes pnpm --filter pgpm exec node dist/index.js admin-users add --test --yes - name: Install pgpm fixture modules @@ -510,7 +510,7 @@ jobs: - name: Seed app_user run: | - pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes + pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --client --yes pnpm --filter pgpm exec node dist/index.js admin-users add --test --yes - name: Install Ollama diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 94a84ee4f..c5b06f5ae 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -29,7 +29,7 @@ pnpm build Seed the `app_user` roles used by tests: ```sh -pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes +pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --client --yes pnpm --filter pgpm exec node dist/index.js admin-users add --test --yes ``` diff --git a/Makefile b/Makefile index 631897abf..838ab07d9 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ ssh: docker exec -it postgres /bin/bash roles: - pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --yes + pnpm --filter pgpm exec node dist/index.js admin-users bootstrap --client --yes pnpm --filter pgpm exec node dist/index.js admin-users add --test --yes install: