docs(openspec): propose MITHOME-136 PostgreSQL migration of the website
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
Payload db-postgres (uuid ids, no push), fresh baseline migration, one-off lossless data migration from the staging MongoDB, Compose per the llmdev Docker spec, pg_dump backups, Node 22 for the Payload CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
247595e064
commit
b8d1b0ac25
@@ -0,0 +1,25 @@
|
||||
# Tasks
|
||||
|
||||
## 1. Eszközök és illesztő
|
||||
|
||||
- [ ] 1.1 `payload:node22` npm script (D2); a típus- és import-map-generálás erre áll át. Ellenőrzés: a `generate:types` és a `migrate:status` fut helyben.
|
||||
- [ ] 1.2 `@payloadcms/db-postgres` (Payload-verzióval azonos), `postgresAdapter({ idType: 'uuid', push: false })`, `DATABASE_URI`. Ellenőrzés: `tsc`, `npm test`.
|
||||
- [ ] 1.3 Kiinduló migráció (`migrate:create initial`), új `src/migrations/index.ts`; a 8 Mongo-migráció, a `migrate-global-docs`, a `localize-paths`, a `mongodb.ts` és a fake-Mongo tesztek törlése. Ellenőrzés: eldobható PostgreSQL-en a migráció kétszer fut, a második 0 lépés.
|
||||
|
||||
## 2. Adatmigráció
|
||||
|
||||
- [ ] 2.1 `scripts/migrate-mongo-to-postgres.ts`: tiszta transzformációs függvények unit tesztekkel (lokalizált alak, vázlat kiválasztása, azonosítótérkép) (D3).
|
||||
- [ ] 2.2 Futtatás egy staging-másolaton (eldobható Mongo és PostgreSQL az llmdev-en). Ellenőrzés: dokumentumszámok, a publikus hu/en oldalak szöveg-összevetése a pillanatképpel, partnerlogók, idempotens második futás.
|
||||
|
||||
## 3. Infrastruktúra
|
||||
|
||||
- [ ] 3.1 Compose (staging, prod): PostgreSQL 16 szolgáltatás, `mozdit_web` adatbázis és felhasználó, belső hálózat, volume; `.env` sablonok (D4).
|
||||
- [ ] 3.2 `deploy.sh`: `pg_dump` mentés a deploy előtt; az admin-seedelés a PostgreSQL-lel. Ellenőrzés: a `pre-deploy-tests.sh` és a staging smoke tesztek.
|
||||
- [ ] 3.3 Az integrációs és e2e tesztek eldobható PostgreSQL-lel (D5).
|
||||
|
||||
## 4. Kiadás és kivezetés
|
||||
|
||||
- [ ] 4.1 Staging-átállás a Migration Plan szerint (külön jóváhagyással), `mongodump` archívummal.
|
||||
- [ ] 4.2 Dokumentáció: `CLAUDE.md` (stack, környezeti változók), `.agent/steering/architecture.md`, `DOCKER.md`, `.agent/workflows/deploy.md`.
|
||||
- [ ] 4.3 Egy kiadás múlva: a MongoDB-szolgáltatás és a `mongodb`, illetve `@payloadcms/db-mongodb` csomag törlése; a végső archívum helyének rögzítése.
|
||||
- [ ] 4.4 Plane (MITHOME-136) és `TODO.md` szinkron, commit, push.
|
||||
Reference in New Issue
Block a user