Commit graph

6855 commits

Author SHA1 Message Date
Umherirrender 5f979bcf16 Use UserIdentity in FilterStore::doSaveFilter
Change-Id: I8cbdaff1bd049a893b69f2ce13f0ba30b96f93b4
2022-06-27 22:39:37 +02:00
Umherirrender 30fefb75bf Use UserIdentity in ConsequencesExecutor
Change-Id: I281a30610595ed3e984f43aa747eff37abe72939
2022-06-27 22:05:18 +02:00
Translation updater bot 2d6ff71431 Localisation updates from https://translatewiki.net.
Change-Id: I7377708240ab7ecf160539317cd81c82d18a6b24
2022-06-27 08:17:17 +02:00
Daimona Eaytoy f33bc5868c Set the 'timestamp' var in addGenericVars
This was most definitely my intention when I introduced the concept of
"generic vars", so it's a bit surprising to discover, 3.5 years later,
that the timestamp isn't computed there.

Also make the timestamp always be a string for consistency, since that's
the type documented on mw.org. I've manually checked all filters on
Wikimedia wikis using the timestamp variable, and added explicit int
casts where needed (although I think they'd still work due to implicit
casts).

Change-Id: Ib6e15225dd95c2eead7e48c200d203d6918e0c18
2022-06-26 14:49:40 +02:00
Matěj Suchánek 40c5712311 Pass RecentChange to addGenericVars
Change-Id: Ia843c23b46ecf8e9fe987a538a09e69f845f4488
2022-06-25 13:03:03 +02:00
Umherirrender 3d3c45f348 tests: Mock WikiPage in unit test
Bug: T297688
Change-Id: Ic1655141564f02530b1ae6b625a1d3e261a00304
2022-06-24 22:22:24 +02:00
Translation updater bot 2e73774895 Localisation updates from https://translatewiki.net.
Change-Id: Iabd2131b111d7a40268373f09e31a6d52307884b
2022-06-24 09:29:54 +02:00
jenkins-bot f78a92cb2e Merge "Remove $info argument from ReversibleConsequence::revert" 2022-06-24 02:07:31 +00:00
Translation updater bot fac219ba0c Localisation updates from https://translatewiki.net.
Change-Id: Ie1e2a49b5ff2f2aa4d911e68d2bd03d85ddc21de
2022-06-23 09:01:53 +02:00
Translation updater bot 7a072b942c Localisation updates from https://translatewiki.net.
Change-Id: I65f56eebf85087c669eee2a127b150e19d753463
2022-06-22 08:12:46 +02:00
libraryupgrader 81749eb07f build: Updating got to 11.8.5
* https://github.com/advisories/GHSA-pfrx-2q88-qq97

Change-Id: I07af806a7c19c5dfe0e8fb897ab632da4da80c94
2022-06-22 05:03:44 +00:00
Translation updater bot dde42a85da Localisation updates from https://translatewiki.net.
Change-Id: I5a1d8ac67628772a214c940aa6d7390a98a35b65
2022-06-21 08:29:43 +02:00
Umherirrender e18136f269 Convert to abstract schema
Rename index on postgres and fix nullable fields

Bug: T259377
Change-Id: I97cb12e6aa25d75ea24e187174db2fe88e5ce790
2022-06-20 17:19:57 +00:00
Umherirrender d0499bfa13 Revert "Localisation updates from https://translatewiki.net."
This reverts commit fb05e25c82.

Reason for revert: Empty translation in aa.json not supported

Change-Id: I5ac74f4a06d7f86d6d657ea889ed995a7663b480
2022-06-20 16:26:42 +00:00
Translation updater bot fb05e25c82 Localisation updates from https://translatewiki.net.
Change-Id: I91636def75b631a6c2584a026f51b9a331fd96c7
2022-06-20 08:15:49 +02:00
Translation updater bot 325c13f61d Localisation updates from https://translatewiki.net.
Change-Id: I98cbb62d84003aa0860e5ed324acf1b33d7d01e2
2022-06-16 09:23:32 +02:00
Translation updater bot 445a53938b Localisation updates from https://translatewiki.net.
Change-Id: I84db3f06d80921b2a386b72a799b58baa0b21e99
2022-06-15 08:40:32 +02:00
Tim Starling 855347b4a4 Configure FilterProfiler cache separately
Since it seems to be the bulk of the traffic to the mainstash in
production.

Bug: T212129
Change-Id: Id20223ac03ada16b3ad4bd47744dea5e415cf160
2022-06-14 15:30:02 +10:00
Translation updater bot 17603e6e03 Localisation updates from https://translatewiki.net.
Change-Id: If2ab6417dc7a0b81234dbac367f7799655f1856b
2022-06-13 08:27:00 +02:00
Matěj Suchánek 40564ca635 Remove $info argument from ReversibleConsequence::revert
It was a temporary catch-all variable, but we can replace it
(and probably won't need it).

Change-Id: Ie1a64455c47445050bd83c853b3cafd283d5d020
2022-06-08 11:59:18 +02:00
Translation updater bot a44480c9e5 Localisation updates from https://translatewiki.net.
Change-Id: Iaaa9bb55b69fe42db88f65e3f879577149e3e54d
2022-06-08 08:26:14 +02:00
jenkins-bot 6fe7cd9648 Merge "Add class to AF log contribs link" 2022-06-07 08:11:46 +00:00
Translation updater bot 495e759d17 Localisation updates from https://translatewiki.net.
Change-Id: I598762ab38ef5025199f40a43d13e60d676519de
2022-06-07 09:59:55 +02:00
Translation updater bot a2719671a4 Localisation updates from https://translatewiki.net.
Change-Id: If060c98d7e3bd470e6ab1a0e0e152b3be12abcbd
2022-06-06 09:24:45 +02:00
jenkins-bot 1a6985469b Merge "Inline/simplify smaller pieces of duplicate/complex PHP code" 2022-06-03 20:38:22 +00:00
Thiemo Kreuz bbded6231c Inline/simplify smaller pieces of duplicate/complex PHP code
Change-Id: I59d0f17b77c8c3d47bc532bdefd9d8c0883f180b
2022-06-03 21:04:38 +02:00
Translation updater bot 5ffd528cc6 Localisation updates from https://translatewiki.net.
Change-Id: I88a284702b22a84bf5524817b032cd7b9a15322c
2022-06-03 08:56:57 +02:00
TerraCodes 2c0e61a030 Add class to AF log contribs link
Continuation of MW core change 603941

Change-Id: I16ade657179fdce40b8acb7f8be8cde8b9a64949
2022-06-02 09:34:38 +00:00
Translation updater bot 17f5f31487 Localisation updates from https://translatewiki.net.
Change-Id: I68e8b3195333e5660cb2b64c4b6c9571bfcd1e91
2022-06-02 08:13:18 +02:00
Translation updater bot 064a063004 Localisation updates from https://translatewiki.net.
Change-Id: I904ffb02bac108554235d736cbe4ab6d5724ca28
2022-06-01 08:19:50 +02:00
jenkins-bot bb94c0914c Merge "Add support for regex string replacements." 2022-05-31 14:54:33 +00:00
Translation updater bot 27ce7010fa Localisation updates from https://translatewiki.net.
Change-Id: I229df8fe4b714d5e0a130f9f865f1c3ad932bd94
2022-05-31 08:07:23 +02:00
Translation updater bot 69d3dc1cf1 Localisation updates from https://translatewiki.net.
Change-Id: Ibac6607ef207a560194f9a6a8fa293a2f367322a
2022-05-30 09:22:11 +02:00
Translation updater bot d55796129d Localisation updates from https://translatewiki.net.
Change-Id: Ia154931fa5eb59d6f4c1f42356f488f6b330539a
2022-05-26 08:50:44 +02:00
libraryupgrader 9d978abf71 build: Updating grunt to 1.5.3
Change-Id: Id7c6776fd27714d20938647de2ef9bcc36fddc72
2022-05-26 05:33:18 +00:00
Translation updater bot c243d6010e Localisation updates from https://translatewiki.net.
Change-Id: Ibd4bce06d066fcf43064407303b7993cc4f06663
2022-05-25 08:30:53 +02:00
Translation updater bot 4c154bec99 Localisation updates from https://translatewiki.net.
Change-Id: I8bfe29c47902837999d37e1fb14a4fd4ddaaec8c
2022-05-24 08:24:24 +02:00
Translation updater bot 63dc7dde69 Localisation updates from https://translatewiki.net.
Change-Id: I3b043345e6decee9fa792eab4bec119f6384dc0b
2022-05-23 08:15:50 +02:00
jenkins-bot f0ae0ec101 Merge "Optimize loop in 'diff-split' case" 2022-05-21 18:32:31 +00:00
Matěj Suchánek d4b15cb7ee Optimize loop in 'diff-split' case
The "substr( $line, 0, 1 )" expression has already assumed
the prefix has length 1. Therefore, it's pointless
to compute its length later. The assumption does hold,
the only two prefixes the code works with are '+' and '-'.

Not changing the check to use str_starts_with now, because
it was suggested in I113a8d052b6845852c15969a2f0e6fbbe3e9f8d9
that this shouldn't be done for performance-sensitive code
at least until we are on PHP 8.

Change-Id: I00cb2fc50ed534bb2bbef3ee1e5f6f466afeeb27
2022-05-21 18:07:21 +00:00
jenkins-bot 00ad47bab3 Merge "Fix validation for ip_in_ranges" 2022-05-21 15:24:20 +00:00
jenkins-bot 2779c92cf7 Merge "Add ip_in_ranges function" 2022-05-21 15:15:17 +00:00
Daimona Eaytoy a46db47bd5 Fix validation for ip_in_ranges
We want to make sure that all parameters are valid regardless of whether
there's a match.

Also make the minimum number of parameters = 2, so it's easier to switch
between this function and ip_in_range.

Change-Id: I141558a7ef4533485e315b3d93ea9b64f0959db7
2022-05-21 15:39:21 +02:00
Translation updater bot 67a6b50e65 Localisation updates from https://translatewiki.net.
Change-Id: I393a63ac8b387c142818ab65a5befccea8ba6d11
2022-05-20 08:35:18 +02:00
libraryupgrader fc03124622 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

npm:
* grunt: 1.4.1 → 1.5.2
* stylelint-config-wikimedia: 0.12.2 → 0.13.0
* async: 0.9.2 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* ejs: 3.1.6 → 3.1.8
  * https://github.com/advisories/GHSA-phwq-j96m-2c2q
* jake: 10.8.2 → 10.8.5
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* minimist: 1.2.5 → 1.2.6
  * https://github.com/advisories/GHSA-xvch-5gv4-984h

Change-Id: I818c26d94a2d4bd9b94b1bcda3287aea0951e035
2022-05-20 05:00:10 +00:00
Translation updater bot 2bb579a0fa Localisation updates from https://translatewiki.net.
Change-Id: I4da1c71ec87b4a757e4bdec8973917bf1a95e45a
2022-05-18 08:19:08 +02:00
Translation updater bot 77d111c296 Localisation updates from https://translatewiki.net.
Change-Id: I9a4ae9fc3f298ba18fc44cca3d9afef647a0ce6a
2022-05-17 08:26:34 +02:00
Translation updater bot a6faf94143 Localisation updates from https://translatewiki.net.
Change-Id: I966046aaae048b5c553a1c9c55ffdf059ac117b6
2022-05-16 08:23:22 +02:00
jenkins-bot f1ccb60272 Merge "AbuseFilterViewDiff: simplifications to prepare for refactor" 2022-05-15 23:05:32 +00:00
Translation updater bot 989ea999d8 Localisation updates from https://translatewiki.net.
Change-Id: Iceefed09c42fe5df6cc3c1ccb2a4cc9a009cfa9e
2022-05-13 08:24:49 +02:00