feat(catalog): Add werkmeister as a draft product, not for sale #69

Merged
sharang merged 1 commits from feat/werkmeister-catalogue-draft into main 2026-10-13 20:36:03 +00:00
Owner

Werkmeister W0 (platform/werkmeister, ADR 0001): adds the product key werkmeister to the catalogue as a draft, not for sale.

  • Migration 0014_werkmeister_product:
    • The up migration inserts werkmeister with standalone, the launch URLs for stage and prod, enabled=false, skus [] and sort order 40. It uses ON CONFLICT DO NOTHING.
    • The down migration deletes the row.
  • store.DefaultProducts(): mirrors the row, so the Memory store and the Postgres seed stay in sync.
  • SKUs: none yet. They follow with pricing, under the scheme <AREA>-<PRODUCT>-<CLD|OPR>-<STD|BUS|ENT>, together with the ERPNext items TestCatalogueMatchesStoreDefaults checks.
  • Effect: the product is disabled, so it doesn't appear in /v1/catalog and can't be booked or trialled.

Tests: go test ./internal/server/... ./migrations/... ./internal/erpsetup/... passes locally (the up/down round trip includes 0014).

Follow-up in W1, not here: a staff-only, audited path to grant an entitlement for a disabled product, so a seeded stage tenant can use Werkmeister without the product going on sale.

🤖 Generated with Claude Code

Werkmeister W0 (platform/werkmeister, ADR 0001): adds the product key `werkmeister` to the catalogue as a **draft, not for sale**. - **Migration `0014_werkmeister_product`:** - The up migration inserts `werkmeister` with `standalone`, the launch URLs for stage and prod, `enabled=false`, `skus` `[]` and sort order 40. It uses `ON CONFLICT DO NOTHING`. - The down migration deletes the row. - **`store.DefaultProducts()`:** mirrors the row, so the Memory store and the Postgres seed stay in sync. - **SKUs:** none yet. They follow with pricing, under the scheme `<AREA>-<PRODUCT>-<CLD|OPR>-<STD|BUS|ENT>`, together with the ERPNext items `TestCatalogueMatchesStoreDefaults` checks. - **Effect:** the product is disabled, so it doesn't appear in `/v1/catalog` and can't be booked or trialled. **Tests:** `go test ./internal/server/... ./migrations/... ./internal/erpsetup/...` passes locally (the up/down round trip includes 0014). **Follow-up in W1, not here:** a staff-only, audited path to grant an entitlement for a disabled product, so a seeded stage tenant can use Werkmeister without the product going on sale. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-10-13 20:10:32 +00:00
feat(catalog): Add werkmeister as a draft product, not for sale
ci / shared (pull_request) Successful in 14s
ci / test (pull_request) Successful in 24m21s
ci / image (pull_request) Skipped
85651f4567
Migration 0014 seeds the werkmeister product (platform/werkmeister ADR
0001) disabled and without SKUs; store.DefaultProducts mirrors it. SKUs
follow with pricing (<AREA>-<PRODUCT>-<CLD|OPR>-<STD|BUS|ENT>), together
with the ERPNext items erpsetup checks against.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit 1d3b5ebbc5 into main 2026-10-13 20:36:03 +00:00
sharang deleted branch feat/werkmeister-catalogue-draft 2026-10-13 20:36:03 +00:00
Sign in to join this conversation.