Skip to content

Migrate native blocks to somersault#139

Merged
sneridagh merged 4 commits into
mainfrom
codex/migrate-native-blocks-to-somersault
Jun 13, 2026
Merged

Migrate native blocks to somersault#139
sneridagh merged 4 commits into
mainfrom
codex/migrate-native-blocks-to-somersault

Conversation

@sneridagh

Copy link
Copy Markdown
Member

Summary

This PR migrates Aurora-native blocks into the Somersault field so they can flow through the new editor pipeline, while preserving the existing legacy value-backed path for Plate text blocks.

What changed

  • migrations.server.ts now migrates any block registered in config.blocks.blocksConfig as a Somersault node with type: "unknown".
  • content-migrations.server.test.ts covers both the legacy value path and the registered native-block path, plus an unregistered block that is left untouched.
  • server.server.ts now hydrates listing queries from both legacy content.blocks entries and listings that have already been moved into __somersault__.
  • Added a towncrier note for the Aurora app release target.

Why

The server-side migration layer needs to preserve Aurora-native blocks in the Somersault payload instead of dropping them on the floor. That lets the renderer and later editor machinery take over without losing the original block data.

Validation

  • pnpm --filter @plone/aurora exec vitest --run app/config/server/content-migrations.server.test.ts app/config/server.server.test.ts

@sneridagh sneridagh marked this pull request as ready for review June 13, 2026 06:48
@sneridagh sneridagh changed the title [codex] migrate native blocks to somersault Migrate native blocks to somersault Jun 13, 2026
@sneridagh sneridagh merged commit b4baf64 into main Jun 13, 2026
29 checks passed
@sneridagh sneridagh deleted the codex/migrate-native-blocks-to-somersault branch June 13, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant