James D. Forrester
4bae64d1c7
Namespace includes/context
...
Bug: T353458
Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
2024-02-08 11:07:01 -05:00
Bartosz Dziewoński
4aebcfe097
Change more uses of getDBLoadBalancerFactory() to getConnectionProvider()
...
Some less trivial cases. Also update variable names.
This doesn't really change anything, but I hope it helps promote
getConnectionProvider() as the common way to do this.
Follow-up to 8604c384f6 .
Change-Id: I6657d783375fac5c7fa856b884ff1fb09285e94c
2024-01-23 16:34:45 +01:00
thiemowmde
46bed8ac6d
Make use of assertStatusGood/Error and such in tests
...
Change-Id: I11eace3d9823ca28a1d9a64f959f5f8ca2945821
2023-10-04 17:16:00 +00:00
James D. Forrester
459cbb0494
Namespace remaining 'specialpage' files under \MediaWiki\SpecialPage
...
SpecialPageFactory is already here, but none of the others were yet.
Bug: T166010
Change-Id: I9689bf0a1ab329625e23669b99f019b96295fffd
2023-09-18 18:23:13 +01:00
Func
c824a281a9
SpecialLog: Only set valid local user as the relevant user
...
Bug: T344886
Change-Id: I66fa9df57304a4922bb98285c8b82237dc851b2f
2023-08-24 23:47:25 +08:00
Marius Hoch
8b1eff6f44
SpecialLogTest: Test getting full suppression log
...
This was recently broken in 23ad1fd91b and
subsequently fixed in dc9a6b2941 .
Change-Id: I282dc5db7f29458ed6879a6a99ddff8bc07bada4
2023-06-16 11:11:26 +02:00
Marius Hoch
23ad1fd91b
Add tests for Special:Log/suppress, fix for PostgreSQL
...
Also handle unknown "offender" actors more nicely.
Change-Id: Iaf30aae9f14c5a8edc44b89ea67acd6a96909d66
2023-06-15 10:19:56 +02:00
James D. Forrester
711295fb5d
Namespace SpecialL* under \MediaWiki\Specials
...
Plus two redirect specials.
Change-Id: Ie56f96894f6bfbdb9bc093fce8b72b18f8adce86
2023-05-04 19:27:38 +00:00
Amir Sarabadani
830c51f0a2
Specials: Mass switch everything to IConnectionProvider from LB
...
Bug: T330641
Change-Id: Ie1772da59f92213fea598f02385c3e0ac6d200a7
2023-04-19 19:19:16 +02:00
Amir Sarabadani
bbe704b5c1
Reorg: Move some of request related classes to MediaWiki/Request
...
Redoing I5ea70120d74 but without moving WebRequest that caused issues
with phan-taint-plugin.
Moving:
- DerivativeRequest
- FauxRequest
- FauxRequestUpload
- PathRouter
- WebRequestUpload
Bug: T321882
Change-Id: I832b133aaf61ee9f6190b0227d2f3de99bd1717b
2022-10-28 10:15:31 +00:00
Zabe
f6b9381d7f
Revert "Reorg: Move some of request related classes to MediaWiki/Request"
...
This reverts commit 2bdc0b2b72 .
Reason for revert: T166010#8349431
Bug: T166010
Change-Id: Idcd3025647aec99532f5d69b9c1718c531761283
2022-10-27 13:14:16 +00:00
Amir Sarabadani
2bdc0b2b72
Reorg: Move some of request related classes to MediaWiki/Request
...
Moving:
- DerivativeRequest
- FauxRequest
- FauxRequestUpload
- PathRouter
- WebRequest
- WebRequestUpload
Bug: T166010
Change-Id: I5ea70120d745f2876ae31d039f3f8a51e49e9ad8
2022-10-26 16:49:10 +02:00
Tim Starling
0077c5da15
Use short array destructuring instead of list()
...
Introduced in PHP 7.1. Because it's shorter and looks nice.
I used regex replacement.
Change-Id: I0555e199d126cd44501f859cb4589f8bd49694da
2022-10-21 15:33:37 +11:00
Alexander Vorwerk
fd094c5bb7
Inject UserIdentityLookup into SpecialLog
...
Change-Id: Ifc17a7ef38da60ec1534b39df1657f2394cbcb59
2021-09-25 18:36:37 +02:00
daniel
4dce6dd0c3
Deprecate UserIdentity::getActorId()
...
Note: User::getActorId() is not (yet) deprecated.
Bug: T274179
Change-Id: Ic2ca6d489db821fc2334e53bf2496c7b0d3ea5b1
2021-03-13 19:45:57 +01:00
Petr Pchelko
bfa145fae7
Convert second batch of special pages to authority
...
Depends-On: Ifc82d29a00d3fd136c44e0699e6bbfa11b8cf2a6
Change-Id: Iaf559a72cc47ec5d2481d7f740ad0eb303c94002
2021-03-04 15:37:59 -07:00
Umherirrender
7d14ded394
Inject services into SpecialLog
...
This covers only directly used services by this special page and pager
Services used by the base class are not part of this patch set
Bug: T259960
Change-Id: Ib4b5edf6b4c56ef626875df8d95496225cddf501
2020-10-26 16:25:17 +00:00
Daimona Eaytoy
f5529400cc
Stop using assertContains with string haystack
...
This was done automatically by replacing every assertContains with
string *needle*. Then verifying the results.
Bug: T192167
Change-Id: Id8cbbf3b01e948f80046714183cc299f86be21fd
2019-12-15 00:22:44 +00:00
Kunal Mehta
f198154d76
SpecialLog: Don't throw exceptions on invalid date from user input
...
If users provide invalid input to the date option on Special:Log (most likely
an intentional thing given the calendar input widget), don't let the
TimestampException bubble up - just discard the invalid date.
Integration test included, which fails without this patch.
Bug: T201411
Change-Id: Ie1a9a84343ae4e78e076586f759917e5fd5af33c
2018-09-24 08:56:48 -07:00