1.15.4
Version bump; the Unreleased section becomes 1.15.4: seeding whole localized arrays keeps every language. What projects must update: nothing required; repairing records an earlier seed wrote needs SEED_UPDATE=1 (locally first; on production with SEED_ONLY and IPAL_SEED_ALLOW_PROD_UPDATE=1 after a backup), edited records and global arrays by hand. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a79740cd44
commit
2f00fe3ad6
+11
-2
@@ -8,7 +8,7 @@ versions at once, go through every "Requires project changes" section in order,
|
|||||||
version you have. A new release = a new section at the top; we remove the oldest ones only
|
version you have. A new release = a new section at the top; we remove the oldest ones only
|
||||||
once there are more than 20.
|
once there are more than 20.
|
||||||
|
|
||||||
## Unreleased
|
## 1.15.4
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- **Seeding whole localized arrays** (`createSeeder`, `writeLocales`): a value written per language as a whole —
|
- **Seeding whole localized arrays** (`createSeeder`, `writeLocales`): a value written per language as a whole —
|
||||||
@@ -16,7 +16,16 @@ once there are more than 20.
|
|||||||
language. Before, each locale write made new shared rows and only the last language survived (form fields, nested
|
language. Before, each locale write made new shared rows and only the last language survived (form fields, nested
|
||||||
select options, layouts, global arrays); an editor's later save could then fail validation. Fields that are
|
select options, layouts, global arrays); an editor's later save could then fail validation. Fields that are
|
||||||
themselves `localized: true` (a localized layout) keep rows per language, as before. Seed scripts need no change;
|
themselves `localized: true` (a localized layout) keep rows per language, as before. Seed scripts need no change;
|
||||||
re-run a seed that was hit (locally first, or with `SEED_ONLY` on a live site).
|
repairing records an earlier seed already wrote: "What projects must update".
|
||||||
|
|
||||||
|
### What projects must update
|
||||||
|
- Nothing is required: seed scripts need no change.
|
||||||
|
- A project that seeded whole localized arrays (form fields with options, a page `layout`, a global array written as
|
||||||
|
`{ pl: [...], en: [...] }`) and lost languages: a plain re-run skips existing records (create-only), so rewrite them
|
||||||
|
with `SEED_UPDATE=1` — **locally first**, then check every language in the panel. On a live site only for the named
|
||||||
|
records: `SEED_ONLY="forms:<title>,pages:<slug>" SEED_UPDATE=1 IPAL_SEED_ALLOW_PROD_UPDATE=1`, `SEED_DRY_RUN=1` first,
|
||||||
|
after a backup (Coolify). Records an editor changed since seeding are skipped — fix those in the panel. A global
|
||||||
|
array: `fillGlobal` fills empty fields only, so clear the field in the panel before the run, or fix it by hand.
|
||||||
|
|
||||||
## 1.15.3
|
## 1.15.3
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@intecion/ipal-kit",
|
"name": "@intecion/ipal-kit",
|
||||||
"version": "1.15.3",
|
"version": "1.15.4",
|
||||||
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user