Commit graph

5390 commits

Author SHA1 Message Date
Timo Tijhof c7653905ad Migrate 'user.tokens' dependency to 'user.options'
The 'user.tokens' module is a deprecated alias to 'user.options'
since MW 1.35.

Bug: T235457
Change-Id: I45e8e35edf4e6f901c2045d2592326e531607726
2020-03-27 16:22:57 +00:00
Translation updater bot ac80a89a8d Localisation updates from https://translatewiki.net.
Change-Id: Ia3885eed31902a9d38f06a4aa3a45ed7edf0cad2
2020-03-25 08:31:31 +01:00
Translation updater bot 73111906f6 Localisation updates from https://translatewiki.net.
Change-Id: I43ad0c46c5e1a6d20c4df7e0d47e5b5fbd0f5568
2020-03-24 08:47:38 +01:00
Translation updater bot d68d29c8ba Localisation updates from https://translatewiki.net.
Change-Id: I5e95b9ee9e464282dd5df3849f03eb615dc70ff2
2020-03-23 09:01:06 +01:00
libraryupgrader fe97727253 build: Updating npm dependencies
* mkdirp: 0.5.1 → 0.5.3
  * https://npmjs.com/advisories/1179
* acorn: 7.1.1 → 7.1.1
  * https://npmjs.com/advisories/1488

Change-Id: Icb5adcf627154b1275adb656f793b637d739dd2b
2020-03-21 17:27:40 +00:00
Daimona Eaytoy 4a24c174f2 Fix a test for IPUtils 2.0.0
0.0.0.0/0 is not a valid range.

Bug: T218074
Change-Id: I562fefe66c0b692a99f546ca2d4c833dd508272a
2020-03-21 16:49:44 +00:00
DannyS712 25fd11f7ac Use lowercase for primitive type 'string'
Change-Id: I65d322ffbed399fddb1fbf3cb25272e812171a46
2020-03-20 16:00:05 +00:00
Translation updater bot ffca22b739 Localisation updates from https://translatewiki.net.
Change-Id: If99fe424b76fd2cac32ccad24cc33d2c27b39bb5
2020-03-20 08:23:02 +01:00
jenkins-bot eca42bfe0b Merge "Replace usage of deprecated Page in favor of WikiPage/Article" 2020-03-19 10:18:22 +00:00
jenkins-bot 6b30aa60af Merge "Pass a user to WikiPage::doDeleteArticleReal, use new signature" 2020-03-19 10:17:30 +00:00
Translation updater bot 19a5d061d8 Localisation updates from https://translatewiki.net.
Change-Id: Ic853c189f84f14e54b318fe2e884f5068486d6f9
2020-03-19 08:31:43 +01:00
ArtBaltai 096fe88993 Replace usage of deprecated Page in favor of WikiPage/Article
Use Article instead object/Page
delete deprecated unused method

Bug: T239975
Change-Id: Ic3c8e3bee66c63177f51621bf727029a87b51105
2020-03-19 04:03:15 +03:00
DannyS712 57f85ed532 Pass a user to WikiPage::doDeleteArticleReal, use new signature
Don't need to worry about supporting prior versions, since AbuseFilter
requires 1.35+

Bug: T247869
Change-Id: I112e929dcdd9edcf3ca433b75356659a3179bbcd
2020-03-19 00:44:57 +00:00
Translation updater bot 726ac57f0d Localisation updates from https://translatewiki.net.
Change-Id: If309bf8448b80a51f5a5c0a5a790ebc1389e0cc6
2020-03-18 08:56:18 +01:00
libraryupgrader be0605b580 build: Updating npm dependencies
* minimist: 0.0.8 → 1.2.5
  * https://npmjs.com/advisories/1179
* acorn: 7.1.1 → 7.1.1
  * https://npmjs.com/advisories/1488

Change-Id: If688e466c9743db5b1c84afa8f4534a775f0acd4
2020-03-17 17:41:36 +00:00
Translation updater bot 1d47e1046f Localisation updates from https://translatewiki.net.
Change-Id: I42ffe1ea65d27d27fbd60f973dde67296c1f8fc5
2020-03-17 10:22:45 +01:00
Translation updater bot 896c8e78b3 Localisation updates from https://translatewiki.net.
Change-Id: I317c72dea4276b294471d27b9085337b92a52d22
2020-03-16 14:28:58 +01:00
Translation updater bot c006309299 Localisation updates from https://translatewiki.net.
Change-Id: I86271c716fc0cd653a507cbb8f0737e8735ea9ae
2020-03-12 08:41:13 +01:00
Translation updater bot fa8ecc5f57 Localisation updates from https://translatewiki.net.
Change-Id: If1f1d663cfb680379f07536fd1619c8b3960b887
2020-03-11 08:28:48 +01:00
Translation updater bot bba12b3330 Localisation updates from https://translatewiki.net.
Change-Id: Ifabe7e2c85eea32bffd956aa019c19594223aee5
2020-03-10 08:14:12 +01:00
Translation updater bot cc32a2638c Localisation updates from https://translatewiki.net.
Change-Id: Id2192a3a8f15964cf59e7d82ccec8d7b3880b522
2020-03-09 08:55:17 +01:00
libraryupgrader 0dbce79725 build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I091c3baef48d81216f85fc3868fd7952e5f61b3e
2020-03-08 19:56:25 +00:00
Translation updater bot bac76a478e Localisation updates from https://translatewiki.net.
Change-Id: Idd71ce2055db933fa0334d3dfff1daff299e6dc5
2020-03-06 08:17:08 +01:00
Translation updater bot 3890863a08 Localisation updates from https://translatewiki.net.
Change-Id: I484a618e9c7b8dc85ae94fa550a873ef6150fa98
2020-03-05 08:36:49 +01:00
Translation updater bot 593dea9c65 Localisation updates from https://translatewiki.net.
Change-Id: Ia89a23cbbe5cd83c600ea41b4ff0f7ea1f37d986
2020-03-04 08:19:00 +01:00
Daimona Eaytoy cd1a8efb90 Minor fixes for the updateVarDumps script
- Increase batch size to 500
- Add an option to print progress markers
- Fix some bad logic which caused some JSONified data to be stored in
the text table without checking (and respecting) old_flags. This caused
some errors on the beta cluster.

Additionally, add a return typehint to AbuseFilter::loadVarDump to make
sure that errors are caught asap. Not only there's no apparent way that
loadVarDump can return an array, but most code is already using the
result as a VariableHolder, unconditionally. This is probably another
leftover from the past.

Bug: T213006
Bug: T246539
Change-Id: Iaebd28badb70d27693fa809cad4db956881e3e5e
2020-03-03 18:31:52 +00:00
Translation updater bot a1d7945f4f Localisation updates from https://translatewiki.net.
Change-Id: Id46b670a3484c63928a2b4c83ef2c2b45e261cd3
2020-03-03 08:13:19 +01:00
jenkins-bot 9335116758 Merge "Add a maintenance script to clean afl_var_dump" 2020-03-03 01:20:25 +00:00
Translation updater bot 762ec59f07 Localisation updates from https://translatewiki.net.
Change-Id: I904b0e85b49db6e1a17315e3d5b9d584939c75dc
2020-03-02 09:07:58 +01:00
Daimona Eaytoy 2c03c77d9f Add a maintenance script to clean afl_var_dump
This script aims to fix every problem reported in T213006. Subsequent
patches will add new code and drop the back-compat one.

Bug: T213006
Bug: T187153
Bug: T204236
Bug: T187731
Bug: T204235
Bug: T214193
Bug: T214196
Bug: T34478
Depends-On: I5b29ff556eca45fe59d15e2e3df4d06f1f6b3934
Change-Id: I22cf698c5be77506727cbd227c67e037a5d89b5c
2020-02-28 19:41:30 +00:00
jenkins-bot 76f8cb0ced Merge "Add fixOldLogEntries to update.php" 2020-02-28 18:35:01 +00:00
Translation updater bot a6396568b3 Localisation updates from https://translatewiki.net.
Change-Id: I7cab5826842713b624b8442c50576c29136c5cba
2020-02-28 08:21:10 +01:00
jenkins-bot 7e66b01cf3 Merge "Factor out get(Local|Global)Filters methods" 2020-02-27 20:33:56 +00:00
Daimona Eaytoy c9a4146f2c Add fixOldLogEntries to update.php
Already done in WMF production, see T228655.

Bug: T208931
Change-Id: Id477387d1607e263a6bf054060dc6dd440e88467
2020-02-27 18:19:50 +00:00
Translation updater bot 793d7e0a0f Localisation updates from https://translatewiki.net.
Change-Id: I221cc7e40e272b8f5ad2e543d33d2e39c8cf28fb
2020-02-27 08:34:55 +01:00
jenkins-bot 08c0a3f482 Merge "ViewEdit: add af_id to the row" 2020-02-26 16:53:35 +00:00
jenkins-bot b28e9e8c1f Merge "Start using new format for var dumps" 2020-02-26 16:51:02 +00:00
jenkins-bot 22adab7159 Merge "Stop using the Revision class" 2020-02-26 16:47:37 +00:00
Daimona Eaytoy f454e60e83 Start using new format for var dumps
Migrating old log entries is I22cf698c5be77506727cbd227c67e037a5d89b5c.

Bug: T213006
Change-Id: I3242acd5c5163a941f584d6119e3ad3b3cad8c29
2020-02-26 16:03:38 +00:00
jenkins-bot 8de3ecdb89 Merge "Replace usage of deprecated Page in favor of WikiPage/Article" 2020-02-26 15:49:19 +00:00
Daimona Eaytoy 518c176754 Stop using the Revision class
Change-Id: Ie257c9b1ea94dcadce59f4541d5947465262bd75
2020-02-26 15:39:12 +00:00
Daimona Eaytoy fe28aff82a ViewEdit: add af_id to the row
A PHP notice is sporadically emitted in production, e.g. reqId XlVEMgpAMNAAA6zMVhQAAACV

Change-Id: Ie42d00c6520aa31daf127c5df9515a3ab01d986f
2020-02-26 15:27:54 +00:00
Translation updater bot 389b6f3dc8 Localisation updates from https://translatewiki.net.
Change-Id: I11cbd5aa4e166f4fdd6465e49fcbee3c49cccaa7
2020-02-26 08:23:50 +01:00
Daimona Eaytoy b9a1e86245 Remove old number syntax
Bug: T212730
Change-Id: I7573da1683efc83b5002b8948c97dd7f6658a488
2020-02-25 23:38:19 +00:00
Daimona Eaytoy 1bac110205 Remove dependency on $wgRestrictionTypes
This was used to dynamically generate *_restriction_* variables.
However, it had two big problems:
 - We only have i18n for 'create', 'move', 'edit', and 'upload' (the
 default value of the global); other restrictions would show missing
 messages in various pages.
 - We had to access the global state in various points.

This change also makes some code in AbuseFilterVariableHolder simpler,
and also allows us to make AbuseFilterTest a unit test.

Change-Id: I321ad6e07f8243200af67a581b6e485970efd3ce
2020-02-25 23:17:54 +00:00
jenkins-bot e802e6556d Merge "Add string typehint to $summary in onParserOutputStashForEdit" 2020-02-25 22:56:27 +00:00
ArtBaltai 22925c5344 Replace usage of deprecated Page in favor of WikiPage/Article
Complete WikiPage/Article split and deprecate Page interface
Using actual WikiPage/Article contract

Bug: T239975
Change-Id: I343c3ca2e30715656950cab49c6470061c72b9a0
2020-02-26 01:03:49 +03:00
Translation updater bot 58d531861c Localisation updates from https://translatewiki.net.
Change-Id: I44b20b3510053a547d82743bbe358a3bccb5f328
2020-02-25 08:51:36 +01:00
Ammar Abdulhamid 323fe4666c Draw suppression reason from Revdelete-reason-dropdown-suppress
Bug: T245990
Change-Id: Ic5adcf4e6693cb5b4c849156e54d97cf35b70dee
2020-02-24 14:06:43 +01:00
Translation updater bot 544528a297 Localisation updates from https://translatewiki.net.
Change-Id: I9684fdd729db8f275db305ffdcd0274101cf2c69
2020-02-24 09:01:13 +01:00