From a88767a7d9f71a6e5580d8d6ff4ffae5213feb0d Mon Sep 17 00:00:00 2001 From: Tamaro Walter Date: Fri, 13 Jun 2025 12:54:53 +0200 Subject: [PATCH 01/12] update cicd-pipeline json --- .github/workflows/config.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index 7da43e1a52..9e92145f0c 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -3,10 +3,9 @@ "main-php": "8.3", "moodle-php": { "MOODLE_401_STABLE": ["8.0", "8.1"], - "MOODLE_402_STABLE": ["8.1", "8.2"], - "MOODLE_403_STABLE": ["8.1", "8.2"], "MOODLE_404_STABLE": ["8.2", "8.3"], - "MOODLE_405_STABLE": ["8.1", "8.2", "8.3"] + "MOODLE_405_STABLE": ["8.1", "8.2", "8.3"], + "MOODLE_500_STABLE": ["8.2", "8.3", "8,4"] }, - "moodle-plugin-ci": "4.5.5" + "moodle-plugin-ci": "5.0.1" } From 3996eb1b933d87f4fefb30719924f456328f30d2 Mon Sep 17 00:00:00 2001 From: Tamaro Walter Date: Wed, 18 Jun 2025 15:25:31 +0200 Subject: [PATCH 02/12] change moodle ci to latest version --- .github/workflows/config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index 9e92145f0c..d464ed9756 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -3,9 +3,9 @@ "main-php": "8.3", "moodle-php": { "MOODLE_401_STABLE": ["8.0", "8.1"], - "MOODLE_404_STABLE": ["8.2", "8.3"], + "MOODLE_404_STABLE": ["8.1", "8.2", "8.3"], "MOODLE_405_STABLE": ["8.1", "8.2", "8.3"], "MOODLE_500_STABLE": ["8.2", "8.3", "8,4"] }, - "moodle-plugin-ci": "5.0.1" + "moodle-plugin-ci": "4.5.7" } From 90c0ed2bde42984d8a7ee65c99184eaffaa21d50 Mon Sep 17 00:00:00 2001 From: tamaro Date: Wed, 18 Jun 2025 17:04:08 +0200 Subject: [PATCH 03/12] set M5.0 as standard branch --- .github/workflows/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index d464ed9756..b3684541d0 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -1,5 +1,5 @@ { - "main-moodle": "MOODLE_405_STABLE", + "main-moodle": "MOODLE_500_STABLE", "main-php": "8.3", "moodle-php": { "MOODLE_401_STABLE": ["8.0", "8.1"], From 0ac09dda58bc1177e926d1d49be7a3141b0e89da Mon Sep 17 00:00:00 2001 From: Tamaro Walter Date: Fri, 20 Jun 2025 10:05:19 +0200 Subject: [PATCH 04/12] Create pull_request_template.md --- .github/pull_request_template.md | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000000..4ef45fae30 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,47 @@ +> **Note:** Please fill out all required sections and remove irrelevant ones. + +### 📋 Kind of PR + +- [ ] Fixes a bug +- [ ] Updates for a new Moodle version +- [ ] Adds a new feature of functionality +- [ ] Improves or enhances existing features +- [ ] Refactoring: restructures code for better performance or maintainability +- [ ] Testing: add missing or improve existing tests +- [ ] Miscellaneous: code cleaning (without functional changes), documentation, configuration, ... +--- + +### 🧩 Description + +Please describe the purpose of this PR in a few sentences. + +- What feature or bug does it address? +- Why is this change or addition necessary? +- What is the expected behavior after the change? + +--- + +### ✅ Checklist + +Please confirm the following (check all that apply): + +- [ ] I have `phpunit` and/or `behat` tests that cover my changes or additions. +- [ ] Code passes the code checker without errors and warnings. +- [ ] Code passes the moodle-ci/cd pipeline on all supported Moodle versions or the ones the plugin supports. +- [ ] Code does not have `var_dump()` or `var_export` or any other debugging statements that should not appear on the productive branch. +- [ ] Code only uses language strings instead of hard-coded strings. +- [ ] If there are changes in the database: I updated/created the necessary upgrade steps in `db/upgrade.php` and updated the `version.php`. +- [ ] If there are changes in javascript: I build new `.min` files with the `grunt amd` command. +- [ ] If it is a Moodle update PR: I read the release notes, updated the `version.php` and added the new moodle version to the workflow file. I ran all tests thoroughly checking for errors. + +--- + +### 🧱 Related Issue + +- Related to #[IssueNumber] + +--- + +### 🗒️ Additional Notes + +Any other relevant information. From 11301b636e1bd5615e3ebaa37d4548a2bfede6f0 Mon Sep 17 00:00:00 2001 From: tamaro Date: Sat, 21 Jun 2025 16:05:20 +0200 Subject: [PATCH 05/12] fix wrong comma --- .github/workflows/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index b3684541d0..10ad2d31a7 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -5,7 +5,7 @@ "MOODLE_401_STABLE": ["8.0", "8.1"], "MOODLE_404_STABLE": ["8.1", "8.2", "8.3"], "MOODLE_405_STABLE": ["8.1", "8.2", "8.3"], - "MOODLE_500_STABLE": ["8.2", "8.3", "8,4"] + "MOODLE_500_STABLE": ["8.2", "8.3", "8.4"] }, "moodle-plugin-ci": "4.5.7" } From 60df24484005f521dc03e2c49a2954a5a7844a76 Mon Sep 17 00:00:00 2001 From: tamaro Date: Mon, 23 Jun 2025 15:14:30 +0200 Subject: [PATCH 06/12] enhanced test matrix --- .github/workflows/config.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index 10ad2d31a7..cd934fde7f 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -1,6 +1,8 @@ { "main-moodle": "MOODLE_500_STABLE", "main-php": "8.3", + "main-db": "pgsql", + "dbs": ["pgsql", "mariadb", "mysqli"], "moodle-php": { "MOODLE_401_STABLE": ["8.0", "8.1"], "MOODLE_404_STABLE": ["8.1", "8.2", "8.3"], From 2f28da2047fddb76497f703ac676d105dd51bd72 Mon Sep 17 00:00:00 2001 From: tamaro Date: Mon, 23 Jun 2025 15:21:17 +0200 Subject: [PATCH 07/12] delete unnecessary db --- .github/workflows/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index cd934fde7f..62e3cdf641 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -2,7 +2,7 @@ "main-moodle": "MOODLE_500_STABLE", "main-php": "8.3", "main-db": "pgsql", - "dbs": ["pgsql", "mariadb", "mysqli"], + "dbs": ["pgsql", "mariadb"], "moodle-php": { "MOODLE_401_STABLE": ["8.0", "8.1"], "MOODLE_404_STABLE": ["8.1", "8.2", "8.3"], From 822959cc44577ae9272cbca10b1aa024d09f13d8 Mon Sep 17 00:00:00 2001 From: tamaro Date: Mon, 23 Jun 2025 15:25:34 +0200 Subject: [PATCH 08/12] try again --- .github/workflows/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index 62e3cdf641..cd934fde7f 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -2,7 +2,7 @@ "main-moodle": "MOODLE_500_STABLE", "main-php": "8.3", "main-db": "pgsql", - "dbs": ["pgsql", "mariadb"], + "dbs": ["pgsql", "mariadb", "mysqli"], "moodle-php": { "MOODLE_401_STABLE": ["8.0", "8.1"], "MOODLE_404_STABLE": ["8.1", "8.2", "8.3"], From af04863cd82a94420c58fca32ee0549e3a115645 Mon Sep 17 00:00:00 2001 From: tamaro Date: Mon, 23 Jun 2025 15:48:37 +0200 Subject: [PATCH 09/12] remove mysql --- .github/workflows/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index cd934fde7f..62e3cdf641 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -2,7 +2,7 @@ "main-moodle": "MOODLE_500_STABLE", "main-php": "8.3", "main-db": "pgsql", - "dbs": ["pgsql", "mariadb", "mysqli"], + "dbs": ["pgsql", "mariadb"], "moodle-php": { "MOODLE_401_STABLE": ["8.0", "8.1"], "MOODLE_404_STABLE": ["8.1", "8.2", "8.3"], From cf8ffebf0a3e5f5399910a75e6eb8b14cf9646b6 Mon Sep 17 00:00:00 2001 From: tamaro Date: Tue, 24 Jun 2025 23:12:29 +0200 Subject: [PATCH 10/12] update version and workflow config --- .github/workflows/config.json | 24 ++++++++++++++++++++++++ version.php | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index 62e3cdf641..e3adb320ea 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -1,4 +1,5 @@ { +<<<<<<< Updated upstream "main-moodle": "MOODLE_500_STABLE", "main-php": "8.3", "main-db": "pgsql", @@ -11,3 +12,26 @@ }, "moodle-plugin-ci": "4.5.7" } +======= + "moodle-plugin-ci": "4.5.7", + "main-moodle": "MOODLE_500_STABLE", + "main-php": "8.3", + "main-db": "pgsql", + "moodle-testmatrix": { + "MOODLE_401_STABLE": { + "php": ["8.0", "8.1"] + }, + "MOODLE_404_STABLE": { + "php": ["8.1", "8.2", "8.3"] + }, + "MOODLE_405_STABLE": { + "php": ["8.1", "8.2", "8.3"], + "db": ["pgsql", "mariadb", "mysqli"] + }, + "MOODLE_500_STABLE": { + "php": ["8.2", "8.3", "8.4"], + "db": ["pgsql", "mariadb", "mysqli"] + } + } +} +>>>>>>> Stashed changes diff --git a/version.php b/version.php index 3fc2c38d83..c9db47e9c2 100644 --- a/version.php +++ b/version.php @@ -28,8 +28,8 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'mod_moodleoverflow'; -$plugin->version = 2025050601; +$plugin->version = 2025062400; $plugin->requires = 2022112800; $plugin->release = 'v4.5-r2'; $plugin->supported = [401, 405]; -$plugin->maturity = MATURITY_STABLE; +$plugin->maturity = MATURITY_RC; From 18bf5c216766d72e590f77f3eac463d7f1ff4370 Mon Sep 17 00:00:00 2001 From: tamaro Date: Tue, 24 Jun 2025 23:13:12 +0200 Subject: [PATCH 11/12] clean config file --- .github/workflows/config.json | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/config.json b/.github/workflows/config.json index e3adb320ea..7a643bc495 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -1,18 +1,4 @@ { -<<<<<<< Updated upstream - "main-moodle": "MOODLE_500_STABLE", - "main-php": "8.3", - "main-db": "pgsql", - "dbs": ["pgsql", "mariadb"], - "moodle-php": { - "MOODLE_401_STABLE": ["8.0", "8.1"], - "MOODLE_404_STABLE": ["8.1", "8.2", "8.3"], - "MOODLE_405_STABLE": ["8.1", "8.2", "8.3"], - "MOODLE_500_STABLE": ["8.2", "8.3", "8.4"] - }, - "moodle-plugin-ci": "4.5.7" -} -======= "moodle-plugin-ci": "4.5.7", "main-moodle": "MOODLE_500_STABLE", "main-php": "8.3", @@ -33,5 +19,4 @@ "db": ["pgsql", "mariadb", "mysqli"] } } -} ->>>>>>> Stashed changes +} \ No newline at end of file From 52f2a2dcbfa49a4a5036c67b008b002e1bf22cc1 Mon Sep 17 00:00:00 2001 From: Tamaro Walter Date: Wed, 2 Jul 2025 18:55:51 +0200 Subject: [PATCH 12/12] update changes.md --- CHANGES.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 21d35d99cd..e490f2344c 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,10 @@ CHANGELOG ========= +5.0 (2025-06-24) +------------------ + + 4.5.1 (2025-05-19) ------------------ [HOTFIX] #214