Commit graph

297 commits

Author SHA1 Message Date
jenkins-bot
bd53d75d5b Merge "User: Hard-deprecate some methods with no uses in WMF production" 2024-05-03 10:28:02 +00:00
Alexander Vorwerk
00f7efc080 Update list of default interwiki links
updated list was proposed by Quiddity at T71997#8257757

Bug: T71997
Change-Id: Ie202678d04185250619e7413b88c158df99cce80
2024-05-03 09:07:26 +00:00
Taavi Väänänen
94acff644a
User: Hard-deprecate some methods with no uses in WMF production
Change-Id: I13fe4d9a35bac0e51960722b1436783a22fef745
2024-05-03 11:42:45 +03:00
Taavi Väänänen
49bb502ca8 User: Drop several hard-deprecated methods
Bug: T277511
Change-Id: Ifea9eb11884ff52b22631b309ff0489332e741ba
2024-05-03 11:03:47 +03:00
James D. Forrester
61ea828f89 ImportableUploadRevisionImporter: Mark downloadSource() as private, missed when caller removed in 1.40
Change-Id: I02ef2144dc6ead8c9232b20bd8e4647779b11ff4
2024-05-02 21:39:06 +03:00
James D. Forrester
a06bf12c86 Drop TablePager::getBody(), deprecated since 1.24
Change-Id: Id7ee6a55938723dc426ca54c7c37d50415f819da
2024-05-02 21:36:12 +03:00
jenkins-bot
5cb1d48c80 Merge "ContentHandler: Hard-deprecate deprecated methods" 2024-05-02 06:48:03 +00:00
Amir Sarabadani
95a8a88147 rdbms: Hard-deprecate DBAccessObjectUtils::getDBOptions()
Bug: T354194
Change-Id: Ia9f030d3072ba728ddb7b0994ad0a49797a5dcae
2024-05-02 07:44:49 +02:00
jenkins-bot
e9e8c62bf5 Merge "rdbms: Move ILoadBalancer::laggedReplicaUsed() to ILoadBalancerForOwner" 2024-05-01 18:30:49 +00:00
jenkins-bot
b0a948eeba Merge "rdbms: Remove IReadableDatabase::getReplicaPos()" 2024-05-01 12:16:23 +00:00
James D. Forrester
a5a10aff9b ContentHandler: Hard-deprecate deprecated methods
Depends-On: If0049aabff2dedfcecf739dbbcf688d16d9cc864
Depends-On: I7f82748be5a7c16525bc57e33ebeb0bb974267b9
Change-Id: Ife87b189e73883cfc8a4ef115d431ec8ad37dea7
2024-05-01 07:41:18 +01:00
lwatson
67a28b0a4f Update Codex from v1.4.0 to v1.5.0
This commit does not yet delete the following files, which are still
used by MinervaNeue:
- resources/lib/codex-design-tokens/theme-codex-wikimedia-experimental.css
- resources/lib/codex-design-tokens/theme-codex-wikimedia-experimental.less
- resources/lib/codex-design-tokens/theme-codex-mode-dark.less

These files will be deleted in a follow-up change.

Bug: T346168
Bug: T360069
Bug: T360071
Bug: T360079
Bug: T360806
Bug: T361325
Bug: T362709
Bug: T362710
Bug: T362861
Bug: T363006
Bug: T363137
Depends-On: I350cb2dcf2de2e1944fffd38c8cafe9522706f0c
Depends-On: I539f4523b8d15a7815b303078529eb945c479be4
Depends-On: Icfcb5c7418061a5727580f0685054356ba4edb72
Change-Id: I1f54bf4f144eaec6ed317c04bd0c851c2f01b42c
2024-04-30 23:30:12 +00:00
Seb35
097474935c api: In userinfo, return null as registrationdate for pre-2005 users
The current behaviour was to return the current date, which is very
wrong; this is now null when the registration date is not known (users
created before December 2005).

Bug: T360857
Change-Id: I658a6e38abc42a93d9dbfe91f1e99e6387c17695
2024-04-30 21:23:16 +02:00
jenkins-bot
404d09f014 Merge "Add apc autonym to MediaWiki" 2024-04-30 18:31:46 +00:00
Derk-Jan Hartman
12fc918b4c Add apc autonym to MediaWiki
MessagesApc.php is mostly copied from MessagesAr.php.

Bug: T290657
Change-Id: I10c94ca1bbb168c2d8ec0825a9b9e13cd854d284
2024-04-30 20:54:38 +03:00
Amir Sarabadani
f3db54c5cf rdbms: Move ILoadBalancer::laggedReplicaUsed() to ILoadBalancerForOwner
Unused outside of LBF

Bug: T363839
Change-Id: I46b46c3078dd3a8ff5f868d60720423e0994a92a
2024-04-30 18:31:05 +02:00
Amir Sarabadani
7f0458b472 rdbms: Remove IReadableDatabase::getReplicaPos()
Completely unused.

Bug: T363839
Change-Id: I041ab5ce57ef116076dcc07b2035b5336ceff032
2024-04-30 18:30:56 +02:00
Amir Sarabadani
cd6bc8329e rdbms: Hard-deprecate LoadBalancer::getConnectionRef()
Soft-deprecated since 1.39, not used in any deployed extension (migrated
via LSC).

Bug: T326274
Change-Id: I223f04384b4a758471bfc73ffc081e5d55ddcd97
2024-04-30 13:31:09 +01:00
jenkins-bot
7713493727 Merge "rdbms: Deprecate IDatabase::lockForUpdate" 2024-04-29 11:42:27 +00:00
Kosta Harlan
30287f6be6
Temporary accounts: Create user on edit save attempts
Why:

- Certain hooks and constraints that deny edits (SpamBlacklist,
  AbuseFilter) generate manual log entries; these logs need to
  reference an actor. The actor should be the same across multiple
  failed attempts to save an edit.
- In order to hide the IP address associated with the request,
  we can create a temporary account for every edit attempt, to
  ensure that we associate the request with the log entry.

What:

- Create the temporary account at the beginning of
  `EditPage::internalAttemptSave`. This is a change from the previous
  temporary account creation paradigm, which created an account for a
  successful edit attempt.
- Remove the pageUpdater->isChange check, as we don't have a pageUpdater
  object at time of temp account creation.
- Temporary accounts are also created for no-op changes (pressing
  "Publish" with unchanged wikitext editor contents)
- Note that temporary accounts are *not* created when permission related
  errors are present in the edit attempt (e.g. a user attempts to edit
  from a blocked IP address)

Bug: T359405
Change-Id: Ib6765f828681e70d798363338910a54c7de4ed67
2024-04-29 10:55:20 +02:00
Umherirrender
f63680e98b rdbms: Deprecate IDatabase::lockForUpdate
Bug: T363611
Change-Id: Ibb2c35fdfc0cd0a6459035eef457496d2857bb83
2024-04-28 22:08:51 +02:00
jenkins-bot
8c5c0edbfa Merge "TestsAutoLoader: Remove old PHPUnit class aliasing" 2024-04-28 15:38:47 +00:00
jenkins-bot
47883f3e7e Merge "Run pagelinks migration for third parties too" 2024-04-27 21:56:41 +00:00
Amir Sarabadani
cf77897613 Run pagelinks migration for third parties too
Production is read new almost everywhere, mediawiki core should reflect
that as well.

Bug: T299947
Change-Id: I8f05c4d7026394205bfc54b68dc725392852ae2a
2024-04-27 16:57:37 -04:00
Bartosz Dziewoński
6c47bfbd88 OutputPage: Deprecate showFatalError()
It's just a worse version of showErrorPage().

Only 1 use in MediaWiki core, no uses in WMF-deployed extensions,
very few uses elsewhere.

Change-Id: I091e789891f60ed97dd84a25c2b2e0456a1af01e
2024-04-26 00:10:06 +02:00
jenkins-bot
fe2d1e3b80 Merge "Remove error printing in MWException" 2024-04-25 21:14:04 +00:00
Bartosz Dziewoński
3bb9d855c1 Remove error printing in MWException
Was deprecated in I66d896f6f229b90e6ba9949311b56a6b6ab3da3d.

Bug: T353444
Change-Id: I004b1b87a7ef1a908123369842792d940b7d8079
2024-04-25 11:58:53 +00:00
Derick Alangi
cc7f3757b5
objectcache: Drop SerializedValueContainer::isUnified
This method was deprecated in 1.42 and now can be dropped from
MW core.

In addition, some cosmetic changes in this patch:
* Type-hint `isSegmented()` to return bool.

Bug: T344521
Change-Id: Idace008e9a961953041bd21b499bfec3f8226142
2024-04-23 15:49:32 +01:00
Taavi Väänänen
6f808c3ac9
Drop hard-deprecated ConfigFactory::getDefaultInstance()
Bug: T325966
Change-Id: I3c3c11946c5aa975358cd3a1cc8289b9be89e694
2024-04-21 23:22:38 +03:00
Taavi Väänänen
f28348d9c0
Hard-deprecate ContentHandler::getContentText()
No remaining uses in WMF-deployed extensions. (Although there is a
similarly named but separate function in CiteThisPage.)

Bug: T268041
Change-Id: Iec68845c631758fe85d32a939b28b6d8b1243858
2024-04-21 22:15:09 +03:00
Taavi Väänänen
e2fd40cb77
Drop hard-deprecated Parser::getFreshParser
Bug: T325959
Change-Id: I6c4f33d7b1104756559043290a13ffccd3941d07
2024-04-21 22:06:10 +03:00
Taavi Väänänen
092540e393
Drop hard-deprecated UserGroupMembership::getGroupName/getGroupMemberName
Bug: T325673
Change-Id: Idfe220b10dcf870bdc17cd784aab66e21964e0d8
2024-04-21 22:06:10 +03:00
Aaron Schulz
6afeea6ce1 rdbms: hard-deprecate SqlPlatform::tableNames()
Change-Id: Iaee516dc25c50f8c423708bc514ee765b0697ba3
2024-04-19 08:41:36 -04:00
Eric Gardner
2c330e6acd Update Codex from 1.3.6 to 1.4.0
Bug: T331403
Bug: T349793
Bug: T357714
Bug: T358861
Bug: T360341
Bug: T360939
Bug: T361115
Bug: T361541
Bug: T361734
Bug: T361908
Bug: T361994
Bug: T362270
Change-Id: I4711dd4f56307cd4e4c84134eb247c2108963511
2024-04-17 14:01:39 -07:00
Aaron Schulz
995cc0982e rdbms: deprecate ISQLPlatform::tableNamesN()
Change-Id: I838af610047bcb71e4155cd0e1f52a0062f6f651
2024-04-16 15:34:15 -07:00
Aaron Schulz
086ed2e295 rdbms: deprecate IMaintainableDatabase::textFieldSize
Change-Id: I3d4f75e4f7f4518fc40194d36bd8cf6ea294b03c
2024-04-16 13:04:32 -07:00
Derick Alangi
791cb9f676
search: Use ServiceOptions not full config object
This patch uses the recommended MW practice for injecting
settings into MW services. Instead of passing in the full
config object, pass in service options which MW service wiring
will use to lookup settings/options from config sources.

So in this patch, the various options have been identified
and put into `CONSTRUCTOR_OPTIONS` constant and inject via
service wiring.

Test plan
=========
Ensure that the special page: `Special:Search` still works
with this patch checkout on your local test wiki.

When you visit `Special:Search` on your local wiki, you should
see a search form view. Type in something like: "Main Page" and
then hit search. If everything works well, then local test passes.

NOTE
====
This patch also resolves a TODO which mentions the removal of
the `getConfig()` method from the SearchEngineConfig class.

Change-Id: Ib5dfc10f3f210c6c35247f4f30f9549dd60e0af7
2024-04-16 15:50:43 +01:00
jenkins-bot
7cae749cab Merge "htmlform: Remove the reset button" 2024-04-15 19:12:23 +00:00
Volker E.
48459c0c62 htmlform: Remove the reset button
Nowhere it has ever been activated for many years.
Nobody has been missing it.
Nobody wants it.

Bug: T361032
Depends-On: I2761d634b2c351d755c664778ee0a4796d67c37b
Depends-On: I419cba60e43e10a0a3003f911bd125573b3b7cd7
Change-Id: I067866abc9cc6acdcf05b6048416cfa6caad66d6
2024-04-15 18:46:58 +00:00
daniel
53a16f757b REST: Deprecate using "post" as the parameter source
Note that "post" parameters remain accessible through
getValidatedParams(), while "body" parameters have to be
accessed though getValidatedBody().

This adds a numebr of tests that ensure that this remains to be the case, while deprecation warnings are triggered when appropriate.

Bug: T358560
Change-Id: Ia0eedb383e69b48a0baa0895a8c9d2229f670367
2024-04-15 20:02:06 +02:00
Reedy
33a4792b97 TestsAutoLoader: Remove old PHPUnit class aliasing
Change-Id: If19fb70d778570a862e2b54d4d68a4ac3d446604
2024-04-15 11:04:47 -04:00
jenkins-bot
3dade35b0a Merge "StatusValue: Add a getter for MessageSpecifier list" 2024-04-11 12:06:50 +00:00
jenkins-bot
fe1d552ba2 Merge "Document more methods that accept MessageSpecifier, not just Message" 2024-04-11 12:06:43 +00:00
James D. Forrester
da70c43115 build: Upgrade eslint-config-wikimedia to 0.27.0
Two odd compat/compat warnings not detecting the implicit sniffs.
Otherwise a no-op.

Change-Id: Ibfbf8f2653a0954f773ebdd98268d02f7b978eb6
2024-04-09 19:57:03 -04:00
Bartosz Dziewoński
f818da9351 StatusValue: Add a getter for MessageSpecifier list
An array of MessageSpecifier objects is easier to deal with than the
"legacy error array" format, which is an array of whatever wfMessage()
accepts, which can be a bunch of different things.

Deprecate some existing getters.

Change-Id: Ibc4ce11594cf36ce7b2495d2636ee080d3443b04
2024-04-10 00:13:04 +02:00
Bartosz Dziewoński
02044a5ba1 Document more methods that accept MessageSpecifier, not just Message
These methods can already handle any MessageSpecifier, but their
documentation didn't show this.

Change-Id: I1323d18baf17a8a27cc9bed31860c4cc89e61a22
2024-04-09 20:25:18 +02:00
James D. Forrester
b62087dea2 Prepare active branch following REL1_42 cut, labelling as 1.43-alpha
Bug: T359839
Change-Id: Idf875e340520f9d05869f9d5d2df34f782d977c5
2024-04-08 21:35:12 -04:00