Skip to content

fix(playground): keep blueprint editor version in sync with .editor-version#64

Open
erseco wants to merge 1 commit into
mainfrom
fix/playground-editor-version-sync
Open

fix(playground): keep blueprint editor version in sync with .editor-version#64
erseco wants to merge 1 commit into
mainfrom
fix/playground-editor-version-sync

Conversation

@erseco

@erseco erseco commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Problem

The playground booted with eXeLearning editor v4.0.0 even though the latest upstream release — and this repo's .editor-version — is v4.0.1.

Root cause: there are two sources of truth for the editor version, and only one was kept current.

  • .editor-version — bumped automatically every day by check-editor-releases.yml.
  • blueprint.json — a hardcoded editor download URL that the workflow never touched.

So .editor-version advanced to v4.0.1 while blueprint.json stayed pinned at v4.0.0, and the playground / PR-preview kept serving the old editor. Production plugin releases were unaffected (they bake the editor from .editor-version); only the playground demo drifted.

Fix

  • Catch-up: bump the editor URL in blueprint.json to v4.0.1 so it matches .editor-version.
  • Durable: check-editor-releases.yml now rewrites the blueprint's editor URL (via sed) whenever it bumps .editor-version, and commits both files together, so they can never drift apart again.

The sed only rewrites the editor asset reference (release=, releases/download/, exelearning-static-*.zip); the plugin source URL and content fixtures are left untouched. Verified against plain version tags and RC-suffixed tags (e.g. v4.0.0-rc3).

Verification

  • blueprint.json now resolves the same version as .editor-version (v4.0.1).
  • Dry-run of the workflow sed rewrites only the editor URL on a simulated bump.
  • blueprint.json is valid JSON and the workflow is valid YAML.

Moodle Playground Preview

The changes in this pull request can be previewed and tested using a Moodle Playground instance.

Preview in Moodle Playground

ℹ️ The eXeLearning editor is fetched from the shared release and unpacked into the plugin when the playground boots, so the first load may take a few extra seconds. ELPX upload, viewer and preview work normally.

…ersion

The playground downloaded editor v4.0.0 while .editor-version had moved to
v4.0.1: check-editor-releases.yml only bumped the .editor-version marker and
never the hardcoded editor URL in blueprint.json, so the preview stayed pinned.

- Catch up blueprint.json to v4.0.1 (matches .editor-version).
- Rewrite the blueprint's editor URL on every bump so the two stay in sync.
@erseco erseco requested a review from ignaciogros June 10, 2026 04:29
@erseco erseco self-assigned this Jun 10, 2026
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.

1 participant