Commit graph

1286 commits

Author SHA1 Message Date
libraryupgrader eee3e239f5 build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I01aa8f4362d2b062285b40d9d80419910f663dfc
2024-05-05 21:54:02 +00:00
Arlo Breault 96d3f6814c Fix regression clearing lints on page deletion
This had previously been fixed in
I2610b9b16d4032b0e18b3537cc9ed51bfdaff299 but a poor refactoring in
Ib3d3622144b670ebe1a4ce04e6db6811584d42c8 reintroduced it.

Bug: T363682
Change-Id: I378e802753c4284e7c5ec65148b43e0b41784cf3
2024-05-04 14:53:17 +03:00
Translation updater bot 4f6729d1a0 Localisation updates from https://translatewiki.net.
Change-Id: I9c4c48d3886ea5acd9026608530b441737cbeb28
2024-05-02 09:19:47 +02:00
Translation updater bot 484fec6893 Localisation updates from https://translatewiki.net.
Change-Id: I62e691d1e4106e96bdbed4b167bca703dd536327
2024-05-01 09:22:22 +02:00
Translation updater bot b505a09da0 Localisation updates from https://translatewiki.net.
Change-Id: Ia6b98fd8c70f52701c2f8abae6d49df20432d012
2024-04-29 09:23:34 +02:00
anterdc99 dd04374336
Linter: Add special page aliases for Chinese variants
Change-Id: Idb78f2d0c930ee2fc52fc13de164f7230c7cb819
2024-04-28 14:27:50 +08:00
jenkins-bot 714a58dace Merge "Suppress hidden categories from subpage prefix searches" 2024-04-25 17:09:59 +00:00
jenkins-bot b643225eb6 Merge "Omit lints in hidden categories from search results" 2024-04-24 16:48:42 +00:00
Translation updater bot d800720830 Localisation updates from https://translatewiki.net.
Change-Id: Iaff6c7f8e1e4dbe1fecb6791852784198947ba74
2024-04-24 09:18:56 +02:00
Translation updater bot 405c3bae0d Localisation updates from https://translatewiki.net.
Change-Id: I79fefcaa239a073e47a613fec1c2b4870877976d
2024-04-22 09:28:44 +02:00
libraryupgrader f1726e0e5f build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I235d73f816d6f989bd04156b8349347a86c4d18c
2024-04-19 22:52:42 +00:00
Arlo Breault 68dd2651bf Suppress hidden categories from subpage prefix searches
ie. When you type "Special:LintErrors/" in the search box.

Bug: T334527
Change-Id: I0bb478086d22b65ce8c5ad48db7f522ac974d95d
2024-04-18 20:23:37 -04:00
Arlo Breault 22c1bfb865 Omit lints in hidden categories from search results
Presumably it would be better if category priorities lived in their own
table so that we could do a join rather than an ever growing where in
clause.  That would help Quarry users as well.

Bug: T334527
Change-Id: Ibd535a54565f6f474346c44ad7597fa0532faf6c
2024-04-18 20:23:32 -04:00
Translation updater bot 90b8ab0bb0 Localisation updates from https://translatewiki.net.
Change-Id: I95d3e56a87c79cca50a0cd4391361eb81bc2fb0c
2024-04-18 09:20:51 +02:00
Translation updater bot bcc482fd49 Localisation updates from https://translatewiki.net.
Change-Id: I209ee88c171e3aababe0e11c4aa2cb4d3de0166f
2024-04-17 09:28:21 +02:00
Translation updater bot 04ed6f0ecc Localisation updates from https://translatewiki.net.
Change-Id: I3a6b22a1839116e4436c5a843fe8c841234e247b
2024-04-12 09:42:26 +02:00
Arlo Breault 261339c2a3 Inject Database into TotalsLookup
Change-Id: I01e6b89b4ce9b1cea241bba9cad7ef6673803166
2024-04-11 12:24:42 -04:00
Arlo Breault ffc266eae6 Drop DatabaseFactory, just have Database as the service
Change-Id: Id25271c82bc7ba833d32dff3fb11d3dfe15a3f02
2024-04-10 21:21:40 -04:00
Arlo Breault c04b075858 Stop constructing Database with a page id
Instead, pass the page id when using methods for a page.  The change
avoids constructing Database a dummy page id when those methods aren't
going to be used.

getFromId doesn't seem like it needs a page id, since the linter id is
the primary key.

Also, a namespace id should no longer optional to setForPage.  The
LinterWriteNamespaceColumnStage option already gates whether to include
it in the row.

Follows-Up: I9fd6e7724dcf33be0b1feb19ec8eb448738cab09
Change-Id: Ib3d3622144b670ebe1a4ce04e6db6811584d42c8
2024-04-10 21:07:08 -04:00
jenkins-bot 4ce57f6479 Merge "Construct services with ServiceOptions" 2024-04-10 17:02:04 +00:00
Arlo Breault 1c53684200 Construct services with ServiceOptions
And addresses some other cleanup from review comments.

Follows-Up: I9fd6e7724dcf33be0b1feb19ec8eb448738cab09
Change-Id: If87b0bf91930f0f8d89ed046d18aadb8f346f9aa
2024-04-10 12:34:05 -04:00
Translation updater bot 2a2b2bbc30 Localisation updates from https://translatewiki.net.
Change-Id: Ie145351174a5316267f63c470696b5c9d07ce8b6
2024-04-10 09:21:05 +02:00
C. Scott Ananian 4f991b5d0c [DI] Clean up LintErrorsPager
Inject the services required by LintErrorsPager from the SpecialLintErrors
class.

Change-Id: Ie20e00cccef895fbad8536a94dfc1978f20c4220
2024-04-09 18:35:34 -04:00
C. Scott Ananian 633d6024a4 [DI] Make TotalsLookup an injectable service
Change-Id: I71d41ca5b0a901afd59950b3539d8e19c4cead5f
2024-04-09 18:35:32 -04:00
C. Scott Ananian 24f771a6a3 [DI] Make CategoryManager and Database injectable services
Change-Id: I9fd6e7724dcf33be0b1feb19ec8eb448738cab09
2024-04-09 18:33:13 -04:00
Translation updater bot df0f26bbd9 Localisation updates from https://translatewiki.net.
Change-Id: I73aa11386fc4ba53f43180621291fedac0f3f3c0
2024-04-09 09:27:03 +02:00
Translation updater bot 9d94d8b828 Localisation updates from https://translatewiki.net.
Change-Id: I0d99333c02911932d1093641d1ceabfa9d754aa7
2024-04-08 09:26:12 +02:00
jenkins-bot 2d46c8195c Merge "[DI] Use dependency injection for RecordLintJob" 2024-04-05 19:20:41 +00:00
jenkins-bot 94ef8d8ea4 Merge "night-mode-unaware-background-color doesn't emit params" 2024-04-05 15:21:22 +00:00
C. Scott Ananian fde916fff5 [DI] Use dependency injection for RecordLintJob
Change-Id: I3b8cd95e075af92c77a7dec4f12a0a81eab3ae4b
2024-04-04 21:42:10 -04:00
jenkins-bot d3dc804ac9 Merge "[DI] Use dependency injection for Hooks" 2024-04-05 01:08:18 +00:00
jenkins-bot 0868dd1e83 Merge "[DI] Use dependency injection for ApiQueryLinterStats" 2024-04-05 00:40:45 +00:00
jenkins-bot 2aeaa71da0 Merge "[DI] Use dependency injection for SpecialLintErrors" 2024-04-05 00:14:25 +00:00
C. Scott Ananian c983a822e3 [DI] Use dependency injection for Hooks
Change-Id: I23f56b0a3df1ef206ec160453294349d2482435f
2024-04-04 18:43:13 -04:00
C. Scott Ananian d71a297781 [DI] Use dependency injection for ApiQueryLinterStats
Change-Id: I5f5d3a226a9f7b733a6f07200216a1192115b102
2024-04-04 18:43:13 -04:00
C. Scott Ananian d8970278d1 [DI] Use dependency injection for SpecialLintErrors
Change-Id: I211d70d5fb4a321cf302cc10f6e160480468a347
2024-04-04 18:43:10 -04:00
Arlo Breault 0a5700fa39 night-mode-unaware-background-color doesn't emit params
Change-Id: Id65e19266cfc7de095ee621fe28c35639a9f73b1
2024-04-04 18:22:46 -04:00
jenkins-bot 8ac1565567 Merge "Stop exposing hidden categories in siteinfo" 2024-04-04 21:46:46 +00:00
jenkins-bot 4b30cc8a31 Merge "Move Database::updateStats to TotalsLookup" 2024-04-04 21:46:45 +00:00
jenkins-bot 478e13c436 Merge "Don't include hidden category counts in page info" 2024-04-04 21:08:40 +00:00
Arlo Breault 6304fc5e08 Stop exposing hidden categories in siteinfo
Suppresses them from ?action=query&meta=siteinfo

Bug: T334527
Change-Id: I325e78e438a8385948071d2b4ba8a8c4407d5fc4
2024-04-04 16:04:39 -04:00
Translation updater bot c9ccb3e405 Localisation updates from https://translatewiki.net.
Change-Id: Id9d7d114fc78c35e24308634e43c043bdc09af4c
2024-04-04 09:38:35 +02:00
Translation updater bot 53ee927874 Localisation updates from https://translatewiki.net.
Change-Id: I308ef5263aefb053ccdb9f881a3fc9d73457ce80
2024-04-03 09:23:57 +02:00
Arlo Breault 8d49b68ba5 Move Database::updateStats to TotalsLookup
Database::updateStats moved to Database from RecordLintJob in
I2610b9b16d4032b0e18b3537cc9ed51bfdaff299 for reuse in Hooks but seems
better placed on TotalsLookup.

Change-Id: I600853e5cfc9e8abae9c6b07cee4c2adc37ef464
2024-04-02 17:12:24 -04:00
Arlo Breault 397b36e8e3 Don't include hidden category counts in page info
Bug: T337275
Bug: T334527
Change-Id: I6439df894c06fc5592422e72dac04150591f4033
2024-04-02 15:12:19 -04:00
Translation updater bot 632d7095d8 Localisation updates from https://translatewiki.net.
Change-Id: I2921f5913add767066f7be55ac440df6312781e0
2024-04-02 09:21:39 +02:00
Arlo Breault d6514cfa3b Fix invisible categories in ApiQueryLintErrors
Invisible categories are permitted as categories, just not part of the
default set.  'invisible-categories' is removed, since it never worked.

Bug: T360064
Bug: T334527
Change-Id: Ie6b7a6d83349cbd2899e78bc18cc1629d710c6f0
2024-04-01 21:43:24 -04:00
jenkins-bot 77f1e1766d Merge "[i18n] Update missing linter-pager-*-details messages" 2024-04-01 21:46:56 +00:00
Umherirrender 91848725e7 Replace isset() with null check in HtmlTags
Found usage of isset() on expression self::$allowedHtmlTags that appears
to be always set. isset() should only be used to suppress errors. Check
whether the expression is null instead.
See https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#isset

Change-Id: I21483aab05292cfb802ff6a5e63013ecc02f5c13
2024-04-01 13:47:54 +02:00
Translation updater bot 2c9b5f0356 Localisation updates from https://translatewiki.net.
Change-Id: I1eed4e610ead78ee5b547edd9c7f464f8f9a8ecb
2024-04-01 09:22:50 +02:00