Commit graph

1346 commits

Author SHA1 Message Date
jenkins-bot 6899bf5f67 Merge "build: Update MediaWiki requirement to 1.43" 2024-08-24 12:40:17 +00:00
libraryupgrader 00dd4326eb build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I1c05371ca09a8be9bc58e68acd70acc3e64b3502
2024-08-24 06:21:55 +00:00
James D. Forrester 95686b4e7d build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I098a7fd0e99412cffa22bc55bde960d6c2a3af35
2024-08-22 17:37:43 -04:00
Translation updater bot 6cac54d602
Localisation updates from https://translatewiki.net.
Change-Id: Ia3721a9f45ab4191446cbd6c9f36e6a5a9ffaaaa
2024-08-19 09:23:51 +02:00
Translation updater bot 33e3e77d7a
Localisation updates from https://translatewiki.net.
Change-Id: I155afb852610ff92e79e157d83edc5d2160cecfa
2024-08-16 09:28:36 +02:00
Translation updater bot f016bc7be0
Localisation updates from https://translatewiki.net.
Change-Id: I1603eb46cf69919e3efd80e1d000fd85ea129d62
2024-08-15 09:20:41 +02:00
Translation updater bot a9a6ea91e5
Localisation updates from https://translatewiki.net.
Change-Id: I2f2a31b75cff8f55692102759a52ed75e844f659
2024-08-13 09:51:19 +02:00
Bartosz Dziewoński 539946a92a Remove some redundant checks
$sleep must already be an integer (due to type hints).

Change-Id: I468ea23cafd2706bdeb23676d8aab85daa09a599
2024-08-12 23:04:28 +02:00
libraryupgrader f8909a36da build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: I8543f3046580666401e872c2abfaf0df1c99563f
2024-08-11 19:33:50 +00:00
Translation updater bot a775405867
Localisation updates from https://translatewiki.net.
Change-Id: I5e0a5d7e98b864d21672dbace4ab1e204827252a
2024-08-09 09:35:33 +02:00
Translation updater bot 703c99e0ad
Localisation updates from https://translatewiki.net.
Change-Id: I3e43989a2a38ec3fcb5d32a68163f5232f5eb8f4
2024-08-07 09:24:17 +02:00
Translation updater bot bafb624625
Localisation updates from https://translatewiki.net.
Change-Id: Ife20442a63acd8edbf76571072c659d2e6022060
2024-08-06 09:47:34 +02:00
Translation updater bot dd74796af4
Localisation updates from https://translatewiki.net.
Change-Id: Ica50be6711c801c3e004c4d41001b6b566877217
2024-08-05 09:25:17 +02:00
Translation updater bot 8368180604
Localisation updates from https://translatewiki.net.
Change-Id: I133c4e5e7445cb7099d161b171346866a8a463d1
2024-08-01 09:18:37 +02:00
Translation updater bot 2fa9d04cea
Localisation updates from https://translatewiki.net.
Change-Id: I9f6b6f8afc5d4e3a0dfae16dc7cafa408517b119
2024-07-31 09:22:58 +02:00
Arlo Breault 7847bbde58 Add a hyphen to rendering-transparent
Change-Id: Ifacd67304c429dae0bb4a552314dcbc4fd175a84
2024-07-29 17:38:30 -04:00
Translation updater bot cd2a2bdd09
Localisation updates from https://translatewiki.net.
Change-Id: I79f249322206c10476720f0036f38a7f2f5cd2e7
2024-07-29 09:27:30 +02:00
jenkins-bot 9f089f122b Merge "Add a "fostered-transparent" lint category" 2024-07-27 00:36:19 +00:00
Arlo Breault fe6612e6ea Add a "fostered-transparent" lint category
Historically, Parsoid would suppress emitting lints for fostered content
that was purely rendering transparent since it's common to put include
directives, categories, etc in fosterable position and it made no
difference to rendering.

However, clients like DiscussionTools can benefit from this knowledge,
especially outside of templated content where it could result in edit
corruptions.

A separate category is used to avoid disrupting the work of editors
cleaning up lints in the "fostered" category, as in T369317.

Bug: T371142
Bug: T290936
Bug: T369317
Change-Id: I3519d86898df262eaea1a3303130453497ff27aa
2024-07-26 16:41:59 -04:00
jenkins-bot f35e29b6ea Merge "Drop disabled lints" 2024-07-26 20:25:43 +00:00
Translation updater bot c41c96c243
Localisation updates from https://translatewiki.net.
Change-Id: I63fb990bc1b795a7c000431624598967fca90c47
2024-07-26 09:45:31 +02:00
Arlo Breault ed8e449e13 Drop disabled lints
Covered by RecordLintJobTest::testDropInlineMediaCaptionLints

Change-Id: I564389ec9bd20cf36ec7a9bf96b1aebf7777cbbc
2024-07-25 11:29:36 -04:00
Translation updater bot 648b48f283
Localisation updates from https://translatewiki.net.
Change-Id: I416db756563467769f18e5da25ecb9da0be0692b
2024-07-25 09:19:26 +02:00
Translation updater bot cb7e062472
Localisation updates from https://translatewiki.net.
Change-Id: I9060fe5ac489a32a8c1c32c9659e3403f6680a98
2024-07-24 09:23:11 +02:00
Translation updater bot 0071a8d5c7
Localisation updates from https://translatewiki.net.
Change-Id: I57ac7c6d74a572b2a1474162c2eb7fcd40c79f9a
2024-07-23 09:46:00 +02:00
Amir Sarabadani 388106b0a4 Stop storing missing-image-alt-text lints
Bug: T370304
Change-Id: Ib473ddcc09c6c02e450a8664d21acbddaa7b2505
2024-07-22 02:59:21 +02:00
Brooke Vibber 8ec69f87aa Disable missing-image-alt-text lint
It's not actively used at this time and it's causing a lot of writes,
affecting production. Disabling it should be harmless and reduce load.

Bug: T370304
Change-Id: I2170f657088993dd3fb81a9601284d3af7fc1883
2024-07-21 21:56:38 +00:00
jenkins-bot 08fbe80da9 Merge "Fix the Linter category subpage search when namespace field is blank" 2024-07-19 06:50:34 +00:00
Arlo Breault 489fe5a912 Revert changes in log levels
I015fbe2ab613619c8805d12bfd397cc08450ef24 falsely assumed these were
ending up in logstash already but, unless explicitly asked, logstash
doesn't go below "info", regardless of the channel's level.

Change-Id: I55884a2535e839ca92d5d679cc4dc7911050f298
2024-07-11 18:59:58 -04:00
sbailey 85ea579c97 Fix the Linter category subpage search when namespace field is blank
* When the user does not specify any namespace in a category
  subpage search it should return all namespaces. This duplicates
  the behavior for when the category is first selected from the
  main Linter page.

Bug: T361081
Change-Id: Iccb195bf1b679e6e0165e4b1dde6e8d84db4d5b0
2024-07-10 09:22:31 -07:00
Translation updater bot 186c54d1dc
Localisation updates from https://translatewiki.net.
Change-Id: I171b0db7842612f9fcf5c42e700660a3534a6009
2024-07-09 09:44:09 +02:00
Arlo Breault 054abb7915 Change some log levels to debug so logs can be suppressed from Logstash
Failing to inject is redundant with EventBus logs.

Change-Id: I015fbe2ab613619c8805d12bfd397cc08450ef24
2024-07-02 20:13:08 -04:00
Translation updater bot a10aa973af
Localisation updates from https://translatewiki.net.
Change-Id: Ifab3aa08741b1b1be6646fd19239a669b578734c
2024-07-01 09:25:38 +02:00
Jon Robson 8677ca3b3a Make night-mode-unaware-background-color lint rule visible
Bug: T368673
Change-Id: I987ee169e062054adaa86c82057c50cf7f0d87e4
2024-06-27 14:13:47 -07:00
libraryupgrader 945663e6fa build: Updating eslint-config-wikimedia to 0.28.2
Change-Id: Iacbb8ce79df74865efc62d7aefbe3e2e8be7ad10
2024-06-22 07:16:08 +00:00
Translation updater bot 8fb0c1924f
Localisation updates from https://translatewiki.net.
Change-Id: I1de14ea18b1199f6905b77b9e0455a75e21bbefa
2024-06-17 09:31:37 +02:00
sbailey 0dfaa5523e Remove linter tag and template dual mode config and code
* Removed the write and user interface config variables and
  fixed the tests affected by their removal.

Bug: T331883
Change-Id: If44ceedae7278f498158b8cdd528dfa32be609eb
2024-06-14 15:40:47 -04:00
sbailey 72653441b2 Remove linter namespace field dual mode config and code
* Manual tests completed and query code reviewed

Bug: T331883
Change-Id: Ie1628799bb40ad74a24ab57a27a4176c2364fb82
2024-06-14 09:29:07 -07:00
Translation updater bot 4364a1f13f
Localisation updates from https://translatewiki.net.
Change-Id: I3eebff3bc14a08137563108668e4c784a19887a6
2024-06-13 09:28:32 +02:00
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