feat(cms): align service claims with the real product range via migration (MITHOME-129)

The site promised more than the production server delivers (99.9%,
"nearly 100%", 1–100 GB SSD, unlimited traffic, 1–20 GB per mailbox,
Python/Node/PostgreSQL, DNSSEC, developer API, worldwide name servers,
immediate response). The 20260929_service_claims migration applies the
owner-confirmed texts C1–C14 (docs/termekkor-es-szerverkapacitas-
elemzes.md, ch. 9) and adds the 90% mailbox warning feature.

reviseContent() only replaces an exact Hungarian match, only rewrites
English that is still the old AI draft (human edits are kept and
reported), inserts list items once, and sends an approved page back to
ai-draft when its English changed. Published doc + latest version only.
Legal texts (terms, privacy) are left for legal review. The translation
memory gains the new pairs. Verified on a staging DB copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 16:03:46 +02:00
co-authored by Claude Opus 5.5
parent c468585ab9
commit d0dafa8471
7 changed files with 422 additions and 5 deletions
@@ -0,0 +1,68 @@
import { SERVICE_CLAIM_INSERTIONS, SERVICE_CLAIM_REVISIONS, up } from '../migrations/20260929_service_claims'
import translations from '../content/translations/en.json'
import { fakeArgs, fakeCollection } from './helpers/fake-mongo'
type Doc = Record<string, unknown>
const memory: Record<string, string> = translations
describe('20260929_service_claims migration (MITHOME-129)', () => {
it('should know the old AI-draft English of every revised text', () => {
for (const revision of SERVICE_CLAIM_REVISIONS) {
expect(revision.enWas).toBe(memory[revision.from])
expect(revision.enWas).toBeTruthy()
}
})
it('should keep the translation memory in sync with the new texts', () => {
for (const revision of SERVICE_CLAIM_REVISIONS) expect(memory[revision.to]).toBe(revision.enTo)
for (const insertion of SERVICE_CLAIM_INSERTIONS) expect(memory[insertion.hu]).toBe(insertion.en)
})
it('should not promise 99.9%, unlimited traffic, Python/Node/PostgreSQL or immediate response any more', () => {
const newTexts = SERVICE_CLAIM_REVISIONS.flatMap((r) => [r.to, r.enTo]).join('\n')
expect(newTexts).not.toMatch(/99,9|99\.9|korlátlan|unlimited|Python|Node\.js|PostgreSQL|Azonnali|világszerte|100GB|20GB/i)
})
it('should revise the services global: text, list items, inserted e-mail feature', async () => {
const services: Doc = {
_id: 's',
globalType: 'services',
details: {
services: [
{
icon: '📧',
description: { hu: 'Más leírás' },
specs: {
items: {
hu: [{ value: 'Mobilalkalmazás szinkronizáció', id: 'a' }, { value: 'Backup és archiválás ', id: 'b' }],
en: [{ value: memory['Mobilalkalmazás szinkronizáció'], id: 'c' }, { value: memory['Backup és archiválás '], id: 'd' }],
},
},
},
],
},
support: { channels: [{ icon: '🚨', title: { hu: 'Sürgős esetek' }, description: { hu: 'Azonnali beavatkozás', en: memory['Azonnali beavatkozás'] } }] },
enTranslationStatus: 'ai-draft',
}
const globals = fakeCollection([services])
const { args, payload } = fakeArgs({ globals })
await up(args)
const items = (services.details as { services: { specs: { items: { hu: { value: string }[]; en: { value: string }[] } } }[] }).services[0].specs.items
expect(items.hu.map((r) => r.value)).toEqual([
'Mobilalkalmazás szinkronizáció',
'Napi mentés, 7 napos visszaállítással',
'Automatikus figyelmeztetés 90%-os postafiók-telítettségnél',
])
expect(items.en.map((r) => r.value)).toEqual(['Mobile app synchronisation', 'Daily backup with 7-day restore', 'Automatic warning when a mailbox is 90% full'])
expect((services.support as { channels: { description: Doc }[] }).channels[0].description).toEqual({
hu: '0–24 órás riasztás, a beavatkozás tipikusan 2–4 órán belül megkezdődik',
en: '24/7 alerting; work typically starts within 2–4 hours',
})
expect(payload.logger.info).toHaveBeenCalledWith('MITHOME-129 service claims: services — 3 text(s) revised')
await up(args)
expect(payload.logger.info).toHaveBeenLastCalledWith('MITHOME-129 service claims: contact — 0 text(s) revised')
expect(items.hu).toHaveLength(3)
})
})
+18 -1
View File
@@ -177,5 +177,22 @@
"4. Díjazás és fizetési feltételek": "4. Fees and payment terms",
"A szolgáltatások díjai a felek által megkötött egyedi megállapodás vagy elfogadott árajánlat alapján fizetendők. A számlázás elektronikus úton történik. A fizetési határidő elmulasztása esetén a Szolgáltató jogosult a szolgáltatás szüneteltetésére, melyről az Ügyfelet előzetesen e-mailben értesíti.": "Fees for the services are payable on the basis of the individual agreement concluded by the parties or the accepted quote. Invoicing is electronic. If the payment deadline is missed, the Provider is entitled to suspend the service, of which it will notify the Client by email in advance.",
"5. Felelősségkorlátozás": "5. Limitation of liability",
"A Szolgáltató mindent megtesz az adatok biztonsága és a folyamatos üzemeltetés érdekében, ugyanakkor nem vállal felelősséget a vis maior, illetve a harmadik felek által okozott (pl. hálózati) kimaradások miatti esetleges adatvesztésért vagy elmaradt haszonért.": "The Provider makes every effort to ensure the security of data and continuous operation; however, it accepts no liability for any loss of data or loss of profit resulting from force majeure or from outages caused by third parties (e.g. network outages)."
"A Szolgáltató mindent megtesz az adatok biztonsága és a folyamatos üzemeltetés érdekében, ugyanakkor nem vállal felelősséget a vis maior, illetve a harmadik felek által okozott (pl. hálózati) kimaradások miatti esetleges adatvesztésért vagy elmaradt haszonért.": "The Provider makes every effort to ensure the security of data and continuous operation; however, it accepts no liability for any loss of data or loss of profit resulting from force majeure or from outages caused by third parties (e.g. network outages).",
"Éves szinten 99,5%-os rendelkezésre állási cél, az előre bejelentett karbantartások kivételével": "99.5% annual availability target, excluding pre-announced maintenance",
"0–24 órás automatizált felügyelet riasztással és gyors hibaelhárítással.": "Round-the-clock automated monitoring with alerting and fast troubleshooting.",
"Weboldalak biztonságos és gyors üzemeltetése Enterprise SSD tárolással, hardveres RAID-1 tükrözéssel, napi külső mentéssel és 0–24 órás automatizált felügyelettel. PHP (több verzió) és MariaDB/MySQL adatbázis.": "Secure, fast website hosting on enterprise SSD storage with hardware RAID-1 mirroring, daily off-site backups and round-the-clock automated monitoring. PHP (multiple versions) and MariaDB/MySQL databases.",
"Enterprise SSD tárhely: 3 GB vagy 8 GB, csomagtól függően": "Enterprise SSD storage: 3 GB or 8 GB, depending on the plan",
"Bőséges havi adatforgalom, méltányos használat mellett": "Generous monthly traffic under fair use",
"Automatikus napi mentés független, külső mentési szerverre, 7 napos visszaállítással": "Automatic daily backup to an independent off-site server, with 7-day restore",
"Levéltárhely csomagszinten: 1 GB vagy 4 GB, szabadon elosztva a fiókok között": "Mail storage per plan: 1 GB or 4 GB, freely shared between mailboxes",
"Napi mentés, 7 napos visszaállítással": "Daily backup with 7-day restore",
"Teljes DNS-kezelés domainregisztrációval, átvitellel és szakszerű beállításokkal. Redundáns elsődleges és másodlagos névszerver két független szerveren.": "Complete DNS management including domain registration, transfers and professional configuration. Redundant primary and secondary name servers on two independent servers.",
"DNSSEC egyedi egyeztetés alapján": "DNSSEC on request",
"Egyedi API-integráció egyeztetés alapján": "Custom API integration on request",
"0–24 órás riasztás, a beavatkozás tipikusan 2–4 órán belül megkezdődik": "24/7 alerting; work typically starts within 2–4 hours",
"Munkanapokon 24 órán belüli válasz": "Reply within 24 hours on business days",
"Hétköznap 8–17 óra között": "Weekdays 8:00–17:00",
"Munkanapokon 24 órán belül válaszolunk": "We reply within 24 hours on business days",
"Munkanapokon 24 órán belül válaszolunk. Kritikus üzemzavar esetén 0–24 órás riasztási és beavatkozási rend működik.": "We reply within 24 hours on business days. For critical outages, a 24/7 alerting and response process is in place.",
"Automatikus figyelmeztetés 90%-os postafiók-telítettségnél": "Automatic warning when a mailbox is 90% full"
}
+105
View File
@@ -0,0 +1,105 @@
import { reviseContent, type ListInsertion, type TextRevision } from './content-revision'
import { collectLocalizedPaths } from './localize-paths'
type Doc = Record<string, unknown>
const FIELDS = [
{ name: 'title', type: 'text', localized: true },
{ name: 'items', type: 'array', localized: true, fields: [{ name: 'value', type: 'text' }] },
]
const PATHS = collectLocalizedPaths(FIELDS)
const REVISIONS: TextRevision[] = [
{ from: 'Régi cím', to: 'Új cím', enWas: 'Old title', enTo: 'New title' },
{ from: 'Régi elem', to: 'Új elem', enWas: 'Old item', enTo: 'New item' },
]
const INSERTIONS: ListInsertion[] = [{ afterHu: 'Új elem', hu: 'Beszúrt', afterEn: 'New item', en: 'Inserted' }]
let seq = 0
const newId = () => `id-${++seq}`
beforeEach(() => {
seq = 0
})
const doc = (): Doc => ({
title: { hu: 'Régi cím', en: 'Old title' },
items: {
hu: [{ value: 'Régi elem', id: 'h1' }, { value: 'Marad', id: 'h2' }],
en: [{ value: 'Old item', id: 'e1' }, { value: 'Stays', id: 'e2' }],
},
enTranslationStatus: 'ai-draft',
})
describe('reviseContent (MITHOME-129)', () => {
it('should replace exact Hungarian matches and their AI-draft English', () => {
const d = doc()
const report = reviseContent(d, PATHS, REVISIONS, [], newId)
expect(d.title).toEqual({ hu: 'Új cím', en: 'New title' })
expect(d.items).toEqual({
hu: [{ value: 'Új elem', id: 'h1' }, { value: 'Marad', id: 'h2' }],
en: [{ value: 'New item', id: 'e1' }, { value: 'Stays', id: 'e2' }],
})
expect(report).toEqual({ changed: 2, enKept: [] })
})
it('should leave text an editor already rewrote untouched', () => {
const d: Doc = { title: { hu: 'Szerkesztett cím', en: 'Edited title' } }
expect(reviseContent(d, PATHS, REVISIONS, [], newId)).toEqual({ changed: 0, enKept: [] })
expect(d.title).toEqual({ hu: 'Szerkesztett cím', en: 'Edited title' })
})
it('should keep and report a human English edit', () => {
const d: Doc = { title: { hu: 'Régi cím', en: 'Human title' } }
const report = reviseContent(d, PATHS, REVISIONS, [], newId)
expect(d.title).toEqual({ hu: 'Új cím', en: 'Human title' })
expect(report.enKept).toEqual(['Régi cím'])
})
it('should report a list item whose English row was edited by a person', () => {
const d = doc()
;(d.items as { en: { value: string }[] }).en[0].value = 'Human item'
const report = reviseContent(d, PATHS, REVISIONS, [], newId)
expect(report.enKept).toEqual(['Régi elem'])
expect((d.items as { en: { value: string }[] }).en[0].value).toBe('Human item')
})
it('should fill an empty English value', () => {
const d: Doc = { title: { hu: 'Régi cím' } }
reviseContent(d, PATHS, REVISIONS, [], newId)
expect(d.title).toEqual({ hu: 'Új cím', en: 'New title' })
})
it('should insert a list item after its anchor in both languages, once', () => {
const d = doc()
reviseContent(d, PATHS, REVISIONS, INSERTIONS, newId)
reviseContent(d, PATHS, REVISIONS, INSERTIONS, newId)
const items = d.items as { hu: { value: string }[]; en: { value: string }[] }
expect(items.hu.map((r) => r.value)).toEqual(['Új elem', 'Beszúrt', 'Marad'])
expect(items.en.map((r) => r.value)).toEqual(['New item', 'Inserted', 'Stays'])
})
it('should be idempotent', () => {
const d = doc()
reviseContent(d, PATHS, REVISIONS, INSERTIONS, newId)
const snapshot = JSON.stringify(d)
expect(reviseContent(d, PATHS, REVISIONS, INSERTIONS, newId)).toEqual({ changed: 0, enKept: [] })
expect(JSON.stringify(d)).toBe(snapshot)
})
it('should send an approved page back to AI draft when its English changed', () => {
const d = { ...doc(), enTranslationStatus: 'approved' }
reviseContent(d, PATHS, REVISIONS, [], newId)
expect(d.enTranslationStatus).toBe('ai-draft')
})
it('should keep an approved status when only Hungarian changed', () => {
const d: Doc = { title: { hu: 'Régi cím', en: 'Human title' }, enTranslationStatus: 'approved' }
reviseContent(d, PATHS, REVISIONS, [], newId)
expect(d.enTranslationStatus).toBe('approved')
})
it('should ignore legacy unwrapped values and lists without an anchor', () => {
const d: Doc = { title: 'Régi cím', items: { hu: [{ value: 'Más', id: 'x' }] } }
expect(reviseContent(d, PATHS, REVISIONS, INSERTIONS, newId)).toEqual({ changed: 0, enKept: [] })
})
})
+96
View File
@@ -0,0 +1,96 @@
/**
* MITHOME-129: exact-match content revision on localized fields, in place.
*
* Used by data migrations that correct published copy (e.g. service claims
* aligned with the real product range). Rules:
* - a value changes only when its current Hungarian text is EXACTLY the
* expected old text — anything an editor already rewrote is left alone;
* - English is replaced only when it is empty or still the old AI draft
* (`enWas`) — a human English edit is kept and reported instead;
* - if English changed on a page whose translation was approved, the page
* goes back to "ai-draft": the new English has not been reviewed yet.
* Works for localized text leaves and whole-array localized string lists
* ({ value } rows), where it can also insert a new item after an anchor.
*/
import { applyAll, isPlainObject, type LocalizedPath } from './localize-paths'
export type TextRevision = { from: string; to: string; enWas?: string; enTo: string }
export type ListInsertion = { afterHu: string; hu: string; afterEn: string; en: string }
export type RevisionReport = { changed: number; enKept: string[] }
type Row = { value?: unknown; id?: unknown }
const isEmpty = (value: unknown) => value === undefined || value === null || value === ''
function reviseText(value: Record<string, unknown>, revisions: readonly TextRevision[], report: RevisionReport) {
const revision = revisions.find((r) => r.from === value.hu)
if (!revision) return { hu: false, en: false }
value.hu = revision.to
if (isEmpty(value.en) || value.en === revision.enWas) {
value.en = revision.enTo
return { hu: true, en: true }
}
report.enKept.push(revision.from)
return { hu: true, en: false }
}
function reviseRows(rows: Row[], match: (text: string) => string | undefined): number {
let count = 0
for (const row of rows) {
const next = typeof row.value === 'string' ? match(row.value) : undefined
if (next !== undefined) {
row.value = next
count += 1
}
}
return count
}
function insertRow(rows: Row[], after: string, text: string, newId: () => string): boolean {
if (rows.some((row) => row.value === text)) return false
const index = rows.findIndex((row) => row.value === after)
if (index === -1) return false
rows.splice(index + 1, 0, { value: text, id: newId() })
return true
}
export function reviseContent(
doc: Record<string, unknown>,
paths: readonly LocalizedPath[],
revisions: readonly TextRevision[],
insertions: readonly ListInsertion[],
newId: () => string,
): RevisionReport {
const report: RevisionReport = { changed: 0, enKept: [] }
let enChanged = false
applyAll(doc, paths, (value) => {
if (!isPlainObject(value)) return { value, changed: false }
if (typeof value.hu === 'string') {
const result = reviseText(value, revisions, report)
enChanged ||= result.en
if (result.hu) report.changed += 1
return { value, changed: result.hu }
}
if (!Array.isArray(value.hu)) return { value, changed: false }
const hu = value.hu as Row[]
const en = Array.isArray(value.en) ? (value.en as Row[]) : undefined
const huMatched = revisions.filter((r) => hu.some((row) => row.value === r.from))
let count = reviseRows(hu, (text) => revisions.find((r) => r.from === text)?.to)
const enCount = en ? reviseRows(en, (text) => revisions.find((r) => r.enWas !== undefined && r.enWas === text)?.enTo) : 0
// A Hungarian row changed but its English row was not the old AI draft.
if (en && enCount < huMatched.length) report.enKept.push(...huMatched.map((r) => r.from).slice(enCount))
for (const insertion of insertions) {
if (insertRow(hu, insertion.afterHu, insertion.hu, newId)) count += 1
if (en && insertRow(en, insertion.afterEn, insertion.en, newId)) enChanged = true
}
enChanged ||= enCount > 0
report.changed += count
return { value, changed: count > 0 || enCount > 0 }
})
if (enChanged && doc.enTranslationStatus === 'approved') doc.enTranslationStatus = 'ai-draft'
return report
}
@@ -0,0 +1,122 @@
/**
* MITHOME-129: a weboldal szolgáltatási állításainak összehangolása a valós
* termékkörrel (docs/termekkor-es-szerverkapacitas-elemzes.md, 9. fejezet,
* C1–C14). A jogi szövegek (C15 ÁSZF, C16 Adatvédelem) NEM itt változnak —
* azok jogi átnézés után jönnek.
*
* Csak pontos magyar egyezésnél cserél; az angolt csak akkor, ha még a régi
* AI-draft (src/lib/content-revision.ts). Csak a publikált dokumentumot és a
* legutóbbi verziót írja, a történetet nem. Idempotens.
*
* DECISION: a mIT csomagneveket itt nem írjuk a szövegbe (C4, C7) — a nevek
* bevezetése előtt védjegyjogászi vizsgálat kell (PLATFM-3); a nevek a
* „Csomagok” oldallal (MITHOME-130) kerülnek ki.
*/
import type { MigrateDownArgs, MigrateUpArgs } from '@payloadcms/db-mongodb'
import { randomBytes } from 'crypto'
import { Home } from '../globals/Home'
import { About } from '../globals/About'
import { Services } from '../globals/Services'
import { Contact } from '../globals/Contact'
import translations from '../content/translations/en.json'
import { reviseContent, type ListInsertion, type TextRevision } from '../lib/content-revision'
import { collectLocalizedPaths, topLevelKeys } from '../lib/localize-paths'
import { rewriteDocs } from '../lib/migrate-global-docs'
const MEMORY: Record<string, string> = translations
/** [old hu, new hu, new en] — the old English is looked up in the memory. */
const CHANGES: readonly [string, string, string][] = [
// C1
['Éves szinten 99,9%-os rendelkezésre állási cél, tervezett karbantartások kivételével',
'Éves szinten 99,5%-os rendelkezésre állási cél, az előre bejelentett karbantartások kivételével',
'99.5% annual availability target, excluding pre-announced maintenance'],
// C2
['24/7 monitoring biztosítja szolgáltatásaink közel 100%-os rendelkezésre állását.',
'0–24 órás automatizált felügyelet riasztással és gyors hibaelhárítással.',
'Round-the-clock automated monitoring with alerting and fast troubleshooting.'],
// C3
['Weboldalak biztonságos és gyors üzemeltetése SSD tárolással, automatikus biztonsági mentéssel és 24/7 monitoringgal. Támogatjuk a PHP, Python, Node.js technológiákat és MySQL/PostgreSQL adatbázisokat.',
'Weboldalak biztonságos és gyors üzemeltetése Enterprise SSD tárolással, hardveres RAID-1 tükrözéssel, napi külső mentéssel és 0–24 órás automatizált felügyelettel. PHP (több verzió) és MariaDB/MySQL adatbázis.',
'Secure, fast website hosting on enterprise SSD storage with hardware RAID-1 mirroring, daily off-site backups and round-the-clock automated monitoring. PHP (multiple versions) and MariaDB/MySQL databases.'],
// C4
['SSD tárhely 1GB-tól 100GB-ig', 'Enterprise SSD tárhely: 3 GB vagy 8 GB, csomagtól függően', 'Enterprise SSD storage: 3 GB or 8 GB, depending on the plan'],
// C5
['Havi adatforgalom: korlátlan', 'Bőséges havi adatforgalom, méltányos használat mellett', 'Generous monthly traffic under fair use'],
// C6
['Automatikus napi biztonsági mentés',
'Automatikus napi mentés független, külső mentési szerverre, 7 napos visszaállítással',
'Automatic daily backup to an independent off-site server, with 7-day restore'],
// C7
['1GB–20GB tárhelyet fiókként',
'Levéltárhely csomagszinten: 1 GB vagy 4 GB, szabadon elosztva a fiókok között',
'Mail storage per plan: 1 GB or 4 GB, freely shared between mailboxes'],
// C8
['Backup és archiválás ', 'Napi mentés, 7 napos visszaállítással', 'Daily backup with 7-day restore'],
// C10
['Teljes DNS kezelés domain regisztrációval, átvitellel és professzionális beállításokkal. Gyors propagáció és megbízható névszerverek világszerte.',
'Teljes DNS-kezelés domainregisztrációval, átvitellel és szakszerű beállításokkal. Redundáns elsődleges és másodlagos névszerver két független szerveren.',
'Complete DNS management including domain registration, transfers and professional configuration. Redundant primary and secondary name servers on two independent servers.'],
// C11
['DNSSEC támogatás', 'DNSSEC egyedi egyeztetés alapján', 'DNSSEC on request'],
// C12
['API hozzáférés fejlesztőknek', 'Egyedi API-integráció egyeztetés alapján', 'Custom API integration on request'],
// C13
['Azonnali beavatkozás', '0–24 órás riasztás, a beavatkozás tipikusan 2–4 órán belül megkezdődik', '24/7 alerting; work typically starts within 2–4 hours'],
// C14a–d
['24 órán belüli válasz', 'Munkanapokon 24 órán belüli válasz', 'Reply within 24 hours on business days'],
['Munkaidőben elérhető', 'Hétköznap 8–17 óra között', 'Weekdays 8:00–17:00'],
['24 órán belül válaszolunk', 'Munkanapokon 24 órán belül válaszolunk', 'We reply within 24 hours on business days'],
['Email üzenetekre 24 órán belül, sürgős esetekben telefonon is elérhetők vagyunk.',
'Munkanapokon 24 órán belül válaszolunk. Kritikus üzemzavar esetén 0–24 órás riasztási és beavatkozási rend működik.',
'We reply within 24 hours on business days. For critical outages, a 24/7 alerting and response process is in place.'],
]
export const SERVICE_CLAIM_REVISIONS: readonly TextRevision[] = CHANGES.map(([from, to, enTo]) => ({
from,
to,
enWas: MEMORY[from],
enTo,
}))
/** C9 — new e-mail feature, placed right after the (revised) C8 item. */
export const SERVICE_CLAIM_INSERTIONS: readonly ListInsertion[] = [
{
afterHu: 'Napi mentés, 7 napos visszaállítással',
hu: 'Automatikus figyelmeztetés 90%-os postafiók-telítettségnél',
afterEn: 'Daily backup with 7-day restore',
en: 'Automatic warning when a mailbox is 90% full',
},
]
const newId = () => randomBytes(12).toString('hex')
export async function up(args: MigrateUpArgs): Promise<void> {
for (const global of [Home, About, Services, Contact]) {
const paths = collectLocalizedPaths(global.fields as never)
const enKept = new Set<string>()
let changed = 0
await rewriteDocs(
args,
{ kind: 'global', slug: global.slug },
[...topLevelKeys(paths), 'enTranslationStatus'],
(data) => {
const report = reviseContent(data, paths, SERVICE_CLAIM_REVISIONS, SERVICE_CLAIM_INSERTIONS, newId)
report.enKept.forEach((text) => enKept.add(text))
changed += report.changed
return report.changed
},
{ versions: 'latest' },
)
args.payload.logger.info(`MITHOME-129 service claims: ${global.slug} — ${changed} text(s) revised`)
for (const text of enKept) {
args.payload.logger.warn(`MITHOME-129 English kept (edited by a person), review manually (${global.slug}): ${text.slice(0, 100)}`)
}
}
}
/** DECISION: no automatic down — restore the pre-deploy dump instead. */
export async function down(args: MigrateDownArgs): Promise<void> {
args.payload.logger.warn('MITHOME-129 service claims: down is a no-op — restore the pre-deploy dump instead')
}
+7
View File
@@ -2,6 +2,7 @@ import * as migration_20260929_localize_globals from './20260929_localize_global
import * as migration_20260929_cta_page_links from './20260929_cta_page_links'
import * as migration_20260929_localize_legal_pages from './20260929_localize_legal_pages'
import * as migration_20260929_en_ai_draft from './20260929_en_ai_draft'
import * as migration_20260929_service_claims from './20260929_service_claims'
/**
* Payload migrations, in order. Passed to `mongooseAdapter({ prodMigrations })`
@@ -31,4 +32,10 @@ export const migrations = [
down: migration_20260929_en_ai_draft.down,
name: '20260929_en_ai_draft',
},
{
// MITHOME-129 — after the English import (revises the AI-draft English too).
up: migration_20260929_service_claims.up,
down: migration_20260929_service_claims.down,
name: '20260929_service_claims',
},
]