This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

Apostrophe 2.54.2, 2.54.3: contextual editing of pieces in widgets, better migration handling

2.54.3

  • Contextual editing of pieces found in a widget.html template saves properly, as does contextual editing of a nested area added to the page for the first time.

  • Previously executed migrations are remembered in a collection that persists, not just in a cache, avoiding extra work which could be extensive in a large database. Migrations are still required to be idempotent (they should detect whether they have any work to do, and do no harm if they are not needed again for a particular document).

  • apos.migrations.eachWidget now delivers an accurate dotPath, which is crucial for the use of apos.docs.db.update with $set. No standard migrations in Apostrophe were using the feature until now.

2.54.2

  • A bug in the recently introduced apostrophe-soft-redirects module caused crashes in cases where the context page or piece had no _url property… which is an unusual situation (how did you get there exactly? Overrides are clearly involved), but it can happen in customized projects. Fixed.
1 Like