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.
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)
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 main2026-10-13 20:36:03 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Werkmeister W0 (platform/werkmeister, ADR 0001): adds the product key
werkmeisterto the catalogue as a draft, not for sale.0014_werkmeister_product:werkmeisterwithstandalone, the launch URLs for stage and prod,enabled=false,skus[]and sort order 40. It usesON CONFLICT DO NOTHING.store.DefaultProducts(): mirrors the row, so the Memory store and the Postgres seed stay in sync.<AREA>-<PRODUCT>-<CLD|OPR>-<STD|BUS|ENT>, together with the ERPNext itemsTestCatalogueMatchesStoreDefaultschecks./v1/catalogand 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