Commit graph

5977 commits

Author SHA1 Message Date
Bartosz Dziewoński 3762c3d4d8 Simplify code for detecting rollbacks
Thanks to the changes from T254074, the EditResult object passed to
the 'PageSaveComplete' hook now knows whether the edit being saved
is a rollback. We don't need to pass this information from the
'RollbackComplete' hook via globals.

Bug: T277649
Change-Id: Ieef7941e4665204b1a9b2356a58216626ed1f54b
2021-05-25 20:32:36 +02:00
libraryupgrader 12e3d5a2ef build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I2e7b55677dc047b1b755842f8e2691e20c3eac97
2021-05-25 11:18:52 +00:00
Translation updater bot 423ef4dc9a Localisation updates from https://translatewiki.net.
Change-Id: I7c3f32951ead09bf6e5d17ddf6615684c20da6ba
2021-05-25 08:52:08 +02:00
jenkins-bot 6ed6337aed Merge "Replace RecentChange::getPerformer with RecentChange::getPerformerIdentity" 2021-05-24 15:27:56 +00:00
Vadim Kovalenko 3e65888791 Replace RecentChange::getPerformer with RecentChange::getPerformerIdentity
Refactor $actor as UserIdentity
Refactor Event::getAgent() to return UserIdentity

Bug: T276412
Change-Id: Ieb0dbacd2dcab7700b83fb090587b4957c8128c9
2021-05-24 18:01:04 +03:00
Translation updater bot 6c184f1790 Localisation updates from https://translatewiki.net.
Change-Id: I3a9ca5728fae3624608007ef212b4c45a839fd68
2021-05-21 08:33:55 +02:00
libraryupgrader 1307a28f6f build: Updating hosted-git-info to 2.8.9
Change-Id: I015a90535d78840e3468cd067d2e90ed25f53f4c
2021-05-21 04:29:06 +00:00
Translation updater bot ec93d61951 Localisation updates from https://translatewiki.net.
Change-Id: Ida8d7119c51446bdfe758d5c89afd8e735985ff8
2021-05-20 09:10:26 +02:00
Translation updater bot d11af1f29f Localisation updates from https://translatewiki.net.
Change-Id: I60bbb1143c74ba95b9744feff5e7c63a071a472c
2021-05-19 08:42:46 +02:00
jenkins-bot 331d6e9c18 Merge "Unify list-style CSS" 2021-05-18 17:03:47 +00:00
Translation updater bot 7752bb504f Localisation updates from https://translatewiki.net.
Change-Id: Icd88ea29e0c894dca7180930db832c218b6af214
2021-05-18 08:46:30 +02:00
Translation updater bot 25161f7d90 Localisation updates from https://translatewiki.net.
Change-Id: Ia3733a9fd1e06a6abc92ae649afe1558f973beff
2021-05-17 08:41:57 +02:00
libraryupgrader 88e37cb08c build: Updating npm dependencies
* hosted-git-info: 2.8.9 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: I98e305419a1f6bbc8a6aac91ee05869e3430f723
2021-05-15 13:53:19 +00:00
Umherirrender 9ccc7af208 Remove PHP 5.3 $this closure workaround
Change-Id: I84024efc7bb27292bcfb7dd5c586b094828c5d0a
2021-05-15 01:58:55 +02:00
Translation updater bot 193ac8cab4 Localisation updates from https://translatewiki.net.
Change-Id: I908368f8e6591981e55a6d405d314e77ff0320bb
2021-05-14 08:43:53 +02:00
Umherirrender 37c602c532 Replace uses of DB_MASTER with DB_PRIMARY
Change-Id: I20abc845a3c74173ec4a111874c20cdeb1abd1d9
2021-05-13 02:04:54 +02:00
Translation updater bot 1e5834644d Localisation updates from https://translatewiki.net.
Change-Id: Id09e3b29601b67a728055c09d629e4f3d27bb00a
2021-05-12 09:21:36 +02:00
Translation updater bot 0542023128 Localisation updates from https://translatewiki.net.
Change-Id: I360ce62ecf2eb3494d61037cf6747e7c61ce73e7
2021-05-11 09:06:19 +02:00
Translation updater bot 2409941c5f Localisation updates from https://translatewiki.net.
Change-Id: I03f13291f25c098de5979695d6c64cf7b5218644
2021-05-10 08:51:22 +02:00
libraryupgrader 0260a0bbdb build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 2.8.8 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* ua-parser-js: 0.7.21 → 0.7.28
  * https://npmjs.com/advisories/1679 (CVE-2021-27292)

Change-Id: Iabdb4f019f43e1babc061ffe0cf391f87239a7cd
2021-05-09 19:43:49 +00:00
Umherirrender e80884549c Use ::class for class name
Change-Id: I43364430206207b49d702c842cdc8a74ca0c4102
2021-05-08 00:03:13 +02:00
Translation updater bot b57d0232e2 Localisation updates from https://translatewiki.net.
Change-Id: I782c74e70da23a5c578e6ac796771ac8aba019ab
2021-05-07 08:41:16 +02:00
Translation updater bot eda3372723 Localisation updates from https://translatewiki.net.
Change-Id: Iaa23caffb9e87b0caa41b91d8cc53d6f1093bf67
2021-05-06 08:54:03 +02:00
James D. Forrester 4dd2a651e1 phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure
Change-Id: I6a02902ffaa8a9b497d60b573a0b8e3dbc207ee5
2021-05-04 09:06:42 -07:00
libraryupgrader b3f948c59c build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Change-Id: I4b2fb7f46b6c0a5c33a6ad25f085de8ae13eb084
2021-05-04 09:05:15 -07:00
Volker E a9f495db13 Unify list-style CSS
`list-style: none none` was a workaround for an IE 6 & 7 rendering issue.
Same goes for `list-style-image: none; list-style-type: none;` combination.
Let's unify to shorthand `list-style: none` for any non-ancient browser.

Change-Id: Ibdfb9a3cbd868d439504b59fa029e8da9a13f70a
2021-05-03 01:41:54 -07:00
Translation updater bot d37c3c697b Localisation updates from https://translatewiki.net.
Change-Id: Ia82cad4e961c651ed3b3aa0e95fbdfe16378376f
2021-05-03 08:36:50 +02:00
jenkins-bot bd8ad42a30 Merge "Remove redundant check" 2021-04-30 08:10:10 +00:00
jenkins-bot 20420275fa Merge "EchoEventMapper: use DISTINCT instead of GROUP BY" 2021-04-30 08:09:22 +00:00
Tim Starling e1d2001040 EchoEventMapper: use DISTINCT instead of GROUP BY
I think the problem the GROUP BY was trying to solve was the potential
for there to be multiple rows with the same (etp_page,etp_event) pair.
There's no unique index to prevent that, and it would cause the event to
be duplicated in the result set. DISTINCT fixes that without generating
an error with sql_mode='ONLY_FULL_GROUP_BY'.

Per https://dev.mysql.com/doc/refman/8.0/en/distinct-optimization.html
DISTINCT is effectively shorthand for a GROUP BY with all the fields.

Bug: T281329
Change-Id: I6a0d578d729c33241a5c5fbd3f4e83f0e5fab83f
2021-04-30 09:40:25 +02:00
Željko Filipin 5d49c02f9f selenium: Add JUnit reporter
JUnit reporter is required to create the XML file that Jenkins uses to
create Test Result Trend chart for selenium-daily-beta-Echo
job.

Bug: T214686
Change-Id: I2dd3787ebfb20f6fee841d264de98bcd1da4b34e
2021-04-29 15:39:36 +02:00
jenkins-bot f43699503b Merge "Use ApiTestBase::doRequestWithToken" 2021-04-29 12:26:18 +00:00
Translation updater bot 573738a957 Localisation updates from https://translatewiki.net.
Change-Id: I2c591e11d0376b0cefebde3304a3f2c110f1699b
2021-04-29 08:54:04 +02:00
jenkins-bot 5dec26429b Merge "Replace usage of deprecated User watchlist methods" 2021-04-28 22:18:47 +00:00
Cindy Cicalese ccfb1dbbda Replace usage of deprecated User watchlist methods
Bug: T281187
Change-Id: Id380a5441e30041b6fb79f6ad1fc0506b6a770f9
2021-04-28 17:17:26 -04:00
Translation updater bot bcc5965d30 Localisation updates from https://translatewiki.net.
Change-Id: Ic65ad00a85b4d5f31f520b7b12b9e9d6a7e488b5
2021-04-28 16:43:05 +02:00
Translation updater bot c7c27eabad Localisation updates from https://translatewiki.net.
Change-Id: Ic14ed4a9b382bfa18cd17e78c675a5b06531222c
2021-04-28 08:48:16 +02:00
Translation updater bot a822b43fac Localisation updates from https://translatewiki.net.
Change-Id: Ibdb3104c96ce1b894b670720f3ed59ea359057c0
2021-04-27 08:38:06 +02:00
jenkins-bot b980a18231 Merge "selenium: Delete tests disabled for more than 1 year" 2021-04-26 15:19:41 +00:00
Translation updater bot 189f10903e Localisation updates from https://translatewiki.net.
Change-Id: If88a675f1e1fcad2155b2bea5c45b4793fea80c3
2021-04-26 09:10:14 +02:00
Translation updater bot 38e9c662d3 Localisation updates from https://translatewiki.net.
Change-Id: Ic18c4b4625d1c8b0634fdf2f501e271d85ec9c54
2021-04-22 09:31:18 +02:00
Translation updater bot 0c64945d51 Localisation updates from https://translatewiki.net.
Change-Id: Ic4c4333caa0c301bfebbdbfd46c1dbf9ce8c135a
2021-04-21 08:52:26 +02:00
Petr Pchelko 4750dbe3de Use ApiTestBase::doRequestWithToken
The old ApiTestCase::getTokenList relied on CSRF
token API deprecated in 1.26. Many years have passed,
it's time to swtich to new mechanisms.

Needed-By: I58aedec6942ac5d3c21574cb0072f00ef365098c
Change-Id: Iafe7a48eb0cdf8c2f1ec7fdee232c3f394fa15a3
2021-04-20 13:53:16 -07:00
Željko Filipin 64f1486d67 selenium: Delete tests disabled for more than 1 year
The entire mention.js file was disabled by Kosta Harlan
2 years ago in efd7594.

Bug: T280652
Change-Id: Id2c0bc8e73a58738d422df2abd9c9157f426ab15
2021-04-20 13:25:22 +00:00
Translation updater bot ec909f9b73 Localisation updates from https://translatewiki.net.
Change-Id: I7da6f321777f15714d61d62533c5ade04640554e
2021-04-19 08:50:23 +02:00
libraryupgrader cefce8b8fa build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: If1eaa61aefc93426217f675fca27873dd9db6dc1
2021-04-16 14:24:33 +00:00
Translation updater bot 839b833033 Localisation updates from https://translatewiki.net.
Change-Id: If6bdae194f44a4719755013d0ccf869c9c013a7a
2021-04-13 09:20:20 +02:00
Translation updater bot 50063fbba3 Localisation updates from https://translatewiki.net.
Change-Id: I8230eda39317bc68d3b4966d83ea251807eab914
2021-04-12 08:37:32 +02:00
Kunal Mehta 4baf6f2991 Update Legoktm's mailmap entry
Change-Id: If7064689c1c6abc138edc62e8dfbf5e29363b8b5
2021-04-11 19:15:52 -07:00
Translation updater bot c55bf96df1 Localisation updates from https://translatewiki.net.
Change-Id: I540de04300c0195fa66d270adf106a63c8c026da
2021-04-08 08:40:04 +02:00