Skip to content

Update: Trigger content migrations on plugin update#89

Merged
taylortom merged 2 commits into
masterfrom
feature/direct-migrations
May 8, 2026
Merged

Update: Trigger content migrations on plugin update#89
taylortom merged 2 commits into
masterfrom
feature/direct-migrations

Conversation

@taylortom
Copy link
Copy Markdown
Contributor

@taylortom taylortom commented Mar 17, 2026

Update

  • updatePlugin() now captures before/after plugin versions via readFrameworkPluginVersions
  • Finds courses using the updated plugin and calls framework.migrateCourses() to run content migrations

Fix

  • Re-register plugin schemas after a JsonSchema registry reset — pluginSchemas now stores {name: {anchor: filePath}} so plugin extensions can be re-registered via the new JsonSchemaModule.registerSchemasHook tap. Prevents MISSING_SCHEMA errors when the registry is reset (e.g. T10.3 plugin uninstall/reset cycles)

Testing

Call framework.migrateCourses() after updating a plugin to migrate
content in courses that use the updated plugin.
@taylortom taylortom merged commit d304f5d into master May 8, 2026
2 checks passed
@taylortom taylortom deleted the feature/direct-migrations branch May 8, 2026 13:31
github-actions Bot pushed a commit that referenced this pull request May 8, 2026
# [1.7.0](v1.6.1...v1.7.0) (2026-05-08)

### Fix

* Add packages:write permission to release workflow ([1374afe](1374afe))

### Update

* Trigger content migrations on plugin update (fixes #28) (#89) ([d304f5d](d304f5d)), closes [#28](#28) [#89](#89)
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

🎉 This PR is included in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant