From 6ba85741e667e2b29938a8077819626522226066 Mon Sep 17 00:00:00 2001 From: zetazzz Date: Fri, 9 Jan 2026 12:58:46 +0700 Subject: [PATCH 1/4] name changing --- jobs/DEVELOPMENT_JOBS.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/jobs/DEVELOPMENT_JOBS.md b/jobs/DEVELOPMENT_JOBS.md index bde1801fc..f314699d3 100644 --- a/jobs/DEVELOPMENT_JOBS.md +++ b/jobs/DEVELOPMENT_JOBS.md @@ -69,17 +69,24 @@ From the `constructive-db/` directory (with `pgenv` applied): ```sh pgpm admin-users bootstrap --yes + ``` + + If you need seeded test users, run: + + ```sh pgpm admin-users add --test --yes ``` -3. Deploy the main app and jobs packages into DB: +3. Deploy the main app and metaschema packages into DB: ```sh - pgpm deploy --yes --database "$PGDATABASE" --package app-svc-local + pgpm deploy --yes --database "$PGDATABASE" --package app pgpm deploy --yes --database "$PGDATABASE" --package metaschema - pgpm deploy --yes --database "$PGDATABASE" --package pgpm-database-jobs ``` + `app-svc-local` is no longer available in this repo, so use `app`. + `app` pulls in `pgpm-database-jobs`, so you don't need to deploy it separately. + At this point, the app schema and `database-jobs` should be installed and `app_jobs.*` should be available in the `constructive` database. --- @@ -128,7 +135,9 @@ In dry-run mode: Constructive selects the API by the HTTP `Host` header using rows in `services_public.domains`. -For local development, `app-svc-local` seeds `admin.localhost` as the admin API domain. `docker-compose.jobs.yml` adds a Docker network alias so other containers can resolve `admin.localhost` to the `constructive-server` container, and `send-email-link` uses: +For local development, you need a domain route for `admin.localhost` in `services_public.domains`. +This repo no longer ships `app-svc-local`, so seed a domain route yourself (or skip the `send-email-link` test). +`docker-compose.jobs.yml` adds a Docker network alias so other containers can resolve `admin.localhost` to the `constructive-server` container, and `send-email-link` uses: - `GRAPHQL_URL=http://admin.localhost:3000/graphql` @@ -179,7 +188,7 @@ You should then see the job picked up by `knative-job-service` and the email pay `send-email-link` queries GraphQL for site/database metadata, so it requires: -- The app/meta packages deployed in step 3 (`app-svc-local`, `metaschema-schema`, `services`, `metaschema-modules`) +- The app/meta packages deployed in step 3 (`app`, `metaschema-schema`, `services`, `metaschema-modules`) - A real `database_id` (use `$DBID` above) - A GraphQL hostname that matches a seeded domain route (step 5) - For localhost development, the site/domain metadata usually resolves to `localhost`. From e2ad767db2a52e6fa7739fb06fcc8081148a8566 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 9 Jan 2026 06:21:33 +0000 Subject: [PATCH 2/4] Initial plan From 871af882b8b8ee59d03e27d71b809bb3fcec2fb8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 9 Jan 2026 06:23:57 +0000 Subject: [PATCH 3/4] Remove deprecated app-svc-local mentions from documentation Co-authored-by: Anmol1696 <10805402+Anmol1696@users.noreply.github.com> --- jobs/DEVELOPMENT_JOBS.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jobs/DEVELOPMENT_JOBS.md b/jobs/DEVELOPMENT_JOBS.md index f314699d3..9e80cd113 100644 --- a/jobs/DEVELOPMENT_JOBS.md +++ b/jobs/DEVELOPMENT_JOBS.md @@ -84,8 +84,7 @@ From the `constructive-db/` directory (with `pgenv` applied): pgpm deploy --yes --database "$PGDATABASE" --package metaschema ``` - `app-svc-local` is no longer available in this repo, so use `app`. - `app` pulls in `pgpm-database-jobs`, so you don't need to deploy it separately. + The `app` package pulls in `pgpm-database-jobs`, so you don't need to deploy it separately. At this point, the app schema and `database-jobs` should be installed and `app_jobs.*` should be available in the `constructive` database. @@ -135,8 +134,8 @@ In dry-run mode: Constructive selects the API by the HTTP `Host` header using rows in `services_public.domains`. -For local development, you need a domain route for `admin.localhost` in `services_public.domains`. -This repo no longer ships `app-svc-local`, so seed a domain route yourself (or skip the `send-email-link` test). +For local development, you need a domain route for `admin.localhost` in `services_public.domains`. Seed a domain route yourself (or skip the `send-email-link` test). + `docker-compose.jobs.yml` adds a Docker network alias so other containers can resolve `admin.localhost` to the `constructive-server` container, and `send-email-link` uses: - `GRAPHQL_URL=http://admin.localhost:3000/graphql` From fafac10fdd3aaa9de6ac15866efd8e7340ec07b6 Mon Sep 17 00:00:00 2001 From: Anmol Date: Fri, 9 Jan 2026 10:31:01 +0400 Subject: [PATCH 4/4] Update jobs/DEVELOPMENT_JOBS.md --- jobs/DEVELOPMENT_JOBS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/DEVELOPMENT_JOBS.md b/jobs/DEVELOPMENT_JOBS.md index 9e80cd113..cbeea21d0 100644 --- a/jobs/DEVELOPMENT_JOBS.md +++ b/jobs/DEVELOPMENT_JOBS.md @@ -84,7 +84,7 @@ From the `constructive-db/` directory (with `pgenv` applied): pgpm deploy --yes --database "$PGDATABASE" --package metaschema ``` - The `app` package pulls in `pgpm-database-jobs`, so you don't need to deploy it separately. + NOTE: The `app` package pulls in `pgpm-database-jobs`, so you don't need to deploy it separately. At this point, the app schema and `database-jobs` should be installed and `app_jobs.*` should be available in the `constructive` database.