Commit graph

991 commits

Author SHA1 Message Date
sbailey 4544a9c7cc Add namespace column and new index to Linter table - part 1
* This patch contains the code needed to update the database with
   the addition Linter table column linter_namespace <int/null>
   and add an index with category and namespace for faster
   selection of linter records.

Bug: T299612
Change-Id: I05da381b9a74294b44d4aef968614277d601a176
2022-01-28 20:19:38 +00:00
Translation updater bot 59860752e8 Localisation updates from https://translatewiki.net.
Change-Id: Iaa9ff832031fb10a16fb448cc10c0953e4d13f65
2022-01-25 08:32:54 +01:00
jenkins-bot bd45eeda91 Merge "Replace deprecated JobQueueGroup::singleton()" 2022-01-23 21:39:36 +00:00
Umherirrender 354012f419 Replace deprecated JobQueueGroup::singleton()
Change-Id: Ib19314b8a8a4265daf67e31d50f1c61aec2edb8e
2022-01-21 17:22:20 +00:00
Subramanya Sastry 70ffca650e Drop 'inline-media-caption' lint requests
Bug: T297443
Bug: T299302
Change-Id: Id158f1fef8be06ddac733c71b7c1e26a58270955
2022-01-17 12:55:51 -06:00
Translation updater bot 5239c4ae29 Localisation updates from https://translatewiki.net.
Change-Id: Iac58cc333a69409633f2962453d94e795229e0b6
2022-01-17 08:12:25 +01:00
Arlo Breault 6898415d8d Disable "inline-media-caption" category
Note that this only removes the category from the special page and the
lints will still show up by page.  Those need purging separately or more
code to filter out disabled categories from the results.

Bug: T297443
Change-Id: Idfcf5ee5d69f5dc65100229aacb22137be475866
2022-01-16 12:25:28 -05:00
Matěj Suchánek 1335b79a0b Pass HTML element attributes as an array
Html::openElement checks for this and logs a warning.
Html::closeElement does not, and this makes it return
</span class="error">.

Change-Id: I31c2809d2fd5421606fa877021d1636ac0eb4d26
2022-01-15 14:18:56 +01:00
Translation updater bot c7b702ce94 Localisation updates from https://translatewiki.net.
Change-Id: I43c945c69cf5efcea4a0bcce78bff5c45e065eb4
2022-01-14 08:16:33 +01:00
Translation updater bot d1ff96671a Localisation updates from https://translatewiki.net.
Change-Id: I2f30f38f8002a4c12c78ec758cc2564223b5df18
2022-01-13 08:27:10 +01:00
Translation updater bot bf07dc2736 Localisation updates from https://translatewiki.net.
Change-Id: Ie4b51a6b3eb3c2d53967de65fd7843f3e3ed338e
2022-01-12 08:25:16 +01:00
Arlo Breault 8a797fd625 s/linter-pager-title/linter-pager-title-header/
Change-Id: I51e4ffa89954b0b6bf798562668dc4a95c00d9da
2022-01-11 23:24:52 +00:00
Arlo Breault ace2d5c17d s/linter-pager-template/linter-pager-template-header/
Change-Id: I658b258fe46bdeefbfc0b1d348e4ac4d9c423205
2022-01-11 12:41:56 -05:00
Arlo Breault 850ec4fa70 Add i18n for pager category
Follow up to I70fde2676ded6a112f7f2b07f94f6f4b616f0e39

Change-Id: I38647833938fb27793827649bc5c785dc3fd63ea
2022-01-11 12:21:19 -05:00
Translation updater bot 7e9a4ecf04 Localisation updates from https://translatewiki.net.
Change-Id: I5caaa0e28712a914fbd0cb5a9758c3998413422f
2022-01-11 08:23:17 +01:00
Arlo Breault fc8c39baa5 Fix lint error updating
The article id of the title is set to 0 when the page is deleted so,
although the lint job from the hook runs, it doesn't remove anything.

Reverts most of I06b821b65f65609ddac8ed4e7c662336082d8266

Bug: T298782
Bug: T170313
Change-Id: I2610b9b16d4032b0e18b3537cc9ed51bfdaff299
2022-01-10 16:24:00 -05:00
Arlo Breault 2218e87c05 Move outputting headers back to the top
Change-Id: I175d69c990de032686033ef909eec0b1865e795f
2022-01-10 15:21:20 -05:00
Arlo Breault f821fa7f47 Add a title for single page view
Follow up to I70fde2676ded6a112f7f2b07f94f6f4b616f0e39

Bug: T151362
Change-Id: I21b8b9085f13480075e0b572f38ec9a05a398f01
2022-01-10 15:16:04 -05:00
sbailey 31bc33b578 All lint errors for a single page was missing error detail label
Bug: T151362
Change-Id: I4eabb53cd133ee46e986a0d81a7002a286dfc0c4
2022-01-10 13:07:31 -06:00
Translation updater bot 52102445ba Localisation updates from https://translatewiki.net.
Change-Id: I7b089d4f31439bd4548bf931320a1c2c000b0368
2022-01-10 08:11:33 +01:00
jenkins-bot 0708f9e887 Merge "Linter: Display lint errors for a single page" 2022-01-07 21:13:05 +00:00
sbailey 88aab3cd1e Linter: Display lint errors for a single page
* Added error message when namespace and/or pagename is not
  found or malformed which now displays a bold red message.

Bug: T151362
Change-Id: I70fde2676ded6a112f7f2b07f94f6f4b616f0e39
2022-01-07 12:45:55 -08:00
Translation updater bot 47b6c866cc Localisation updates from https://translatewiki.net.
Change-Id: I51ffb0edb3d16413109a401b2415f480e86f0737
2022-01-06 08:31:48 +01:00
Alexander Vorwerk af53fbc23a Replace usages of deprecated wfWikiID()
The global function wfWikiID() is deprecated since 1.35 and it's usages
should be replaced with WikiMap::getCurrentWikiId().

Bug: T298059
Change-Id: I695c20bff266f869f740baf7f3e335b357546fb4
2021-12-21 01:54:47 +00:00
Translation updater bot 210db202be Localisation updates from https://translatewiki.net.
Change-Id: I02cf1d1a3b726cd4d8c1feda065851d54a4446d4
2021-12-20 08:21:23 +01:00
jenkins-bot 6835094091 Merge "Avoid using WikiPage::factory()" 2021-12-18 15:52:30 +00:00
Translation updater bot a49695649a Localisation updates from https://translatewiki.net.
Change-Id: Ifd87779ec353fbd3cd217171089818dd2d70d73a
2021-12-17 08:17:14 +01:00
Alexander Vorwerk 9a1ce6e392 Avoid using WikiPage::factory()
WikiPage::factory() is deprecated since 1.36 and should be replaced
with WikiPageFactory::newFromTitle().

Bug: T297688
Change-Id: I63bf3ba1c2ad6f8b59d369d91777af0418746a6b
2021-12-16 23:00:32 +00:00
Translation updater bot b33485da62 Localisation updates from https://translatewiki.net.
Change-Id: I1b8b893816aaa49d5aa1e13d2b3616bf343e55e5
2021-12-16 08:29:42 +01:00
Arlo Breault e8a1b8218c Add linter category for "inline-media-caption"
Bug: T297443
Depends-On: I4cdbfe46bce7556d2187a5f1c908b3538d1185fb
Change-Id: I83d51c40b3c4c1f3e5de327aba6f05e65d9814c7
2021-12-15 17:27:52 -05:00
Arlo Breault 2fa7a30f14 Remove hardcoded list of categories with no parameters
Change-Id: Ic8b9ced613c873cada0a9909ed0d3799160504a1
2021-12-15 17:27:36 -05:00
Arlo Breault 518a7597b6 Fix plural in redirect
Help:Extension:Linter/unclosed-quote-in-heading&redirect=no
redirects to
Help:Lint_errors/unclosed-quotes-in-heading

Follow up to I814fa43104cca4f81397b6b73cb990ca12663cde

Change-Id: I1b8003801b8f867d4988a52be012b26012611d3b
2021-12-13 19:02:23 -05:00
Arlo Breault 142a9a2f97 s/mw:Help:Extension:Linter/mw:Help:Lint errors/
These seem to be redirected now.

Change-Id: I814fa43104cca4f81397b6b73cb990ca12663cde
2021-12-13 19:02:00 -05:00
Translation updater bot bdba7ecaca Localisation updates from https://translatewiki.net.
Change-Id: Ie29fc8645df24f20150c282985f1296a29931613
2021-12-13 08:21:44 +01:00
Translation updater bot 1203a59348 Localisation updates from https://translatewiki.net.
Change-Id: I4dbabcd0363bc4bc9ccf0a8b4efa2dd316560efc
2021-12-06 08:19:29 +01:00
Translation updater bot df530e0178 Localisation updates from https://translatewiki.net.
Change-Id: I44204d4763c1cecf05b4fdd22cb234286f7cd714
2021-11-24 08:22:04 +01:00
Translation updater bot 2a8ad950c1 Localisation updates from https://translatewiki.net.
Change-Id: If227e44ef2e8b420619ba3d9405f00c682dead8a
2021-11-15 08:11:57 +01:00
Translation updater bot 08a8d5dbc0 Localisation updates from https://translatewiki.net.
Change-Id: Ib926766a57e84d6874e215fc748376bbbc5c9952
2021-11-11 10:02:36 +01:00
Translation updater bot a3d3937dfa Localisation updates from https://translatewiki.net.
Change-Id: I0666bfd84ef57c7e037cc6b59622feb827aa8ea1
2021-11-03 08:20:49 +01:00
Translation updater bot dca45d377e Localisation updates from https://translatewiki.net.
Change-Id: I3a76013d0e9e4143e3c5f59a3767e7ec148ed420
2021-11-02 08:07:08 +01:00
Translation updater bot 7e6b8ddbb2 Localisation updates from https://translatewiki.net.
Change-Id: I2a99bc20ceecc2241a2fd37f211a836217d9aad6
2021-11-01 09:34:02 +01:00
Translation updater bot a7c08e25a6 Localisation updates from https://translatewiki.net.
Change-Id: I9cfc4250097683cd65fe685280f2527b8da082d4
2021-10-28 08:28:14 +02:00
Translation updater bot d8c27f9919 Localisation updates from https://translatewiki.net.
Change-Id: I2bdc61c34a70e129ec54022f21d898b1ea47dc66
2021-10-25 08:51:48 +02:00
libraryupgrader 47581077d5 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: Iaf519bda916cc0b08d3a526b9273ca16321b4f29
2021-10-24 07:07:54 +00:00
Translation updater bot 97413fa1a6 Localisation updates from https://translatewiki.net.
Change-Id: I847c702190fedcd0ac4736fcd9b85ef13af5a0ae
2021-10-18 15:20:35 +02:00
Alexander Vorwerk 2b3ca01871 MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: I2e76733232bad0201a4e1e97617f5f7c1cf97235
2021-10-12 21:52:50 +02:00
libraryupgrader a8e2b7c6fa build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/5197 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I12d40efee5137cbe369e6ebe6df73b76f948dd46
2021-10-05 02:02:51 +00:00
Translation updater bot c37e4e6b3d Localisation updates from https://translatewiki.net.
Change-Id: I2fb05981ed849208eb1086028d6c68df17328454
2021-10-04 08:56:06 +02:00
Translation updater bot 9551baf9ee Localisation updates from https://translatewiki.net.
Change-Id: Ib423ee5c3c7440acdb0d0474766be6dd24b55d7f
2021-09-27 08:35:02 +02:00
Translation updater bot 998068d01a Localisation updates from https://translatewiki.net.
Change-Id: If5d1629db7519079572375ecbf9ef3e0eaeb2a19
2021-09-22 08:10:47 +02:00