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

Aperta
#433 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
10
Fork
9
Merge medio
4g 7h
PR unite (30g)
54

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di plone/aurora

Tutte le issue di plone/aurora

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.