Skip to content

KICK-302 Moodle 5.x compatibility (5.0–5.2), drop 4.x - #83

Open
stefanscholz wants to merge 2 commits into
mainfrom
KICK-302
Open

KICK-302 Moodle 5.x compatibility (5.0–5.2), drop 4.x#83
stefanscholz wants to merge 2 commits into
mainfrom
KICK-302

Conversation

@stefanscholz

@stefanscholz stefanscholz commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Makes format_kickstart compatible with the Moodle 5.x series (5.0, 5.1, 5.2) and drops 4.x support.

  • version.phprequires raised to Moodle 5.0 (2025041400); supported set to [500, 502]; plugin version bumped.
  • CI — matrix now runs MOODLE_500_STABLE / MOODLE_501_STABLE / MOODLE_502_STABLE on both MariaDB and PostgreSQL. PHP 8.2 for 5.0; PHP 8.3 for 5.1/5.2 (Moodle 5.2 requires PHP 8.3+). The 4.05 entries are removed.
  • Cleanup (4.x dropped) — removed the now-dead Bootstrap 4 data-* attribute fallbacks ($CFG->branch >= 500 was always true); Moodle 5.x is Bootstrap 5, so the renderers emit data-bs-* directly.

Verification

php -l and the Moodle code checker (moodlehq/moodle-cs, --standard=moodle) pass on all changed files; both CI YAMLs validate. The full plugin CI (PHPUnit + Behat across the 5.0/5.1/5.2 matrix) runs on this PR.

- version.php: require Moodle 5.0 (2025041400), supported [500, 502]
- CI: test against MOODLE_500/501/502_STABLE (PHP 8.2 for 5.0, 8.3 for
  5.1/5.2 since 5.2 requires PHP 8.3+); drop the 4.05 matrix entries
- Remove now-dead 4.x Bootstrap 4 data-attribute fallbacks; Moodle 5.x
  is always Bootstrap 5, so emit data-bs-* directly

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@stefanscholz

Copy link
Copy Markdown
Member Author

Task linked: KICK-302 Moodle 5.2 compatibility

core/modal_factory was removed in Moodle 5.2, so the formatkickstart AMD
module failed to load (breaking the tertiary navigation and all Behat
scenarios on 5.2). Migrate to core/modal_save_cancel, which exists across
5.0–5.2, and rebuild the compiled AMD. Bump the release name to 1.6.

Verified on a Moodle 5.2 site: the previously failing Behat scenarios pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jrchamp jrchamp mentioned this pull request Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant