Commit graph

1257 commits

Author SHA1 Message Date
libraryupgrader 3213f7194a build: Updating braces to 3.0.3
* https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: I9f05be757a589e0ee516f4198b2128175eed4032
2024-06-11 20:40:25 +00:00
Translation updater bot 8966b15b3b Localisation updates from https://translatewiki.net.
Change-Id: I53b91190f5e366ecc633a4028789cfb11ab3d694
2024-06-10 09:55:39 +02:00
Umherirrender 2f18de6366 Use namespaced classes
Changes to the use statements done automatically via script

Change-Id: I1ff7952946b8795b443f97896d557bbbb5ebe2dc
2024-06-09 18:38:49 +02:00
libraryupgrader 356bcd27e1 build: Updating eslint-config-wikimedia to 0.28.0
Change-Id: I2feab6eba6d5508c793a03b52ac185f574f659f0
2024-06-08 09:01:17 +00:00
Translation updater bot 3e5449fd8e Localisation updates from https://translatewiki.net.
Change-Id: I6c3110b8c416e7edf0a01ed7e00d766aa6490098
2024-06-07 09:45:20 +02:00
jenkins-bot 10a9c5be5a Merge "Trigger Parsoid run when page metadata is being updated" 2024-06-04 16:31:06 +00:00
daniel 8b22ad5d78 Trigger Parsoid run when page metadata is being updated
When RESTBase is turned off, Parsoid runs will no longer be triggered
on template changes. This creates a new mechanism to do that, based on
the RevisionDataUpdates hook called by DerivedPageDataUpdater. The new
behavior is controlled by a feature flag, LinterParseOnDerivedDataUpdate,
which is enabled per default. In WMF production, this should be
turned off as long as we are still triggering Parsoid parses through
the pregeneration mechanism in RESTBase.

Note that this will not write ParserOutput to the ParserCache. On edits,
pages will get parsed with Parsoid twice, once to trigger the lint data
update, and once by ParsoidCachePrewarmJob to populate the ParserCache.
Both parses will trigger the ParserLogLinterData hook, the lint data
from the second parse is redundant.

However, while ParsoidCachePrewarmJob and RevisionDataUpdates get
triggered together on edits, they also get triggered separately:
ParsoidCachePrewarmJob by page views with parser cache misses; and
RevisionDataUpdates when pages get invalidated due to template changes.

Because ParsoidCachePrewarmJob and RevisionDataUpdates generally get
triggered in different situations, it seems cleaner to keep the two
mechanisms independent of each other, and live with the duplicate parse
on edit.

Bug: T361013
Change-Id: If53841ee583ce240dd245d640b9ea9c97e1eaa55
2024-06-03 16:50:17 -05:00
jenkins-bot 5024792f03 Merge "Catch jobqueue errors when recording a lint job" 2024-06-03 18:10:48 +00:00
Arlo Breault b6ad29e86b Catch jobqueue errors when recording a lint job
Since linting is currently tied up with read views, don't let a failure
to enqueue block a parse.

Bug: T364229
Change-Id: I9e8391d9f193aef72ca13ccda8ff6ab58ffc34da
2024-06-03 13:31:40 -04:00
Translation updater bot a810725277 Localisation updates from https://translatewiki.net.
Change-Id: I211f361f401fa209b8947de63d43634dede74609
2024-06-03 09:32:07 +02:00
Translation updater bot 141114445a Localisation updates from https://translatewiki.net.
Change-Id: Ie02e5473b5fb4414fc9e6938228e825b48ace1c5
2024-05-31 09:56:56 +02:00
Brooke Vibber ea186c1cee Add hidden lint missing-image-alt-text
Add support for new parsoid lint, missing-image-alt-text
Matches on images that don't have an alt text attribute at all
(empty alt attributes count as present).

Intended to make it easier to put workflows around these images,
including streamlined workflows for "microcontributions" in the
mobile apps.

As this has some impedence mismatch with usage of Special:LintErrors
this is marked as hidden (priority=none) so will not be displayed by
default, but has an enum value reserved for it and can be queried
explicitly.

Bug: T344378
Change-Id: I38cc1abbece3cca8155bec1f071b854027be0966
2024-05-29 19:03:41 -04:00
Translation updater bot 4359c755c6 Localisation updates from https://translatewiki.net.
Change-Id: Idf4d1d7b613433ebc67934a7c86b01a3e83ad6fc
2024-05-24 09:43:52 +02:00
jenkins-bot cdd68ce599 Merge "Logging: add debug messages in Hooks and RecordLintJob" 2024-05-22 20:40:14 +00:00
daniel 6c07b92097 Logging: add debug messages in Hooks and RecordLintJob
Additional debug logging allows us to verify the upcoming changes
in If53841ee583ce in production.

Bug: T361013
Change-Id: I261aacc1c9fa6483d88e94424d1f77d861f1a990
2024-05-22 21:06:50 +02:00
libraryupgrader e3e292f4fc build: Updating grunt-banana-checker to 0.13.0
Change-Id: Iefeb17fefc0a7c68783d7760007cc02c6121d959
2024-05-18 15:49:49 +00:00
Translation updater bot be46082000 Localisation updates from https://translatewiki.net.
Change-Id: I0a780237579fef48f91643f03d01ea6dea73602d
2024-05-16 09:26:46 +02:00
Translation updater bot 9b14e80dd7 Localisation updates from https://translatewiki.net.
Change-Id: I6261cf79056cc825d504c5baeefa1092b99223f0
2024-05-15 09:21:48 +02:00
Translation updater bot 54f60381e9 Localisation updates from https://translatewiki.net.
Change-Id: Ibe49aa7c5d5ab7d7f509ec13096738449f6d471a
2024-05-14 09:26:37 +02:00
Translation updater bot 38f4eb62fa Localisation updates from https://translatewiki.net.
Change-Id: Iaa2b29db0f64d691924535b2dc9129757d05240a
2024-05-13 09:27:25 +02:00
libraryupgrader 88e2b37d55 build: Updating grunt-banana-checker to 0.12.0
Change-Id: I0cb986cf9aea1a34356610c73d88e51c5fb4b2d7
2024-05-10 14:56:30 +00:00
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