Rename the internal "somersault" codename in the Plate region code

Open
#433 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
54/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

Start with the listed utility types, SOMERSAULT_KEY, renderer and editor names, and the exports in apps/aurora/app/config/server; inspect the upgrade guide and the migration introduced by #379. Register replacement names, preserve deprecated aliases that warn, and keep the legacy key only for the read-time rename. Done means the guide documents the change and the aliases are slated for removal with #435 at Plone 7 final.

Written by the indexing model from the issue text.

Description

Context

#379 renamed the stored shape: the page body is now the main region, blocks.main = { "@type": "plate", "value": [...] }. The internal "somersault" codename is still in the code, for example:

  • the utility types somersaultBlockMigration and somersaultMigration;
  • SOMERSAULT_KEY in @plone/plate, SomersaultRenderer, and the somersault-editor and somersault-renderer names;
  • SomersaultValue, createSomersaultValue and migrateSomersaultRegion in apps/aurora/app/config/server.

This is open question 3 of #379.

Proposal

Rename them after what they are: the Plate value of a region. Keep the legacy constant only where it means the legacy key, in the read-time rename in migrateSomersaultRegion.

The two utility types are public API for add-ons, so:

  1. Register the new names, and keep the old ones as deprecated aliases that log a warning.
  2. Document the rename in the upgrade guide.
  3. Remove the aliases at Plone 7 final, together with the rest of the __somersault__ compatibility (#435).

Refs #379.

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.