Commit graph

6467 commits

Author SHA1 Message Date
Translation updater bot 9b473dfafe Localisation updates from https://translatewiki.net.
Change-Id: I0a70841d2c76312bccfa08a82bd8343167588420
2021-11-22 09:01:41 +01:00
Translation updater bot d3aee7e069 Localisation updates from https://translatewiki.net.
Change-Id: I2b7f6eda9abc8b2623d45e1145782bfdcbcb5031
2021-11-19 08:25:53 +01:00
Translation updater bot 90195a6fca Localisation updates from https://translatewiki.net.
Change-Id: If5c853ae5a1ba74d247cb93458b3655220fa979f
2021-11-17 08:29:55 +01:00
Translation updater bot 5475070695 Localisation updates from https://translatewiki.net.
Change-Id: Ib9ba5dcc9b9c471a40878d4135b4747e3cbb751a
2021-11-16 08:15:40 +01:00
Translation updater bot 1c885863a0 Localisation updates from https://translatewiki.net.
Change-Id: Ie817e3bdc41de0ef51e34a6ebd6d6669a4b30501
2021-11-15 08:10:53 +01:00
Translation updater bot a6444d5d85 Localisation updates from https://translatewiki.net.
Change-Id: I53d1d9c5252d9de201629a20d1aeb6dc52db9a5f
2021-11-12 08:29:00 +01:00
Translation updater bot 060e892b16 Localisation updates from https://translatewiki.net.
Change-Id: I7c08d2b66308e0c3b9fae68d3f3aadb67c182f73
2021-11-11 10:01:36 +01:00
Translation updater bot f68fedfdaf Localisation updates from https://translatewiki.net.
Change-Id: I0fac154c46cb1ff29ecd430cba0ab97789eaeeba
2021-11-08 08:16:10 +01:00
Translation updater bot b7cfaecc6c Localisation updates from https://translatewiki.net.
Change-Id: If52a72c316e003d2481eb4b022a6b9f4bf73856e
2021-11-05 08:16:43 +01:00
Translation updater bot 0451d1302f Localisation updates from https://translatewiki.net.
Change-Id: I82da0688a3dc9499b322e768720842a2a7e47f18
2021-11-04 10:07:41 +01:00
libraryupgrader 8f11883da4 build: Updating npm dependencies
* grunt: 1.4.0 → 1.4.1
* validator: 13.6.0 → 13.7.0
  * https://npmjs.com/advisories/1004784 (CVE-2021-3765)

Change-Id: Ic6c6b7681945931975ddcd9a0debdd149ec6f33b
2021-11-04 07:09:33 +00:00
Translation updater bot b14296d33f Localisation updates from https://translatewiki.net.
Change-Id: I9647ba46f5c608baca77e6ea4247e14cdce39a05
2021-11-02 08:06:30 +01:00
Translation updater bot db24ba30ee Localisation updates from https://translatewiki.net.
Change-Id: I55a19617b2990a5e78a5fb2f7720a7eef17846ae
2021-11-01 09:32:36 +01:00
Translation updater bot f96d627beb Localisation updates from https://translatewiki.net.
Change-Id: If7a616542a2f90f52c17a27978f5a71986dddaec
2021-10-28 08:26:02 +02:00
Translation updater bot e5c3ad5fa4 Localisation updates from https://translatewiki.net.
Change-Id: I1b2db1eba1bc39715bba6dd4c380b8c3ff402798
2021-10-27 08:21:21 +02:00
Translation updater bot 538050c600 Localisation updates from https://translatewiki.net.
Change-Id: Icd8f9efe21dec78baccdfab32dd4ad0cdb3acbc6
2021-10-26 08:16:14 +02:00
Translation updater bot ffd2be90f9 Localisation updates from https://translatewiki.net.
Change-Id: Ic0e68b628a734a8162d64f2a362f47b8b01c2ff0
2021-10-25 08:50:01 +02:00
libraryupgrader 6e6ab163d0 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I799dbc5d901c6c10160a2cae4e4870b577b9366e
2021-10-23 18:32:35 +00:00
jenkins-bot 24b99a5fc4 Merge "Rename filter_timestamp index in a different file" 2021-10-22 12:00:34 +00:00
Translation updater bot 27953a6a6e Localisation updates from https://translatewiki.net.
Change-Id: Ib51eeeee2270e760f2124e4b17ffce210b81b607
2021-10-22 08:14:22 +02:00
Translation updater bot ca58393d23 Localisation updates from https://translatewiki.net.
Change-Id: I31928502bcb1ddbbc2ee0e5081b519db918526b7
2021-10-21 08:21:00 +02:00
jenkins-bot 705635f464 Merge "Revert "Remove references to afl_filter"" 2021-10-20 18:47:23 +00:00
Daimona Eaytoy 5e95676e99 Rename filter_timestamp index in a different file
Otherwise there might be interferences with the remove-afl_filter patch.

Bug: T291725
Change-Id: If339663d491e1da4a118c13cd667d228365b4864
2021-10-20 15:22:04 +02:00
Daimona Eaytoy 04552f00db Revert "Remove references to afl_filter"
This reverts commit ce71c23bb0.

Reason for revert: Ewww, my bad. patch-remove-afl_filter looks for the new index name. This needs a different solution.

Change-Id: Ia72bb936cd414ee79d710eb9d91bb815d3e59a6c
2021-10-20 13:14:57 +00:00
Translation updater bot f0f6f41d04 Localisation updates from https://translatewiki.net.
Change-Id: I4ff263755397081d0821b16845bc9506193dddad
2021-10-20 08:35:49 +02:00
Translation updater bot cfca6824a1 Localisation updates from https://translatewiki.net.
Change-Id: If5db8aaef08eea40560532d8a43b349f9dc4c93b
2021-10-18 15:18:46 +02:00
Daimona Eaytoy ce71c23bb0 Remove references to afl_filter
Removed in 1.38 (Ic6b1c8a22d17a301faf32d2e23778d90c41c39de), so no need
to rename it (plus, the rename will fail if the index is not there).
Removing the index is taken care of by patch-remove-afl_filter.sql.

Bug: T291725
Change-Id: I32f116ce7ac0fdd25fe13f0665a5cf04766e6f27
2021-10-17 19:26:44 +02:00
Daimona Eaytoy f2e2f5ae48 Move renaming of the afl_wiki_timestamp index to its own file
Note that this doesn't have to be applied in WMF prod, since the indexes
are already correct there.

Bug: T291725
Change-Id: I7fcee0581f469e0d7ada43d1f30f31061c5bf5c0
2021-10-16 16:55:52 +00:00
jenkins-bot 13db4c34e5 Merge "MediaWikiTestCase -> MediaWikiIntegrationTestCase" 2021-10-12 02:16:38 +00:00
Alexander Vorwerk 7cc7cfa806 MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: I6e7c5a34ae49d56a8e7b5ac7d06fa9c0283bed5e
2021-10-11 23:32:14 +02:00
Translation updater bot 8c4524031b Localisation updates from https://translatewiki.net.
Change-Id: I059c932edec75149551bc7b417693885d18f2e3f
2021-10-07 09:02:12 +02:00
Translation updater bot 774c769c42 Localisation updates from https://translatewiki.net.
Change-Id: I818c3831ea59139e49b50eb847195eb7f92cb5a6
2021-10-05 08:28:51 +02:00
jenkins-bot 0e9066fc57 Merge "ace: Add support for multiline strings" 2021-10-04 14:07:25 +00:00
jenkins-bot 744d5fea6f Merge "Localisation updates from https://translatewiki.net." 2021-10-04 07:02:10 +00:00
Translation updater bot 7a66312227 Localisation updates from https://translatewiki.net.
Change-Id: I606bdc7dd32f892137bdbfb35f55fdb5fa421535
2021-10-04 08:54:54 +02:00
libraryupgrader a5e7f02218 build: Updating npm dependencies
* @wdio/mocha-framework: 7.4.6 → 7.13.2
  * https://npmjs.com/advisories/5197 (CVE-2021-3807)
* ansi-regex: 5.0.0 → 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: I853391c119b5f017040090afe620566d589a34c8
2021-10-04 06:42:04 +00:00
Daimona Eaytoy 1b41a61cf2 ace: Add support for multiline strings
In the AF language,
```
foo := "abc
   def"
```

declares a valid string with a linebreak inside. This wasn't previously
highlighted by ace, since normal rules are scanned line-by-line. The
code added here is essentially copied from the PHP highlighter [1],
whose rules should be almost the same as AF.

This new syntax also highlights escape sequences inside strings, e.g. in
"foo\\bar" see how the backslashes have a different color.

[1] - https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/php_highlight_rules.js#L1058

Change-Id: Idb51001af00ff2ef118741cd686dc1adf19aebee
2021-10-03 16:24:51 +00:00
jenkins-bot 0dae59616c Merge "Replace custom regex with TextContent::normalizeLineEndings()" 2021-10-01 14:04:36 +00:00
jenkins-bot c257e81d59 Merge "Update incomplete type hints in TablePager subclasses" 2021-10-01 14:04:34 +00:00
Translation updater bot fbcaf0c9aa Localisation updates from https://translatewiki.net.
Change-Id: Ia8724716d1a5e1e4f4d9da99b85b4b22c72a46ff
2021-10-01 09:29:17 +02:00
Thiemo Kreuz 0e8a08ebca Replace custom regex with TextContent::normalizeLineEndings()
This does the same as before, replacing \r\n as well as \r with \n.
Additionally the new method applies an rtrim() on both strings. I
believe this is even a good thing. It possibly removes irrelevant
noise from the diff.

Change-Id: I584740a24e6b25bbcbc928c2369f09b785a485c8
2021-10-01 08:49:49 +02:00
Thiemo Kreuz 8db314612d Update incomplete type hints in TablePager subclasses
Change-Id: Ia19a2507282f7973adb312428d04561cbd25035e
2021-10-01 08:46:54 +02:00
Translation updater bot 208398d96b Localisation updates from https://translatewiki.net.
Change-Id: I58f108045ce27c2bf77c3e5f0818bd700676c06c
2021-09-29 09:01:15 +02:00
Translation updater bot 971ca55488 Localisation updates from https://translatewiki.net.
Change-Id: Idf49765c5ce886675a722bb712a96162aac4a7b4
2021-09-28 08:18:07 +02:00
Translation updater bot f7e760712d Localisation updates from https://translatewiki.net.
Change-Id: I39a24349158a4d57f30312a26b403faf4726a998
2021-09-27 08:33:50 +02:00
Matěj Suchánek 632b39f8ca Stop requiring the Skin interface in AbuseFilterChangesList
IContextSource is now enough for ChangesList.

Change-Id: Iebb525227efe841a17c799d460d352017a2cfc4f
2021-09-25 10:28:50 +02:00
Reedy 026f8a44cd Make mysql/patch-remove-afl_filter.sql valid SQL
Follows-Up: Ic6b1c8a22d17a301faf32d2e23778d90c41c39de
Change-Id: I3d480d7b709b06d7ac213a81b4e0273a2ee385e9
2021-09-25 03:41:43 +01:00
Daimona Eaytoy 020f8a09b4 Remove leftovers of AbuseFilterAflFilterMigrationStage
On second thought, no need to keep the migration script now, since it's
unusable anyway.

Also remove an usage in SpecialAbuseLog, likely a rebase artefact.

Change-Id: I938924b3617ef30046d8317e68a101ed2c1883d3
2021-09-25 03:48:37 +02:00
jenkins-bot a332b3ff0f Merge "Remove afl_filter entirely" 2021-09-25 01:39:08 +00:00
Daimona Eaytoy e8471a717c Add method to properly check visibility of AbuseLog entries
This replaces the previous pattern of callers having to use
RevisionLookup if the result was 'implicit'. Also, in some cases where
we were just hiding things if the visibility was !== true, properly
handle the implicit case by using the new method. Make the new method
return string constants rather than bool|string.

The new method also fixes some potential info leaks which happened when
the row was hidden, the user could view suppressed AbuseLog entries, but
the associated revision was also deleted and the user couldn't see it
(this shouldn't be relevant for WMF wikis since AF deletion is
oversight-level).

Also add a bunch of tests for the various cases to ensure we don't
regress again.

Bug: T261532
Change-Id: I929f865acf5d207b739cb3af043f70cb59243ee0
2021-09-25 00:08:33 +00:00