Commit graph

104172 commits

Author SHA1 Message Date
jenkins-bot
cd14aa0806 Merge "Accept UserIdentity in code to manage edit counts" 2021-06-08 13:30:25 +00:00
jenkins-bot
0d1c1c7959 Merge "userOptions.php: allow specifying a user ID range to run on" 2021-06-08 12:30:03 +00:00
jenkins-bot
3b7471b659 Merge "userOptions.php: Properly filter and iterate query" 2021-06-08 12:23:27 +00:00
jenkins-bot
ed1d2a9b9c Merge "Allow passing mock Authority in API integration tests" 2021-06-08 12:20:07 +00:00
jenkins-bot
25d5e0513a Merge "TitleFormatter: fix typo ("of" -> "or")" 2021-06-08 07:11:37 +00:00
Translation updater bot
a5b5021b07 Localisation updates from https://translatewiki.net.
Change-Id: I8282eac014d05d00250daf7a6e729b565f5af37c
2021-06-08 08:35:07 +02:00
DannyS712
5a229f691f Accept UserIdentity in code to manage edit counts
- UserEditCountUpdate: accept UserIdentity instead of User
- Move User::incEditCount() to UserEditTracker

Change-Id: Ibf1482bcbcbf4d56fc06531bb3e17e2a6e3e2e6f
2021-06-08 05:41:03 +00:00
DannyS712
f34005d208 TitleFormatter: fix typo ("of" -> "or")
Change-Id: I0d14886a6544a3141feb4172c25ff869f56ef5af
2021-06-08 05:27:18 +00:00
Timo Tijhof
fc965abc4d Update wikimedia/minify to 2.2.3
Bug: T283244
Depends-On: Ia20b93f72fc3ed2aefffb236deaa81a1b4eb3bd1
Change-Id: I29fea7638992fbd02476049342bb2504dd372b92
2021-06-07 18:04:31 -07:00
jenkins-bot
8941540dc7 Merge "Remove most usages of User from ProtectionForm" 2021-06-07 20:38:31 +00:00
jenkins-bot
9836f51c36 Merge "Add selenium tests for page protection" 2021-06-07 20:38:26 +00:00
jenkins-bot
ab94819309 Merge "Stop requiring full User to upload a File." 2021-06-07 20:34:01 +00:00
Petr Pchelko
2a94694185 Stop requiring full User to upload a File.
This is slightly weird, cause we don't realllly need authority there,
it's required for creating a file description page. Good enough probably.

Manual testing:
 - uploaded a new file
 - uploaded a modified version of a file
 - deleted old version of a file
 - restored old version of a file
 - rotated image with api

Change-Id: I3d6337be974d6b2c7b055fe23875ff9d36174477
2021-06-07 12:48:48 -07:00
DannyS712
a84ad7bd40 Add some missing __METHOD__ parameters to database calls
Plus fix a typo

Change-Id: I8ca326990559ea80254ce0cef2ed204590716679
2021-06-07 19:28:51 +00:00
jenkins-bot
4bd96ff4a5 Merge "mediawiki.ui: Remove IE8 workaround code fragments" 2021-06-07 19:18:34 +00:00
Petr Pchelko
edb3a9a692 Allow passing mock Authority in API integration tests
This is a demo, a lot of tests could be rewritten as a followup
to pass proper Authority when executing tests instead of writing
globals. Much cleaner imho.

An improvement idea is to allow overriding 'default permissions'
when creating a mock Authority.

Change-Id: I38570024e0d5a67a8e1c52f7456c458090ec2b6e
2021-06-07 11:50:42 -07:00
jenkins-bot
130b9b05fc Merge "Remove workarounds for IE8 from TOC style" 2021-06-07 18:50:08 +00:00
Petr Pchelko
15f2576886 Remove most usages of User from ProtectionForm
Change-Id: I7571f70c21f725474ab0e1b0f59e40acd9190077
2021-06-07 11:41:47 -07:00
Petr Pchelko
ff4e6f59dc Add selenium tests for page protection
Change-Id: I31349f747dc1fa22c3bfbb3fe02386686aeb2cf1
2021-06-07 11:35:02 -07:00
Fomafix
16aeeb9520 Remove workarounds for IE8 from TOC style
The IE8 don't support the CSS pseudo-class `:checked` and therefor
matches CSS selectors with the prefix `:not( :checked ) >` never
on IE8 and always on newer browsers with support of `:checked`.
This was used to hide styles for IE8.

IE8 was the last browser that doesn't support `:checked` and the basic
support of IE8 was removed in MediaWiki 1.36.

Bug: T248061
Bug: T258766
Change-Id: Ie68e9dae441fe1dab57026c451d198c4ba332702
2021-06-07 18:29:05 +00:00
jenkins-bot
59cc41197a Merge "Remove Title param typehints from jobs" 2021-06-07 17:11:21 +00:00
jenkins-bot
f727262986 Merge "Add 'mobile' as a target for wvui ResourceLoader module" 2021-06-07 16:59:52 +00:00
Petr Pchelko
a747229116 Remove Title param typehints from jobs
Change-Id: I8d8407d704eac97d4b0574369e315e28e23a89a8
2021-06-07 09:52:46 -07:00
jenkins-bot
48be7724da Merge "Remove hard-deprecated ActorMigrationBase methods." 2021-06-07 16:46:22 +00:00
jenkins-bot
e0cff475c1 Merge "Add tests for Skin::getRelevantUser" 2021-06-07 16:44:16 +00:00
jenkins-bot
2b70e40aaf Merge "Add convenience constructors for PageReference/Identity" 2021-06-07 16:39:03 +00:00
jenkins-bot
ed2b395870 Merge "ConnectionManager: add optional $flags param" 2021-06-07 16:10:33 +00:00
Petr Pchelko
3e7a3554e9 Restore PHP 4.0 compatibility to PHPVersionCheck
Change-Id: Iede04d48730ce7dabe0a537a35752f59c1497e46
2021-06-07 08:24:11 -07:00
Petr Pchelko
25479475fe Add tests for Skin::getRelevantUser
Change-Id: I46245da5e4ee8c579c9ea28bb22a79ca1792f68d
2021-06-07 07:31:24 -07:00
Petr Pchelko
d9b3c66dbc Add convenience constructors for PageReference/Identity
Change-Id: Id2433f707ea84ea5a57f427fd606de4b109eef43
2021-06-07 07:31:24 -07:00
Volker E
51f5855c84 mediawiki.ui: Remove IE8 workaround code fragments
Removing `:not()` hack for disabling broken styling in IE8, which is
not supported anymore.

Bug: T258766
Change-Id: I0b97195d5da00ed164f2cc71484dbf69887e547d
2021-06-07 07:02:17 -07:00
jenkins-bot
5bc6425976 Merge "Remove unneeded title casts" 2021-06-07 13:55:25 +00:00
jenkins-bot
8dbf11c408 Merge "Hard deprecate BeforeResetNotificationTimestamp hook" 2021-06-07 13:47:17 +00:00
DannyS712
30c10a2e8d Remove unneeded title casts
Parser::parse() accepts PageReference, and
WikiPage::factory() accepts PageIdentity

Change-Id: If8d15863045d7690fd6d965341ec8564d50db2d7
2021-06-07 13:36:03 +00:00
Jakob Warkotsch
83b8860951 ConnectionManager: add optional $flags param
This is by Wikibase since ReplicaMasterAwareRecordIdsAcquirer (and
possibly other places) will switch from getting connections directly
from ILoadBalancer to using ConnectionManager. See e.g.:
024a06a3af/lib/includes/Store/Sql/Terms/Util/ReplicaMasterAwareRecordIdsAcquirer.php (202)

Bug: T283348
Change-Id: Icbe72068428a5434d9d2bd065249ff7ba5055702
2021-06-07 12:08:10 +02:00
jenkins-bot
4450daa310 Merge "Reapply "LocalFile: don't use dynamic property assignment when loading from the DB"" 2021-06-07 09:26:52 +00:00
jenkins-bot
79d37e51cc Merge "Add a composer command for the custom PHPUnit entry point" 2021-06-07 07:36:07 +00:00
Translation updater bot
6db88d0db6 Localisation updates from https://translatewiki.net.
Change-Id: I9c6eb65620fd45f3aeb5a5f469a64159823a53c1
2021-06-07 08:40:36 +02:00
Tim Starling
7f8adc13bf Reapply "LocalFile: don't use dynamic property assignment when loading from the DB"
Reapply the reverted commit which removed dynamic property assignment.
But continue to allow extra fields to be passed to newFromRow() for the
benefit of subclasses.

This reverts commit 9e8ff12a59.

Change-Id: Ia3c14c51541e06264891a51763a8dadde83fbab7
2021-06-07 15:01:30 +10:00
jenkins-bot
54729b8cd0 Merge "Add type hint to constructor of LanguageConverter" 2021-06-07 02:39:29 +00:00
Amir Sarabadani
0405f90120 preferences: Replace tab with space after opening parentheses
Follow-up to Idd6816eaf17d

Change-Id: I133d01c7e75d63aa71e6c87fd8360c7339ffa625
2021-06-06 20:46:10 +02:00
jenkins-bot
ef3dffeb34 Merge "preferences: Swap from 'help' key to 'help-message' key on htmlform" 2021-06-06 17:50:53 +00:00
DannyS712
aa417bff5f Hard deprecate BeforeResetNotificationTimestamp hook
Appears unused

Bug: T271715
Change-Id: I02f9ee6cd9e4abd8d045fd2e1ae767869bee4a1a
2021-06-06 14:01:18 +00:00
Pppery
9a3d2e5a36 Add information about revision-deleted log events to API docs
Bug: T274698
Change-Id: I3f64c02846969ec82429bc7e6e51dd611e674bed
2021-06-06 11:20:55 +00:00
DannyS712
3dc01651b2 Make MockAuthorityTrait stable to use
Document the trait to be stable to use by extensions' tests

Change-Id: I58661943c7e1acb6ff09798ee1a30be0fde3f459
2021-06-06 04:08:17 +00:00
jenkins-bot
0fb92137aa Merge "Followup to DatabaseBlock constructor options deprecations" 2021-06-05 23:28:36 +00:00
Ammarpad
a8c01d7726 Rename name_title index to have page_ prefix
Bug: T270033
Change-Id: Id70d0e0a37dd0d000079820d51cef2791f5ec42e
2021-06-05 20:21:07 +02:00
Petr Pchelko
a43dcc7c2e Followup to DatabaseBlock constructor options deprecations
One case in a test dataProvider was forgotten, so CI didn't fail,
since it's a dataProvider.

Change-Id: I13ee03aab106f2d04555286c8ebc320930773f08
2021-06-05 07:31:28 -07:00
DannyS712
c8c58ad6c6 Add 'mobile' as a target for wvui ResourceLoader module
Bug: T280828
Bug: T284367
Change-Id: Id04ac4eb353b54a21aefacba1ff376255baefe09
2021-06-05 10:17:08 +00:00
MarcoAurelio
238d987e27 MessagesTvy.php: Update User and User_talk namespace names
Bug: T283194
Change-Id: I0ed36f3dd84446ce0969324129dd0faf25b2a5d3
2021-06-04 21:59:14 +00:00