Remove the `__somersault__` compatibility at Plone 7 final

Aperta
#435 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
43/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
backend, data

Direzione di ricerca

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.

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

Descrizione

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

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.