Commit graph

1891 commits

Author SHA1 Message Date
Ebrahim Byagowi
f060e53ec0 Add namespace and deprecation alias to RedisPubSubFeedEngine
This patch introduces a namespace declaration for the
Wikimedia\RCFeed to RedisPubSubFeedEngine and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: If5b8a0b1f957e46f29907711079389fe543941d0
2024-05-19 21:38:22 +03:30
jenkins-bot
43cfa970e3 Merge "Add namespace and deprecation alias to MachineReadableRCFeedFormatter" 2024-05-19 15:32:02 +00:00
jenkins-bot
cc85512fbd Merge "Add namespace and deprecation alias to WatchedItemQueryServiceExtension" 2024-05-19 15:31:52 +00:00
Ebrahim Byagowi
fe4bbc8918 Add namespace and deprecation alias to WatchedItemQueryServiceExtension
This patch introduces a namespace declaration for the
MediaWiki\Watchlist to WatchedItemQueryServiceExtension and
establishes a class alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I65b414013291b0ca21288b70e29530bba3f7e22e
2024-05-19 17:42:59 +03:30
Ebrahim Byagowi
8e5b26837b Add namespace and deprecation alias to CssContentHandler
This patch introduces a namespace declaration for the
MediaWiki\Content to CssContentHandler and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I5504c21b4fabd6ce82c4dac37aacd1c74462c41b
2024-05-19 17:01:54 +03:30
Ebrahim Byagowi
65dca958f1 Add namespace and deprecation alias to MachineReadableRCFeedFormatter
This patch introduces a namespace declaration for the
MediaWiki\RCFeed to MachineReadableRCFeedFormatter and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I51110d3b05ae6d2927c49dea5c3fd05f418f595b
2024-05-19 17:00:02 +03:30
Reedy
5ab70409f5 Namespace includes/password
Bug: T353458
Change-Id: I1a701b5b7ff65356692abb0efde9a2207b6135b6
2024-05-18 16:17:38 +01:00
jenkins-bot
440edd14fd Merge "Add namespace and deprecation alias to CssContent" 2024-05-18 00:05:32 +00:00
jenkins-bot
c8c058aa0c Merge "Add namespace and deprecation alias to WatchedItemQueryService" 2024-05-17 23:54:15 +00:00
Ebrahim Byagowi
1e4f59b724 Add namespace and deprecation alias to WatchedItemQueryService
This patch introduces a namespace declaration for the
MediaWiki\Watchlist to WatchedItemQueryService and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Ib1b5c19c89087940987730939e84c8cd35cd3760
2024-05-18 01:50:29 +03:30
Ebrahim Byagowi
6316a253aa Add namespace and deprecation alias to CssContent
This patch introduces a namespace declaration for the
MediaWiki\Content to CssContent and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I6ab25787893cb2195f8cd2ba125ed8dd5a60de43
2024-05-18 01:48:53 +03:30
Ebrahim Byagowi
c1c8c3640d Add namespace and deprecation alias to JSONRCFeedFormatter
This patch introduces a namespace declaration for the
MediaWiki\RCFeed to JSONRCFeedFormatter and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Ibd3ef6c4e2c9381fd83030e89d6fa645067c02b1
2024-05-18 01:47:27 +03:30
jenkins-bot
f5a53b215f Merge "Add namespace and deprecation alias to IRCColourfulRCFeedFormatter" 2024-05-17 13:35:57 +00:00
jenkins-bot
248177c05b Merge "Add namespace and deprecation alias to JavaScriptContentHandler" 2024-05-17 12:50:57 +00:00
Ebrahim Byagowi
d83cb5924f Add namespace and deprecation alias to IRCColourfulRCFeedFormatter
This patch introduces a namespace declaration for the
MediaWiki\RCFeed to IRCColourfulRCFeedFormatter and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I78061ed136208f974e864a9622264409979ba120
2024-05-17 16:00:04 +03:30
jenkins-bot
3de2660421 Merge "Add namespace and deprecation alias to FormattedRCFeed" 2024-05-17 12:00:34 +00:00
Ebrahim Byagowi
f0c5cd0d33 Add namespace and deprecation alias to JavaScriptContentHandler
This patch introduces a namespace declaration for the
MediaWiki\Content to JavaScriptContentHandler and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Ic30789d4e80a27004b6bc3b3ba891a7332a5e1ba
2024-05-17 15:06:40 +03:30
jenkins-bot
b4e403a44d Merge "Add namespace and deprecation alias to RenameUserJob" 2024-05-17 11:22:02 +00:00
Ebrahim Byagowi
706e424eea Add namespace and deprecation alias to FormattedRCFeed
This patch introduces a namespace declaration for the
MediaWiki\RCFeed to FormattedRCFeed and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Ia929fdc9899a7a5328521fef437e59c4d583b48a
2024-05-17 14:48:34 +03:30
jenkins-bot
124854562b Merge "Add namespace and deprecation alias to JavaScriptContent" 2024-05-17 11:08:50 +00:00
Ebrahim Byagowi
560c0d9a96 Add namespace and deprecation alias to RenameUserJob
This patch introduces a namespace declaration for the
MediaWiki\RenameUser to RenameUserJob and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Ibf7d6d54e0047c6c298c02926d8a811d26f6361c
2024-05-17 14:21:12 +03:30
jenkins-bot
01c517be20 Merge "Add namespace and deprecation alias to WatchedItem" 2024-05-17 10:42:01 +00:00
Ebrahim Byagowi
ccde5085de Add namespace and deprecation alias to JavaScriptContent
This patch introduces a namespace declaration for the
MediaWiki\Content to JavaScriptContent and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I87c17327911e28a461feaf2ff46242454cff257a
2024-05-17 13:51:18 +03:30
Ebrahim Byagowi
03dc841a08 Add namespace and deprecation alias to WatchedItem
This patch introduces a namespace declaration for the
MediaWiki\Watchlist to WatchedItem and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Id2a582b624f21867240def2541c98ce5b1bd12b4
2024-05-17 13:26:36 +03:30
Ebrahim Byagowi
29bb97dd30 Add namespace and deprecation alias to RCFeed
This patch introduces a namespace declaration for the
MediaWiki\RCFeed to RCFeed and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I2e63e05901a75d8cf8a1e9d874dc916c0a5749a4
2024-05-17 13:18:07 +03:30
jenkins-bot
c4591b28f3 Merge "Add namespace and deprecation alias to WatchlistExpiryJob" 2024-05-16 22:58:08 +00:00
Ebrahim Byagowi
bd2186338c Add namespace and deprecation alias to WatchlistExpiryJob
This patch introduces a namespace declaration for the
MediaWiki\Watchlist to WatchlistExpiryJob and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Ia0a85c9d7550edc972ea512606dfcf272c71a6cd
2024-05-17 01:40:57 +03:30
Ebrahim Byagowi
d8ea17470c Add namespace and deprecation alias to RCFeedFormatter
This patch introduces a namespace declaration for the
MediaWiki\RCFeed to RCFeedFormatter and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: Ief351b40fb117e57a868ef7618df2109b550ff58
2024-05-16 23:11:17 +03:30
jenkins-bot
600e7aca09 Merge "filerepo: extract AuthenticatedFileEntryPoint from img_auth.php" 2024-05-16 15:26:34 +00:00
Ebrahim Byagowi
a717db8e60 Add namespace and deprecation alias to FormatJson
This patch introduces a namespace declaration for the
MediaWiki\Json to FormatJson and establishes a class
alias marked as deprecated since version 1.43.

Bug: T353458
Change-Id: I5e1311e4eb7a878a7db319b725ae262f40671c32
2024-05-16 16:28:01 +03:30
Ebrahim Byagowi
14b4269d83 Add namespace and deprecation alias to Xml and XmlSelect
This patch introduces a new namespace declaration,
MediaWiki\Xml and adds Xml and XmlSelect to it
and establishes class aliases marked as deprecated
since version 1.43.

Bug: T353458
Change-Id: I45cccd540b6e15f267d3ab588a064fbeb719d921
2024-05-16 15:23:14 +03:30
daniel
12aa2374ab filerepo: extract AuthenticatedFileEntryPoint from img_auth.php
The idea is that all entry points should share the code in the
MediaWikiEntryPoint base class. This change just moves code from
the file scope into a class, without any structural changes.

Bug: T354216
Change-Id: Ie2e827d30a070bcc63bdce56891c3aa0a4dacddd
2024-05-16 13:22:00 +02:00
jenkins-bot
2354ec3184 Merge "Revert "Revert "Add ContributionsPager, an abstract parent for ContribsPager""" 2024-05-15 13:28:37 +00:00
jenkins-bot
29cb634a5c Merge "Revert "Revert "Make ContributionsSpecialPage parent for SpecialContributions""" 2024-05-15 13:21:27 +00:00
jenkins-bot
060157bafd Merge "Remove DummyLinker" 2024-05-13 18:56:44 +00:00
Bartosz Dziewoński
2b58278477 Remove DummyLinker
DummyLinker existed for backwards-compatibility with a few hooks that
have since been removed, e.g. 'LinkBegin'. The last hook using it is
'ImageBeforeProduceHTML', and it looks like it can be harmlessly
replaced there with `null` (none of the extensions implementing the
hook use this parameter).

Change-Id: I69689b2037269af3320b6203fc44755f93713489
2024-05-13 20:18:28 +02:00
jenkins-bot
cf6d252ead Merge "watchlist: Move un-namespaced watcheditem classes to /includes/watchlist/" 2024-05-13 16:07:36 +00:00
jenkins-bot
17e9c09d0c Merge "Move various job classes to relevant component directories" 2024-05-13 16:07:27 +00:00
Thalia
5362096f27 Revert "Revert "Add ContributionsPager, an abstract parent for ContribsPager""
This reverts commit e6fb3df2a6.

This re-instates I08a5d39036047484e3b44fcd83989072006b88e2.

Bug: T363358
Change-Id: I847c60a493d9973554ceb1232f3799c42321ee2b
2024-05-13 15:38:34 +01:00
Thalia
c2041e87f5 Revert "Revert "Make ContributionsSpecialPage parent for SpecialContributions""
This reverts commit 1f4bb6651a.

This re-instates Ic00fa3297fb08eacf570d3ec3fcf64925fcf69c5.

Bug: T363358
Change-Id: Ibf4f382f5aaf4447cfe9404d5dd8b6b59b314cdc
2024-05-13 15:35:59 +01:00
Lucas Werkmeister
3074f3f773 Add Special:TalkPage for redirecting to talk pages
This is useful to link to the talk page of a page that is only known by
its title without needing to parse it or make any API requests.

I originally had the class extend RedirectSpecialPage, but couldn’t make
the form work properly that way, so eventually I opted to extend
FormSpecialPage instead and implement the redirect behavior directly.

Cache behavior is moderately aggressive, pinned to the parser cache
expiry, as these redirects should only need to change when the
namespace settings are updated.

Bug: T242346
Change-Id: I531b0b061d1ff1fef9ceffd6c82dc34940ba653d
2024-05-13 11:54:39 +02:00
Timo Tijhof
c68eb007ea watchlist: Move un-namespaced watcheditem classes to /includes/watchlist/
Bug: T364652
Change-Id: I264024784e8147fa421c8a13e8ae4541d8735f78
2024-05-10 21:07:20 +01:00
Timo Tijhof
b432fd2f20 Move various job classes to relevant component directories
Motivation:

* Remove need to hardcode out-of-component files in various places.
  Especially for Gerrit queries, this not only reduces effort but
  also makes these files more likely to show up in the first place.
* Clarify component boundaries and ownership, e.g. when filing tasks
  with a stack trace.
* Now rather than later, to avoid need for multiple class renames and
  aliases when PSR-4 namespaces are applied later (T166010).

Background:

Similar to how jobs in extensions belong to that extension, the same
is true within core. There is a distinction between the JobQueue system,
and individual jobs belonging to a specific feature or component,
likewise for deferred updates, and special pages.

To make a begin with this, I propose moving the job classes to their
respective components for cases where component boundaries are already
clear. E.g. due to exclusively being queued by that same component,
being named/introduced by the same commit, being already documented
as such in component descriptions on mediawiki.org.

Bug: T364652
Change-Id: I73d6b97c6ca9f5abd29f4277d0f845426aa23bd0
2024-05-10 20:14:00 +01:00
Tim Starling
a5372218b7 block: Deprecate and stop using $wgBlockTargetMigrationStage
* Deprecate and stop using $wgBlockTargetMigrationStage. Remove
  block_target migration code.
* Make the $schema parameters to DatabaseBlockStore methods default to
  SCHEMA_BLOCK. Avoid passing these parameters where possible.
* Remove cleanupBlocks.php
* Deprecate DatabaseBlock static methods which try to present the old
  schema for b/c.

Bug: T362133
Change-Id: I845bad8cc09a4528fef46a6f9d490ebdec881d99
2024-05-10 15:54:17 +10:00
jenkins-bot
9f5a0be099 Merge "Revert "Make ContributionsSpecialPage parent for SpecialContributions"" 2024-05-09 19:40:05 +00:00
jenkins-bot
04787125e8 Merge "Revert "Add ContributionsPager, an abstract parent for ContribsPager"" 2024-05-09 19:39:16 +00:00
DannyS712
1f4bb6651a Revert "Make ContributionsSpecialPage parent for SpecialContributions"
This reverts commit 4e5917441d.

Reason for revert: breaking change, caused T364569

Bug: T364569
Bug: T363358
Change-Id: Ie5b899c31844a1ff1c3fba279638980d3e0ef176
2024-05-09 17:29:45 +00:00
DannyS712
e6fb3df2a6 Revert "Add ContributionsPager, an abstract parent for ContribsPager"
This reverts commit e1ffed0af6.

Reason for revert: breaking change, caused T364569

Bug: T364569
Bug: T363358
Change-Id: I08a5d39036047484e3b44fcd83989072006b88e2
2024-05-09 17:28:32 +00:00
jenkins-bot
47987acdfd Merge "Add ContributionsPager, an abstract parent for ContribsPager" 2024-05-09 13:13:38 +00:00
jenkins-bot
5b9bde475a Merge "Make ContributionsSpecialPage parent for SpecialContributions" 2024-05-09 12:51:56 +00:00