-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support MediaWiki 1.39 for actor and templatelinks migration #188
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #188 +/- ##
===========================================
+ Coverage 5.99% 8.59% +2.60%
- Complexity 1565 1568 +3
===========================================
Files 23 23
Lines 4357 3839 -518
===========================================
+ Hits 261 330 +69
+ Misses 4096 3509 -587 ☔ View full report in Codecov by Sentry. |
c1f5cbf
to
7d4b063
Compare
9de7eb9
to
382ce35
Compare
@@ -787,3 +787,9 @@ | |||
* Updated CreateTemplate to mention DPL3, not DPL | |||
* Used database update maintenance script for creating VIEW | |||
* Added additional isset check for mTemplatePath | |||
|
|||
# Version 3.4.7 | |||
* Dropped `revision_actor_temp` support and completed actor migration |
Check notice
Code scanning
Lists should be surrounded by blank lines
150ca76
to
05190aa
Compare
Check commit and GitHub actions for more details
includes/Parse.php
Outdated
|
||
return $this->getFullOutput(); | ||
} | ||
|
||
// Check if DPL shall only be executed from protected pages. | ||
if ( Config::getSetting( 'runFromProtectedPagesOnly' ) === true && !$parser->getTitle()->isProtected( 'edit' ) ) { | ||
if ( Config::getSetting( 'runFromProtectedPagesOnly' ) === true && !$parser->getPage()->isProtected( 'edit' ) ) { |
Check warning
Code scanning / Phpmd (reported by Codacy)
Static access leads to hard to test code
@@ -405,7 +405,7 @@ | |||
} | |||
|
|||
$title = Title::makeTitle( $pageNamespace, $pageTitle ); | |||
$thisTitle = $parser->getTitle(); | |||
$thisTitle = Title::castFromPageReference( $parser->getPage() ); |
Check warning
Code scanning / Phpmd (reported by Codacy)
Static access leads to hard to test code
*/ | ||
public function parse( $input, Parser $parser, &$reset, &$eliminate, $isParserTag = false ) { | ||
$dplStartTime = microtime( true ); | ||
|
||
// Reset headings when being ran more than once in the same page load. | ||
Article::resetHeadings(); | ||
|
||
$title = Title::castFromPageReference( $parser->getPage() ); |
Check warning
Code scanning / Phpmd (reported by Codacy)
Static access leads to hard to test code
includes/Parse.php
Outdated
|
||
return $this->getFullOutput(); | ||
} | ||
|
||
// Check if DPL shall only be executed from protected pages. | ||
if ( Config::getSetting( 'runFromProtectedPagesOnly' ) === true && !$parser->getTitle()->isProtected( 'edit' ) ) { | ||
if ( Config::getSetting( 'runFromProtectedPagesOnly' ) === true && !$title->isProtected( 'edit' ) ) { |
Check warning
Code scanning / Phpmd (reported by Codacy)
Static access leads to hard to test code
@@ -124,7 +120,8 @@ | |||
return $text; | |||
} | |||
} else { | |||
return "[[" . $parser->getTitle()->getPrefixedText() . "]]" . "<!-- WARNING: LST loop detected -->"; | |||
$title = Title::castFromPageReference( $parser->getPage() ); |
Check warning
Code scanning / Phpmd (reported by Codacy)
Static access leads to hard to test code
// Check if DPL shall only be executed from protected pages. | ||
if ( Config::getSetting( 'runFromProtectedPagesOnly' ) === true && !$parser->getTitle()->isProtected( 'edit' ) ) { | ||
if ( Config::getSetting( 'runFromProtectedPagesOnly' ) === true && $title && !$restrictionStore->isProtected( $title, 'edit' ) ) { |
Check warning
Code scanning / Phpmd (reported by Codacy)
Static access leads to hard to test code
Co-authored-by: pandafox <allen@freedom.tm>
@@ -787,3 +787,19 @@ | |||
* Updated CreateTemplate to mention DPL3, not DPL | |||
* Used database update maintenance script for creating VIEW | |||
* Added additional isset check for mTemplatePath | |||
|
|||
# Version 3.5.0 |
Check warning
Code scanning / Markdownlint (reported by Codacy)
Multiple top-level headings in the same document
@@ -787,3 +787,19 @@ | |||
* Updated CreateTemplate to mention DPL3, not DPL | |||
* Used database update maintenance script for creating VIEW | |||
* Added additional isset check for mTemplatePath | |||
|
|||
# Version 3.5.0 |
Check warning
Code scanning / Markdownlint (reported by Codacy)
Expected: 1; Actual: 0; Below
* Replaced usage of deprecated `Title::isProtected()` | ||
* Replaced usage of deprecated `User::matchEditToken()` | ||
* Replaced usage of deprecated `Article::doDelete()` | ||
* Added `null` checks on `Parser::getPage()` and `ParserOutput` before using to avoid fatals |
Check warning
Code scanning / Markdownlint (reported by Codacy)
Expected: 80; Actual: 92
This adds support for 1.39, and drops support for older versions, since 1.39 is the current LTS release.