Remove the `__somersault__` compatibility at Plone 7 final

Open
#435 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
43/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
backend, data

Research direction

Read the migration plan in #379 and the bulk migration issue #408 to understand the required sequence. The Aurora change is to remove migrateSomersaultRegion, but the issue does not name its file or tests; first locate that function and check how the migration in #408 updates stored content. Done means Aurora no longer renames __somersault__ on read after the bulk migration.

Written by the indexing model from the issue text.

Description

Context

#379 renamed the stored page body to the main region with "@type": "plate". For a transition period, the old shape (blocks.__somersault__ with "@type": "__somersault__") is still accepted in several places:

  • plone.restapi 10.3.0 (plone/plone.restapi#2092): the visitor handles both @types, and __somersault__ is deprecated.
  • Aurora: migrateSomersaultRegion renames the key when content is read (#412).
  • Nick 3.1.0 (plone/nick#99) and kitconcept.plate (kitconcept/volto-plate#122) read __somersault__ as main.

This is step 4 of the migration plan in #379.

Work
  • plone.restapi: drop the __somersault__ handling in its next major version.
  • Aurora: remove the read-time rename at Plone 7 final. Before that, the bulk migration of #408 should have renamed the stored content on existing sites.
  • Nick and kitconcept.plate: drop the legacy handling, at their own pace.

Refs #379, #408.

Assisted-by: Claude Opus 5.5

Dominant language
JavaScript
Stars
10
Forks
9
Avg merge
4d 7h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plone/aurora

All issues in plone/aurora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.