Commit graph

1173 commits

Author SHA1 Message Date
sbailey ffcbb3af84 Add title interactive lookup to category based linter error search
* Just one of two or more patches enhancing linter error searching

Bug: T185685
Change-Id: Ic103d1ece079f5689f24425b8b7e78e0fb00449e
2022-03-28 10:07:27 -07:00
Translation updater bot e01f362573 Localisation updates from https://translatewiki.net.
Change-Id: If9e3db1d22925ed0e8f35f82283f7c0080cf6ef4
2022-03-28 08:21:18 +02:00
Translation updater bot 694ff04ab7 Localisation updates from https://translatewiki.net.
Change-Id: I1bfaf3a72131f4cbec12632224f766d57b51795a
2022-03-24 08:34:44 +01:00
Translation updater bot 5f0a3074e4 Localisation updates from https://translatewiki.net.
Change-Id: I0cc08d1822e0c0aa6677eda6734da33605ac1218
2022-03-23 08:25:27 +01:00
Translation updater bot eb199939ac Localisation updates from https://translatewiki.net.
Change-Id: Ic60ded18b080832174c660a17a74ff12adcc7d52
2022-03-21 08:14:58 +01:00
Translation updater bot 10fd701c89 Localisation updates from https://translatewiki.net.
Change-Id: Id2684d0d0a8b5bad6e0945c71a9b3f4ea1f6dd81
2022-03-17 08:37:18 +01:00
jenkins-bot d772f211dd Merge "Use HTMLTitleTextField on SpecialLintErrors" 2022-03-16 20:52:40 +00:00
Translation updater bot 185b0eb6f2 Localisation updates from https://translatewiki.net.
Change-Id: I4bb4571ec84640f6c6d46fa1d1a2020c12b8b330
2022-03-16 08:07:49 +01:00
Translation updater bot 29d30595ed Localisation updates from https://translatewiki.net.
Change-Id: I735f3d8c3d95f069ce60a7be6eec9a468e63542e
2022-03-14 08:14:13 +01:00
sbailey 7309cc139c Linter allows specification of a page prefix to refine selection
* UI and functionality working, SQL injection risk is handled using
   the database wrapper function buildLike()

Bug: T185685
Change-Id: I1f630a83f01a1c93f29643e4fc8baf55391b758d
2022-03-10 08:48:19 -08:00
Translation updater bot b2452ef98f Localisation updates from https://translatewiki.net.
Change-Id: I12c52ebdd0b84eb4c9333e38c6bd417155fe8d42
2022-03-04 08:29:39 +01:00
Subramanya Sastry b08fd17186 Hooks.php: Check for non-array $tags
Bug: T302918
Change-Id: I96fdbbc443025d9461dc168e58164004a0f8d7ed
2022-03-02 15:40:05 -06:00
Translation updater bot 5b154ffb67 Localisation updates from https://translatewiki.net.
Change-Id: Ifd5e7ec3f19c1a6ecaa96b9d68dd094ec1ba738c
2022-03-02 09:37:06 +01:00
sbailey 6925519cb5 Delete lint errors when blank page saved while changing content type
* Add "mw-blank" as another tag value that erases all lint errors
   for a page as a blank page cannot have any lint errors.

Bug: T280193
Change-Id: Iaad8ce75950588b2676de5dfb5f5221d64231f0e
2022-02-28 15:03:16 -08:00
Arlo Breault 285838961b Account for all lintable contentmodels after contentmodel change
Change-Id: I54495ec01d4fc3b29f1c924f86be3bcd2ed94977
2022-02-25 17:46:56 -05:00
jenkins-bot ee78f9ae8d Merge "Delete lint error records when content model changes from wikitext" 2022-02-25 22:15:05 +00:00
sbailey 0e56c22277 Delete lint error records when content model changes from wikitext
* Determines if new content type is not wikitext and if so
   deletes all existing lint error records for that pageID.

Bug: T298343
Change-Id: I20fac9a0c901f3e7a5cc898566a4487fbe70798f
2022-02-25 13:22:10 -08:00
Translation updater bot f7fc3e051e Localisation updates from https://translatewiki.net.
Change-Id: I3bb4ec67f32754cfc4f00113ec69e5dc0524b892
2022-02-25 09:44:19 +01:00
Translation updater bot 7a50cce178 Localisation updates from https://translatewiki.net.
Change-Id: I3d20ce825a827094728782c4fd08b992a851cbf3
2022-02-24 08:49:28 +01:00
Translation updater bot b486fdc4cd Localisation updates from https://translatewiki.net.
Change-Id: Ie73592ef6f3f9f0e1787de24e5b78e537266bd33
2022-02-21 08:16:05 +01:00
Translation updater bot e46f7d8f78 Localisation updates from https://translatewiki.net.
Change-Id: I9ffb39e4e97825daa0506ebe46ce90b105002d9e
2022-02-17 08:11:57 +01:00
Umherirrender ba6b0db292 Use HTMLTitleTextField on SpecialLintErrors
This gives autocomplete on the special page

Change-Id: Ic29cf4c16886609c6689c66aff6ebc28a20879ea
2022-02-16 18:19:12 +00:00
jenkins-bot 4d32d7c32c Merge "SpecialLintErrors: Make code more resilient to bad input" 2022-02-15 23:54:31 +00:00
Ammarpad daa6275a20 SpecialLintErrors: Make code more resilient to bad input
Use WebRequest::getText, which discards array values since
the `pagename` param requires string value.

Bug: T301360
Change-Id: Ifc23a7020e410603ac86b71d7aee2d28f06b9ab2
2022-02-15 18:49:40 -05:00
Translation updater bot 3f916990aa Localisation updates from https://translatewiki.net.
Change-Id: I5ee4092b8b6c7cf59ffb48ba423997a9f2961503
2022-02-14 08:14:37 +01:00
Translation updater bot 1ab3e6f0bc Localisation updates from https://translatewiki.net.
Change-Id: I6096b7d71b3a687cf156e4d4e60bdc2c4afbb5e0
2022-02-10 08:41:47 +01:00
Translation updater bot 9977e760fd Localisation updates from https://translatewiki.net.
Change-Id: I9ac09a671c78540011f5a5c5d133dfd09e4135c6
2022-02-08 08:28:44 +01:00
Alexander Vorwerk 8c7fa34662 Fix typo in patch file
Bug: T175177
Follow-Up: Iac22d99109bb1253f450a64254f50677e3cdefeb
Change-Id: I0c1ad29b67a732faa06add8faff4f70988b8613b
2022-02-07 20:47:53 +00:00
sbailey 56567da56f First phase of T175177 database alter table adds two fields
* Adds template and tag name fields to enable better search
   capability to the Linter extension

Bug: T175177
Change-Id: Iac22d99109bb1253f450a64254f50677e3cdefeb
2022-02-03 14:57:17 -08:00
Translation updater bot ead506534f Localisation updates from https://translatewiki.net.
Change-Id: Ia7ad53e77fdca8b89bcffcfc35e2b30f7876b824
2022-02-03 08:44:16 +01:00
Translation updater bot fa2ee9c7ef Localisation updates from https://translatewiki.net.
Change-Id: I682b228cb3d510697e2186fcf6be44d733c9340c
2022-02-02 08:20:09 +01:00
Translation updater bot fdc6495b74 Localisation updates from https://translatewiki.net.
Change-Id: I7a46cf6fb5851bb845fcd1da5c7f751f0e312dcc
2022-01-31 08:22:14 +01:00
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