Skip to content

fix: resolve missing collection during icon-block migration - #41

Merged
stephane-gillot merged 2 commits into
developfrom
issue/92477
Sep 17, 2026
Merged

stephane-gillot merged 2 commits into
developfrom
issue/92477

Conversation

@stephane-gillot

Copy link
Copy Markdown
Contributor

Summary

  • Fix beapi/icon-block migration skipping icons that have a name but no collection (Redmine #92477, follow-up of #90676).
  • Resolve collection via registered collections (icon-pack, theme, mediatheque, then others), then fall back to mediatheque (raw) or icon-pack.
  • Document the new behaviour in MIGRATION.md and bump the plugin to 1.1.2.

Test plan

  • Review IconBlockMigrator::build_blockparty_block() for name-only icon-item attrs (no collection) → converted blockparty/icon with lookup or fallback.
  • Confirm empty icon shells still migrate to empty blockparty/icon.
  • Confirm all-or-nothing parent behaviour is unchanged when name is truly missing.
  • After merge/release, bump beapi/blockparty-icons to 1.1.2 on UNAF and re-run wp blockparty-icons migrate-from-icon-block --dry-run.

Made with Cursor

Legacy blocks with an icon name but no collection were skipped entirely. Look up the name in registered collections, then fall back to mediatheque or icon-pack, and bump to 1.1.2.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the icon-block migration fix only; the release number and changelog will be added later.

Co-authored-by: Cursor <cursoragent@cursor.com>
@stephane-gillot
stephane-gillot merged commit b2ec82b into develop Sep 17, 2026
6 checks passed
@stephane-gillot
stephane-gillot deleted the issue/92477 branch September 17, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants