Commit graph

7424 commits

Author SHA1 Message Date
Translation updater bot b228236008 Localisation updates from https://translatewiki.net.
Change-Id: I0030775e50462c5229b4bac126ddc981736ce5af
2023-02-03 08:46:24 +01:00
Translation updater bot d0e3cb2954 Localisation updates from https://translatewiki.net.
Change-Id: Iec179856a22d0a28ee0924b76c6ccdb168523fa0
2023-02-02 08:45:32 +01:00
Translation updater bot ec137c6080 Localisation updates from https://translatewiki.net.
Change-Id: Icef1e7537b14f691e0bb4bf69602ab2fc5023520
2023-02-01 09:17:13 +01:00
Translation updater bot f0f5d6dcae Localisation updates from https://translatewiki.net.
Change-Id: I194a822cf047f8c40ea46a857644d7702543f88a
2023-01-30 08:28:54 +01:00
libraryupgrader e60c5d5083 build: Updating ua-parser-js to 0.7.33
* https://github.com/advisories/GHSA-fhg7-m89q-25r3

Change-Id: I2374519e9eaae14d1f0f038c0a2f76ed1c57d5ea
2023-01-26 07:42:36 +00:00
Matěj Suchánek 5dbb4792b7 Add styles to display zero contributions link in red
Bug: T327603
Change-Id: I319b69d21f3c6195cd9192285a3f0ec3b52bcfd0
2023-01-24 15:11:19 +01:00
Translation updater bot 69c58fd653 Localisation updates from https://translatewiki.net.
Change-Id: I9f92d9674036db683d7607dde6f8f2853f191960
2023-01-24 08:47:43 +01:00
Translation updater bot 61c287545d Localisation updates from https://translatewiki.net.
Change-Id: I8784dbed3eb974a8102f44c4093c44a15a8581a9
2023-01-23 08:21:51 +01:00
Translation updater bot 48463c1e20 Localisation updates from https://translatewiki.net.
Change-Id: I96ef15fba66739bf15b42cdf7fadafa27a4759f0
2023-01-20 08:40:39 +01:00
Translation updater bot 3ec1652088 Localisation updates from https://translatewiki.net.
Change-Id: I2305e0caaf09465632107e7bf3fa4f9999593a21
2023-01-19 11:30:19 +01:00
Translation updater bot f91e494c34 Localisation updates from https://translatewiki.net.
Change-Id: I01e2b254574b4c6fb6671b26994c02fd5046e311
2023-01-18 08:28:24 +01:00
libraryupgrader c636c501bb build: Updating eslint-config-wikimedia to 0.24.0
Change-Id: I18191de8f0db09a237e73a079dda3f30bb8881e5
2023-01-18 00:31:04 +00:00
Translation updater bot 7643e557db Localisation updates from https://translatewiki.net.
Change-Id: I244ed51d6873e76af96a27474241f7da3cabb6bc
2023-01-17 08:06:37 +01:00
Translation updater bot c900f63630 Localisation updates from https://translatewiki.net.
Change-Id: I42d0703650b081e1cc518bebd926c7824bc3e53f
2023-01-16 08:27:30 +01:00
Translation updater bot 57d1fc9786 Localisation updates from https://translatewiki.net.
Change-Id: If3af540c5e56ff0845ffe6845d6e8da75c37dcf7
2023-01-12 08:40:36 +01:00
Translation updater bot 64dd4dae11 Localisation updates from https://translatewiki.net.
Change-Id: I25f6be30bb91790b302a864e18bec3b7f9d4c74c
2023-01-09 09:23:35 +01:00
Dreamy Jazz 8e4a1237f1 Hook on privateEvent and logEvent insert hooks like CuChangesInsert
Hook on to CheckUserInsertPrivateEventRow and CheckUserInsertLogEventRow
to override the IP, XFF and User-Agent string when the user is the
abuse filter user for log events.

These two hooks are being added as log entries are being removed from
cu_changes and added into two new tables. Because the columns and their
names are different for these tables, reusing the same hook won't work
for callers that rely on setting values for a specific column name.

Edits and log entries performed by the abuse filter user need to be
marked as being by the software (and not using the IP, XFF and
User-Agent provided in the main request).

These hooks will not be run until the appropriate config is set to
write to the two new tables. Until that point using the one currently
defined hook will work for all actions.

Bug: T324907
Bug: T44345
Depends-On: I7c7754323ade9a8d96273c1742f30b1b5fbe5828
Follow-Up: Idd77545af94f9f9930d9ff38ab6423a72e680df9
Change-Id: Id78417e9d95220946f110afbe1430df5b3bb4f4f
2023-01-08 13:09:52 +00:00
Dreamy Jazz d3d0910bee Add RecentChange as a optional parameter for CheckUser hook
Add RecentChange as a optional parameter to the code that hooks
on CheckUserInsertChangesRow as this hook will soon provide a
RecentChange object if this row was triggered by a RecentChange.
If this row was not triggered by a RecentChange, then this
parameter will be null. This needs to be added before the parameter
is added to the definition of the hook in the CheckUser extension
as the tests will fail if all usages do not already have the new
parameter.

Bug: T324907
Change-Id: I44e54a3fca5558a1cb8d8f06a3990ded863454bc
2023-01-08 13:09:23 +00:00
jenkins-bot 595b0a9969 Merge "Ensure IP, XFF and UA are valid for abuse filter user actions in CheckUser" 2023-01-06 20:51:17 +00:00
Translation updater bot 2d2a433d71 Localisation updates from https://translatewiki.net.
Change-Id: I78b761b3649f2e57d8af38d914a0858f5f86ff18
2023-01-06 08:52:20 +01:00
jenkins-bot 1ff0e96e38 Merge "Replace VariableHolder::$forFilter" 2023-01-05 21:23:24 +00:00
Translation updater bot ff24a5fbdc Localisation updates from https://translatewiki.net.
Change-Id: I0cfeabd35c9caa82c98d1e7f74e60d255a2b0baa
2023-01-05 09:05:17 +01:00
Translation updater bot ce5f4ab985 Localisation updates from https://translatewiki.net.
Change-Id: I44770a477ac4467408f844dee490195b73c55104
2023-01-04 08:28:22 +01:00
Translation updater bot 9c9a393de8 Localisation updates from https://translatewiki.net.
Change-Id: Icd7394c3dd5f2dd8c9516e37fa33f0f1709f9eb6
2023-01-02 08:41:30 +01:00
Translation updater bot 54281c362d Localisation updates from https://translatewiki.net.
Change-Id: I2cbaff774335d3249c6bb090a3d780b34f9d3a69
2022-12-29 09:59:16 +01:00
Translation updater bot eb1758a8ed Localisation updates from https://translatewiki.net.
Change-Id: I6795325df7f13577679f9aa2d325d0b10f528fb3
2022-12-26 09:08:26 +01:00
Translation updater bot 7a6e06368a Localisation updates from https://translatewiki.net.
Change-Id: I2851b500af8eab014881a29242f73d74eca3009a
2022-12-23 09:04:35 +01:00
jenkins-bot 24d797e6cc Merge "Create real integration test for variables" 2022-12-22 02:07:02 +00:00
Translation updater bot 29dc447a4a Localisation updates from https://translatewiki.net.
Change-Id: Ia4d1a0008e9fd9844d783c8bfed68d4726d66368
2022-12-21 09:12:34 +01:00
Translation updater bot ad7d5b53a3 Localisation updates from https://translatewiki.net.
Change-Id: Ic306eabc24e032539ee0401fda8f6274f6678f51
2022-12-20 09:28:25 +01:00
Translation updater bot f237857b3b Localisation updates from https://translatewiki.net.
Change-Id: Ic325be4f629ebbffc32980d9903acc4364d8a26b
2022-12-19 09:03:02 +01:00
Matěj Suchánek 3e0d1b0d38 Set old_content_model & new_content_model for past changes
We might consider adding an in-process cache because there
will be a duplicate database lookup for content model and
wikitext of the same revision.

Bug: T230295
Change-Id: I9723f21069e03a49fa7131bd8f79c6e7e442104b
2022-12-18 16:01:45 +00:00
Matěj Suchánek 396d892c60 Use ActionSpecifier to load the IP address
To avoid access to the global request context.

Change-Id: I4d97dbe8b693f1fcd5a4e84f2376752d8e954c18
2022-12-17 22:52:24 +01:00
Matěj Suchánek 52dcd4624f Use ActionSpecifier throughout the code
The motivation is to have a single immutable object providing
information about the action. It can represent the current
action being filtered, but also a past action stored in the
abuse log. It will hopefully help us get rid of passing
User(Identity) and Title/LinkTarget objects around together.

Change-Id: I52fa3a7ea14c98d33607d4260acfed3d3ba60f65
2022-12-16 22:52:03 +00:00
Translation updater bot 50b20b8ccd Localisation updates from https://translatewiki.net.
Change-Id: I21ba42200d50f3c95daa660eab5b11e673e42831
2022-12-16 08:45:50 +01:00
Translation updater bot 43fa3f0c94 Localisation updates from https://translatewiki.net.
Change-Id: I903a43b04c58b145228258f1509d5338848c051e
2022-12-15 11:34:40 +01:00
Translation updater bot 9309758ef2 Localisation updates from https://translatewiki.net.
Change-Id: Icff4db34b276ea124ccdc8b88678d2a01b7773b0
2022-12-14 08:14:50 +01:00
Željko Filipin cd876b9892 selenium: Remove webdriverio npm package
The `webdriverio` package does not need to be an explicit dependency.
It is a dependency of `@wdio/cli`.

Bug: T325059
Change-Id: I6064c8a8709b464a0efd3232c17d72d21a92cc7b
2022-12-13 16:48:52 +01:00
Translation updater bot e0b6a4e019 Localisation updates from https://translatewiki.net.
Change-Id: I6609ce3374b34c4f6a02e42b9a0d748d46aa5106
2022-12-13 08:16:22 +01:00
Translation updater bot 9f0b3cb60f Localisation updates from https://translatewiki.net.
Change-Id: I85136334346d7a0bd8348d0d59d80ae23384fd73
2022-12-12 08:21:42 +01:00
Umherirrender 4139e5ef05 pager: Avoid unneeded database connection
Change-Id: Id548d1adab39c4a9b4e7ead4c87510b2fed39ff1
2022-12-11 13:06:08 +01:00
Umherirrender 6d65684a34 Replace deprecated Linker::commentBlock
Bug: T324906
Change-Id: I3b8f9b1295315d3a3cae6bbda2c5553129d2ba13
2022-12-10 22:32:53 +01:00
Translation updater bot aa30892c8c Localisation updates from https://translatewiki.net.
Change-Id: I7783116e09239c9aebf76a0c53f596b7099e0a0e
2022-12-09 08:44:55 +01:00
Translation updater bot 9c54babf3d Localisation updates from https://translatewiki.net.
Change-Id: Ifb6b97fc94b41f6c4338a456553430750d8bed32
2022-12-08 08:27:58 +01:00
Translation updater bot 8700f8e01e Localisation updates from https://translatewiki.net.
Change-Id: Ica79cfc24f14ee0513f32c30d4b02bc171be8008
2022-12-07 08:12:35 +01:00
libraryupgrader 4c2a289f8f build: Updating qs to 6.5.3
* https://github.com/advisories/GHSA-hrpp-h998-j3pp

Change-Id: I95797347e95635aeb204c8b3a3c57a44a05cb26a
2022-12-07 00:29:28 +00:00
Translation updater bot 9202efc328 Localisation updates from https://translatewiki.net.
Change-Id: I27f64840e9730a9c9567035950a0470ed613d3f9
2022-12-06 08:50:25 +01:00
Translation updater bot 263dbb8d69 Localisation updates from https://translatewiki.net.
Change-Id: I5a5b9fbe730346cccb7ef8b96b3b6432d4963bf2
2022-12-05 08:32:36 +01:00
Translation updater bot 43dd2a7b35 Localisation updates from https://translatewiki.net.
Change-Id: If9fe367536dd3a6fede80f840d03e008dfc27c3f
2022-12-02 09:07:06 +01:00
Matěj Suchánek dc59cad0a5 Replace VariableHolder::$forFilter
Each generator knows in which situation it is executed, and it
can pass this information to the computer. VariableHolder should
just hold the variables.

Change-Id: I0fb2e01e3e9457cd63948afe2a20439a1c800790
2022-12-02 08:10:15 +01:00