Skip to content

Commit

Permalink
Merge branch 'master' into Universal-Omega-patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Feb 7, 2025
2 parents 4b33ebf + 39f21ea commit f6cbf94
Show file tree
Hide file tree
Showing 46 changed files with 747 additions and 429 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@3ff8e64eb4b714c4bee91b7b4eea31c6fc2c4f93
uses: codacy/codacy-analysis-cli-action@97bf5df3c09e75f5bcd72695998f96ebd701846e
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations
Expand Down
90 changes: 29 additions & 61 deletions .github/workflows/mediawiki-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
strategy:
matrix:
include:
# Latest stable MediaWiki - PHP 7.4 (phan)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
# Latest stable MediaWiki - PHP 8.1 (phan)
- mw: 'REL1_43'
php: 8.1
php-docker: 81
experimental: false
stage: phan

# Latest MediaWiki master - PHP 7.4 (phan)
# Latest MediaWiki master - PHP 8.1 (phan)
- mw: 'master'
php: 7.4
php-docker: 74
php: 8.1
php-docker: 81
experimental: true
stage: phan

Expand All @@ -34,71 +34,36 @@ jobs:
experimental: false
stage: coverage

# Latest stable MediaWiki - PHP 7.4 (phpunit-unit)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
experimental: false
stage: phpunit-unit

# Latest MediaWiki master - PHP 7.4 (phpunit-unit)
- mw: 'master'
php: 7.4
php-docker: 74
experimental: false
stage: phpunit-unit

# Latest stable MediaWiki - PHP 7.4 (phpunit)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
experimental: false
stage: phpunit

# Latest MediaWiki master - PHP 7.4 (phpunit)
- mw: 'master'
php: 7.4
php-docker: 74
# Latest stable MediaWiki - PHP 8.1 (phpunit)
- mw: 'REL1_43'
php: 8.1
php-docker: 81
experimental: false
stage: phpunit

# Latest MediaWiki master - PHP 8.1 (phpunit)
- mw: 'master'
php: 8.1
php-docker: 81
experimental: false
experimental: true
stage: phpunit

# Latest stable MediaWiki - PHP 7.4 (selenium)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
experimental: false
stage: selenium

# Latest MediaWiki master - PHP 7.4 (selenium)
# Latest MediaWiki master - PHP 8.1 (selenium)
- mw: 'master'
php: 7.4
php-docker: 74
experimental: false
php: 8.1
php-docker: 81
experimental: true
stage: selenium

# Latest stable MediaWiki - PHP 7.4 (qunit)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
experimental: false
stage: qunit

# Latest MediaWiki master - PHP 7.4 (qunit)
# Latest MediaWiki master - PHP 8.1 (qunit)
- mw: 'master'
php: 7.4
php-docker: 74
experimental: false
php: 8.1
php-docker: 81
experimental: true
stage: qunit

# Latest stable MediaWiki - PHP 8.1 (composer-test)
- mw: 'REL1_41'
- mw: 'REL1_43'
php: 8.1
php-docker: 81
experimental: false
Expand All @@ -112,6 +77,7 @@ jobs:
QUIBBLE_DOCKER_IMAGE: quibble-buster-php${{ matrix.php-docker }}
COVERAGE_DOCKER_IMAGE: quibble-buster-php${{ matrix.php-docker }}-coverage
PHAN_DOCKER_IMAGE: mediawiki-phan-php${{ matrix.php-docker }}
MEDIAWIKI_VERSION: ${{ matrix.mw }}

steps:
- name: Cancel Previous Runs
Expand All @@ -129,8 +95,6 @@ jobs:
# $GITHUB_WORKSPACE/.github/workflows/globals.php Add global configuration options for MediaWiki
- name: Set up
run: |
echo MEDIAWIKI_VERSION="${{ matrix.mw }}" >> $GITHUB_ENV
if [ "${{ matrix.stage }}" == 'phan' ]; then
export DOCKER_IMAGE="${PHAN_DOCKER_IMAGE}"
elif [ "${{ matrix.stage }}" == coverage ]; then
Expand All @@ -154,9 +118,13 @@ jobs:
# Resolve dependencies
if [ -e .github/workflows/dependencies ] && [ "${{ matrix.stage }}" == 'phan' ]; then
cd .github/workflows
curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/master/zuul/dependencies.yaml -o dependencies.yaml
curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/master/zuul/phan_dependencies.yaml -o phan_dependencies.yaml
curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/master/zuul/parameter_functions.py -o pf.py
curl -sL https://raw.githubusercontent.com/WikiForge/ci-scripts/master/mediawiki/resolve_dependencies.py -o rd.py
echo "DEPENDENCIES=$(python3 rd.py)" >> $GITHUB_ENV
curl -sL https://raw.githubusercontent.com/miraheze/ci-scripts/master/mediawiki/resolve_dependencies.py -o rd.py
if [ -e dependencies ]; then
echo "DEPENDENCIES=$(python3 rd.py dependencies)" >> $GITHUB_ENV
fi
fi
- name: Cache docker image
Expand Down Expand Up @@ -307,7 +275,7 @@ jobs:
- name: Upload coverage to Codecov
if: ${{ matrix.stage == 'coverage' }}
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
directory: /home/runner/cover

Expand Down
2 changes: 0 additions & 2 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
);

$cfg['suppress_issue_types'] = [
// Temporary
'MediaWikiNoEmptyIfDefined',
'SecurityCheck-LikelyFalsePositive',
'PhanAccessMethodInternal',
];
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -819,3 +819,13 @@ Many thanks to GreenReaper on GitHub for reporting and finding issues with core
* Fix minoredits=exclude
* Fix "PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead"
* Fix "PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated"

# Version 3.6.0
* Added support for `pagelinks` migration
* Added support for MediaWiki 1.43 and dropped support for older MediaWiki versions (before 1.43.0)
* Added support for PHP 8.2
* Fixed many deprecations from MediaWiki 1.40-1.43
* Code Cleanup
* Many bug fixes
* Renamed maintenance scripts to be able to use AutoloadNamespaces
* Added `--recreate` option to CreateView maintenance script to be able to drop and recreate the view if necessary.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"composer/installers": ">=1.0.1"
},
"require-dev": {
"mediawiki/mediawiki-codesniffer": "43.0.0",
"mediawiki/mediawiki-phan-config": "0.14.0",
"mediawiki/mediawiki-codesniffer": "46.0.0",
"mediawiki/mediawiki-phan-config": "0.15.1",
"mediawiki/minus-x": "1.1.3",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.4.0"
Expand Down
11 changes: 4 additions & 7 deletions extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DynamicPageList3",
"version": "3.5.3",
"version": "3.6.0",
"author": [
"'''Universal Omega'''",
"Alexia E. Smith",
Expand All @@ -11,7 +11,7 @@
"license-name": "GPL-3.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.39.0"
"MediaWiki": ">= 1.43.0"
},
"GroupPermissions": {
"sysop": {
Expand All @@ -31,12 +31,9 @@
"ExtensionMessagesFiles": {
"DynamicPageList3Magic": "DynamicPageList3Magic.php"
},
"AutoloadClasses": {
"MediaWiki\\Extension\\DynamicPageList3\\Maintenance\\CreateTemplate": "maintenance/createTemplate.php",
"MediaWiki\\Extension\\DynamicPageList3\\Maintenance\\CreateView": "maintenance/createView.php"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\DynamicPageList3\\": "includes/"
"MediaWiki\\Extension\\DynamicPageList3\\": "includes/",
"MediaWiki\\Extension\\DynamicPageList3\\Maintenance\\": "maintenance/"
},
"TestAutoloadNamespaces": {
"MediaWiki\\Extension\\DynamicPageList3\\Tests\\": "tests/phpunit/"
Expand Down
1 change: 1 addition & 0 deletions i18n/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"dpl_log_23": "ত্রুটি: সার্ভার ওভারলোড হওয়ার কারণে তালিকা প্রদর্শন করা যাচ্ছে না। অনুগ্রহ করে কিছুক্ষণ পর আবার চেষ্টা করুন।",
"dpl_log_24": "ত্রুটি: <code>$wgDplSettings['runFromProtectedPagesOnly']</code> নির্ধারণ করা আছে, তবে '$1' পাতাটি সম্পাদনা সুরক্ষিত নয়।",
"dpl_log_25": "ত্রুটি: $1",
"dpl_query_error": "DynamicPageList3 এক্সটেনশন (সংস্করণ $1) একটি SQL স্টেটমেন্ট উৎপন্ন করেছে যা ডাটাবেস ত্রুটির দিকে নিয়ে গেছে।<br/> এটি DynamicPageList3-এর অভ্যন্তরীণ ত্রুটি বা আপনার করা ত্রুটির কারণে হতে পারে; বিশেষ করে যখন 'categoryregexp' বা 'titleregexp'-এর মতো পরামিতি ব্যবহার করা হয় তখন এটি হতে পারে। নন-গ্রিডি *? মিলকরণ প্যাটার্ন সমর্থিত নয়।<br/> ত্রুটির বার্তাটি হলো:<br/><code>$2</code>",
"dpl-tag-tracking-category": "DynamicPageList3 পার্সার ট্যাগ ব্যবহার করা পাতা"
}
3 changes: 2 additions & 1 deletion i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"Gero Scholz",
"Justman10000",
"Magiczocker",
"MarkusRost"
"MarkusRost",
"TomatoCake"
]
},
"intersection-desc": "Ausgabe einer Liste der aktuellsten Einträge in einer Kategorie, oder der Schnittmenge mehrerer Kategorien",
Expand Down
2 changes: 1 addition & 1 deletion i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dpl_articlecount": "There {{PLURAL:$1|is one article|are $1 articles}} in this heading.",
"action-dpl_param_update_rules": "to use the parameter 'updaterules'",
"action-dpl_param_delete_rules": "to use the parameter 'deleterules'",
"dpl_query_error": "The DynamicPageList3 extension (version $1) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList3 or an error which you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy *? matching patterns are not supported.<br/>Error message was:<br/><tt>$2</tt>",
"dpl_query_error": "The DynamicPageList3 extension (version $1) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList3 or an error that you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy <code>*?</code> matching patterns are not supported.<br/>The error message was:<br/><code>$2</code>",
"dpl-tag-tracking-category": "Pages using DynamicPageList3 parser tag",
"dpl-intersection-tracking-category": "Pages using DynamicPageList3 Intersection parser tag",
"dpl-parserfunc-tracking-category": "Pages using DynamicPageList3 parser function",
Expand Down
6 changes: 4 additions & 2 deletions i18n/fr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"@metadata": {
"authors": [
"Eihel",
"MacOS Weed",
"Verdy p"
]
},
Expand All @@ -21,7 +23,7 @@
"dpl_log_8": "Erreur : un seul type de date peut être ajouté à la fois.",
"dpl_log_9": "Erreur : le paramètre « $1 » doit être utilisé avec « ordermethod=[ $2 ] »",
"dpl_log_10": "Erreur : l’index de la section dominante doit être compris entre 1 et le nombre d’arguments pour « includepage » ($0 dans ce cas)",
"dpl_log_11": "Erreur : impossible d’effectuer des opérations logiques sur les Pages non catégorisées (par exemple avec le paramètre « category ») car la vue $0 n’existe pas dans la base de données ! Aide : demandez à l’administrateur de la base de données d’exécuter la requête suivante : <code>$1</code>.",
"dpl_log_11": "Erreur : impossible d’effectuer des opérations logiques sur les Pages non catégorisées (par ex. avec le paramètre « category ») car la vue $0 n’existe pas dans la base de données ! Aide : demandez à l’administrateur de la base de données d’exécuter la requête suivante : <code>$1</code>.",
"dpl_log_12": "Erreur : la spécification pour « openreferences » est incompatible avec une autre option spécifiée. Veuillez supprimer cette autre option ou « openreferences ». Voir le manuel pour plus de détails.",
"dpl_log_13": "Avertissement : le paramètre inconnu « $1 » a été ignoré. Aide : paramètres disponibles : <code>$2</code>.",
"dpl_log_14": "Avertissement : ignore l’option « $2 » incorrecte pour le paramètre « $1 ».",
Expand All @@ -39,7 +41,7 @@
"dpl_articlecount": "Il y a {{PLURAL:$1|un article|$1 articles}} dans cette rubrique.",
"action-dpl_param_update_rules": "faire usage du paramètre « updaterules »",
"action-dpl_param_delete_rules": "faire usage du paramètre « deleteterules »",
"dpl_query_error": "L’extension DynamicPageList3 (version $1) a produit une instruction SQL ayant entraîné une erreur de la base de données.<br /> La raison peut être une erreur interne de DynamicPageList3 ou une erreur que vous avez commise ; en particulier lors de l’utilisation de paramètres indiquant des expressions régulières tels que « categoryregexp » ou « titleregexp ». L’utilisation de patrons de correspondance non gourmande avec « *? » n’est pas prise en charge.<br /> Le message d’erreur était :<br /> <tt>$2</tt>",
"dpl_query_error": "L’extension DynamicPageList3 (version $1) a produit une instruction SQL ayant entraîné une erreur de la base de données.<br />La raison peut être une erreur interne de DynamicPageList3 ou une erreur que vous avez commise ; en particulier lors de l’utilisation de paramètres tels que « categoryregexp » ou « titleregexp ». L’utilisation de modèles de correspondance non gourmands avec <code>*?</code> n’est pas prise en charge.<br />Le message d’erreur était :<br/><code>$2</code>",
"dpl-tag-tracking-category": "Pages utilisant la balise d’analyseur DynamicPageList3",
"dpl-intersection-tracking-category": "Pages utilisant la balise d’analyseur d’Intersection de DynamicPageList3",
"dpl-parserfunc-tracking-category": "Pages utilisant la fonction d’analyseur DynamicPageList3",
Expand Down
2 changes: 1 addition & 1 deletion i18n/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dpl_articlecount": "יש {{PLURAL:$1|ערך אחד|$1 ערכים}} בכותרת הזאת.",
"action-dpl_param_update_rules": "להשתמש בפרמטר \"updaterules\"",
"action-dpl_param_delete_rules": "להשתמש בפרמטר \"deleterule\"",
"dpl_query_error": "ההרחבה DynamicPageList3 (גרסה $1) יצרה משפט SQL שהוביל לשגיאה במסד נתונים.<br/>הסיבה עשויה להיות שגיאה פנימית של DynamicPageList3 או שגיאה שלך; במיוחד כאשר משתמשים בפרמטרים כמו \"categoryregexp\" או \"titleregexp\". שימוש בתבניות <code dir=\"ltr\">*?</code> חמדניות (greedy) אינו נתמך.<br/>הודעת השגיאה הייתה:<br/><tt>$2</tt>",
"dpl_query_error": "ההרחבה DynamicPageList3 (גרסה $1) יצרה משפט SQL שהוביל לשגיאה במסד נתונים.<br/>הסיבה עשויה להיות שגיאה פנימית של DynamicPageList3 או שגיאה שלך; במיוחד כאשר משתמשים בפרמטרים כמו \"categoryregexp\" או \"titleregexp\". שימוש בתבניות <code dir=\"ltr\">*?</code> חמדניות (greedy) אינו נתמך.<br/>הודעת השגיאה הייתה:<br/><code>$2</code>",
"dpl-tag-tracking-category": "דפים המשתמשים בתג מפענח DynamicPageList3",
"dpl-intersection-tracking-category": "דפים המשתמשים בתג המפענח Intersection של DynamicPageList3",
"dpl-parserfunc-tracking-category": "דפים המשתמשים בתג מפענח של DynamicPageList3",
Expand Down
2 changes: 1 addition & 1 deletion i18n/ia.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dpl_articlecount": "Il ha $1 articulo{{PLURAL:$1||s}} in iste capite.",
"action-dpl_param_update_rules": "usar le parametro 'updaterules'",
"action-dpl_param_delete_rules": "usar le parametro 'deleterules'",
"dpl_query_error": "Le extension DynamicPageList3 (version $1) ha producite un declaration SQL le qual ha conducite a un error del base de datos.<br/>Le ration pote esser un error interne de DynamicPageList3 o un error que tu ha facite; particularmente quando se usa parametros como 'categoryregexp' o 'titleregexp'. Le uso de patronos de correspondentia *? non avide non es supportate. <br/>Le message de error esseva:<br/><tt>$2</tt>",
"dpl_query_error": "Le extension DynamicPageList3 (version $1) ha producite un declaration SQL le qual ha conducite a un error del base de datos.<br/>Le ration pote esser un error interne de DynamicPageList3 o un error que tu ha facite; particularmente quando se usa parametros como 'categoryregexp' o 'titleregexp'. Le uso de patronos de correspondentia <code>*?</code> non avide non es supportate. <br/>Le message de error esseva:<br/><code>$2</code>",
"dpl-tag-tracking-category": "Paginas que usa le etiquetta del analysator syntactic DynamicPageList3",
"dpl-intersection-tracking-category": "Paginas que usa le etiquetta del analysator syntactic DynamicPageList3 Intersection",
"dpl-parserfunc-tracking-category": "Paginas que usa le function del analysator syntactic DynamicPageList3",
Expand Down
3 changes: 2 additions & 1 deletion i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"dpl_log_14": "警告: 引数 '$1' の誤ったオプション '$2' をスキップします。",
"dpl_log_16": "警告: 結果がありません。",
"dpl_log_19": "警告: 'debug=$1' が DPL 要素の最初の位置にありません。新しいデバッグ設定はこれ以前の引数に対しては適用されません。",
"dpl_log_20": "警告: ページ '$0' から無限の呼び出しループが発生しました。",
"dpl_log_21": "クエリ: <code>$0</code>",
"dpl_log_22": "警告: '$1' に引数オプションが指定されていません( '=' がありません)。",
"dpl_log_23": "エラー: サーバーに負荷がかかっているため、このリストは表示できません。後ほどもう一度お試しください。",
"dpl_log_24": "エラー: <code>$wgDplSettings['runFromProtectedPagesOnly']</code> が設定されていますが、ページ「$1」は編集保護されていません。",
"dpl_log_25": "エラー: $1",
"dpl_query_error": "DynamicPageList3 拡張機能 (バージョン $1) は、データベースエラーを引き起こす SQL ステートメントを生成しました。<br/>理由は、DynamicPageList3 の内部エラー、またはあなたが行ったエラーである可能性があります(特に「categoryregexp」や「titleregexp」などの引数を使用する場合、 *? による非貪欲なパターン一致の使用はサポートされていません)。<br/>エラーメッセージは次のとおりです:<br/><tt>$2</tt>",
"dpl_query_error": "DynamicPageList3 拡張機能 (バージョン $1) は、データベースエラーを引き起こす SQL ステートメントを生成しました。<br/>理由は、DynamicPageList3 の内部エラー、またはあなたが行ったエラーである可能性があります(特に「categoryregexp」や「titleregexp」などの引数を使用する場合、 *? による非貪欲なパターン一致の使用はサポートされていません)。<br/>エラーメッセージは次のとおりです:<br/><code>$2</code>",
"dpl-tag-tracking-category": "DynamicPageList3のパーサータグを使用しているページ",
"dpl-intersection-tracking-category": "DynamicPageList3のIntersectionパーサータグを使用しているページ",
"dpl-parserfunc-tracking-category": "DynamicPageList3のパーサー関数を使用しているページ",
Expand Down
Loading

0 comments on commit f6cbf94

Please sign in to comment.