From 2ecadb78850f49440a570df30bb02b7e47bec12b Mon Sep 17 00:00:00 2001 From: gesinn-it-ilm Date: Sun, 29 Dec 2024 11:41:14 +0100 Subject: [PATCH 1/6] EditWarningApi - replace deprecated DB_MASTER with DB_PRIMARY --- src/EditWarningApi.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EditWarningApi.php b/src/EditWarningApi.php index fb56c2f..ba9bb55 100644 --- a/src/EditWarningApi.php +++ b/src/EditWarningApi.php @@ -4,6 +4,7 @@ use ApiBase; use Exception; +use MediaWiki\MediaWikiServices; use User; class EditWarningApi extends ApiBase { @@ -27,7 +28,7 @@ public function execute() { } try { - $dbw = wfGetDB( DB_MASTER ); + $dbw = MediaWikiServices::getInstance()->getDBLoadBalancer()->getConnection( DB_PRIMARY ); $ew->removeLock( $dbw ); if ( $ewAction === 'lock' ) { From c62a4fd72c6a234f3c358d22c027f6d1c25528ca Mon Sep 17 00:00:00 2001 From: gesinn-it-ilm Date: Sun, 29 Dec 2024 11:44:24 +0100 Subject: [PATCH 2/6] chg (main): update CI - add matrix for MW 1.43 --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b1a3ec..2ce761f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,13 @@ jobs: coverage: false experimental: false - mediawiki_version: '1.42' - php_version: 8.1 + php_version: 8.2 + database_type: mysql + database_image: "mysql:8" + coverage: false + experimental: false + - mediawiki_version: '1.43' + php_version: 8.2 database_type: mysql database_image: "mysql:8" coverage: false From 9c8bca58a8ec057c9bac0158aeafd539578473cf Mon Sep 17 00:00:00 2001 From: gesinn-it-ilm Date: Sun, 29 Dec 2024 12:31:21 +0100 Subject: [PATCH 3/6] chg (main): drop support for MW 1.35 --- .github/workflows/main.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ce761f..d3b4409 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,12 +17,6 @@ jobs: strategy: matrix: include: - - mediawiki_version: '1.35' - php_version: 7.4 - database_type: mysql - database_image: "mysql:5.7" - coverage: false - experimental: false - mediawiki_version: '1.39' php_version: 8.1 database_type: mysql From 58e6cb142e4c47a4cf9b353f3344ba4fa40b53f0 Mon Sep 17 00:00:00 2001 From: gesinn-it-ilm Date: Thu, 20 Feb 2025 12:38:57 +0100 Subject: [PATCH 4/6] allow PHPCS Composer plugin: - allow Composer to use phpcodesniffer installer plugin --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index 8ad74db..05d22a3 100644 --- a/composer.json +++ b/composer.json @@ -30,5 +30,10 @@ "phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox", "phpunit-coverage": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox --coverage-text --coverage-html coverage/php --coverage-clover coverage/php/coverage.xml", "minus-x": "minus-x check ." + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } \ No newline at end of file From cacdf223fccda6be79c0da5a9313f2e26b660fc0 Mon Sep 17 00:00:00 2001 From: gesinn-it-ilm Date: Thu, 20 Feb 2025 12:42:22 +0100 Subject: [PATCH 5/6] chore (build): update to the latest CI --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index 10d5746..13d00b1 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 10d57463ef3332f79d6b0e763ca8c5d2c4860e16 +Subproject commit 13d00b11a7743cb6a524c6ed577b8dea3913a62c From f51bf96e3d7a65bea1081544c1bbf3502e385f69 Mon Sep 17 00:00:00 2001 From: gesinn-it-ilm Date: Mon, 26 May 2025 14:57:30 +0200 Subject: [PATCH 6/6] chore (build): update to the latest CI --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index 13d00b1..3c2344c 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 13d00b11a7743cb6a524c6ed577b8dea3913a62c +Subproject commit 3c2344c631a9023b228fd9970c8daf0583b333e1