Commit graph

259 commits

Author SHA1 Message Date
Aaron Schulz
f9008084ba filebackend: remove unused LockManager::sha1Base16Absolute() method
Introduced in 2013 by I939551bd228 (fdef79d9f2), and originally used
for PostgreSqlLockManager. This was removed again in Ia8f802b2c68
(2fa8eb2c80).

Change-Id: I7ae15703f919c9ff890056648aad8e86bccf34ab
2024-08-20 17:40:00 +01:00
jenkins-bot
6055000abd Merge "Drop writeapi flag from siteinfo API" 2024-08-02 10:52:02 +00:00
jenkins-bot
2d3c0375d1 Merge "Drop writeapi userright" 2024-08-01 21:06:33 +00:00
jenkins-bot
d9abc826ac Merge "Hooks: Hard deprecate the MessageCache::get hook" 2024-08-01 13:44:35 +00:00
Roan Kattouw
907038204c Hooks: Hard deprecate the MessageCache::get hook
This hook is no longer used anywhere. It was deprecated in
ded922c21d and all of its users have
migrated to the new MessageCacheFetchOverrides hook.

Bug: T328183
Change-Id: I5f08849b57a33f0853e176a7452b6b3e6d601add
2024-08-01 12:42:56 +00:00
Gergő Tisza
074554137d
resourceloader: Fix ResourceLoaderModifyStartupSourceUrls hook docs
Follows up I199ab779abd0596b836ae43dcc5f2f2a489c9274.

Change-Id: Id7282be6b2cdb34ff9307f532cb445e19a10f069
2024-08-01 10:56:28 +02:00
Gergő Tisza
36d5b83b31 Drop writeapi flag from siteinfo API
Remove the 'writeapi' field from the response of the query+siteinfo
API module. It had no purpose since MediaWiki 1.32 when
$wgEnableWriteAPI was removed.

Follows up I54ff9428b247ba203d67aba079149393f323d5a9.

Bug: T115414
Bug: T294397
Change-Id: Icedba7f9c7ff58a5ac690cf25e449ba9e2337bd9
2024-07-31 11:18:57 +00:00
Reedy
b52a8addf5 Drop writeapi userright
Bug: T294397
Depends-On: Ib34228a18917e404517d45e539bd786419d9c401
Change-Id: Ifad2edc782b36d21c8c67fecde7f011dce02c11b
2024-07-31 11:10:50 +00:00
Umherirrender
eef1ff2556 logging: Hard-deprecate LogFormatter::newFromRow/newFromEntry
Depends-On: Icd3316b7f475a09390be8787fae6a8b63dcd6418
Depends-On: I007a318135db35fc82011540b3b2baf6f358b753
Change-Id: Id2c48651e1ca28146ab6bcb57c789fae69e5c251
2024-07-29 20:29:25 +00:00
Aaron Schulz
161ec6333a api: deprecate and deactivate $wgAPIRequestLog
Make update.php warn if this setting is still used in config.

Bug: T276975
Change-Id: I8909e5c92f002949c0d77cfd7aa3febaf707f57f
2024-07-29 14:42:00 +00:00
Bartosz Dziewoński
c9f73efd5a Namespace MessageSpecifier under Wikimedia\Message\
In change I625a48a6ecd3fad5c2ed76b23343a0fef91e1b83 I am planning to
make Wikimedia\Message\MessageValue use it, and we try to pretend that
it is a library separate from MediaWiki, so it makes sense to move
MessageSpecifier to the same namespace under Wikimedia\.

Bug: T353458
Change-Id: I9ff4ff7beb098b60c92f564591937c7d789c6684
2024-07-28 14:21:32 +02:00
jenkins-bot
2ace4d8fd0 Merge "Bump wikimedia/json-codec to 3.0.2" 2024-07-26 21:02:00 +00:00
C. Scott Ananian
124e6fdd0f Bump wikimedia/json-codec to 3.0.2
This contains a minor bugfix to the ALLOW_OBJECT hint.

Depends-On: Ied49bd4e03d4ae816dc9ddd6791d92355be6304e
Change-Id: Ibcedd6c0c9809ccae04bfcb7c5892466b48b56ce
2024-07-26 16:28:11 -04:00
jenkins-bot
dfc02a5811 Merge "Hard-deprecate manual construction of Language objects" 2024-07-26 20:25:26 +00:00
jenkins-bot
7280e68b51 Merge "page: Hard-deprecate PageArchive::undeleteAsUser" 2024-07-26 18:42:04 +00:00
jenkins-bot
3bfbc5870b Merge "specialpage: Deprecate QueryPage::setDBLoadBalancer/getDBLoadBalancer" 2024-07-26 18:20:52 +00:00
Umherirrender
ec7f8ca99a htmlform: Hard-deprecated HTMLForm::*Text functions
Bug: T325474
Change-Id: I89fc570f9238048b7eb58a6f4393e2b35000e133
2024-07-26 13:02:21 +02:00
Amir E. Aharoni
180082f968 Add Saint Lucian Creole (acf)
Bug: T371051
Change-Id: I1ebd651aa9a4bd15a1f4dc898abdae7a8efb4406
2024-07-26 09:23:40 +00:00
jenkins-bot
8e4940f1c5 Merge "Make dd, ol and ul margin values direction aware" 2024-07-26 00:04:40 +00:00
lwatson
f4408c6d6e Update Codex from v1.9.0 to v1.10.0
Bug: T314438
Bug: T364442
Bug: T369223
Bug: T369633
Bug: T369934
Bug: T370189
Bug: T370555

Change-Id: Ic13f3b6fc62522830b1cf118f6052872d88d52a2
Depends-On: Ie236c633c3cfa181f81360daa3c1ceeca7f669ec
2024-07-25 19:08:30 +00:00
Kosta Harlan
1f66411c3a
DevelopmentSettings: Enable temp user autocreation
Why:

- Enabling by default in DevelopmentSettings.php means that more
  developers will interact with the feature and we'll have more input
  into ways that the feature works with (or doesn't work with) various
  extension and configuration setups in local development environments

What:

- Enable temp user account autocreation by default in
  DevelopmentSettings.php

Bug: T359043
Change-Id: Ie88043a7dd7f504092ddd9a6cae1320ab2dbd208
2024-07-25 16:43:10 +03:00
jenkins-bot
963bfbbbbb Merge "Hard deprecate public access to EditPage::internalAttemptSave()" 2024-07-24 23:27:23 +00:00
jenkins-bot
595bdf4627 Merge "Add a basic interactive install.php" 2024-07-24 22:38:09 +00:00
addshore
34a17b32fc Add a basic interactive install.php
Start with the basic required arguments.
Leaves room for expansion.

Decided to have:
 - 0 arguments = interactive
 - 1+ argument results in regular validation messages
 - --help outputs help as normal
 - interactive mode mentions you might want --help

Bug: T48076
Change-Id: I972bf55f96c9cdf1a5eaf55c0e0117b190420d30
2024-07-24 22:12:12 +00:00
Ebrahim Byagowi
0a6efabf86 Make dd, ol and ul margin values direction aware
For years we had to carefully use mw-content-ltr and mw-content-rtl
subsections to make description, ordered and unordered lists margin
values to work in LTR and RTL mixed content as expected. Now with the
widespread existence of CSS Logical
https://caniuse.com/?search=css-logical
such workarounds aren't needed as now we can just define styles in a
direction aware way.

The only problem is that older browsers which don't support
CSS Logical, that's why this change actually keeps compatibility
margin values for them so they can just ignore those new properties
and the remaining issue will be the support of nested directions for
that older browsers which should be negligible given the benefits
for the newer browsers such as the support of more than two layers
of direction changes (happens in multilingual wikis such as Commons
but rarely) and the fact margin values now will be correct even when
`mw-content-{ltr,rtl}` classes aren't used correctly by the templates
in wikis (which happens more commonly).

The purposed change uses https://caniuse.com/?search=margin-block-start
over https://caniuse.com/?search=margin-block which has even slightly
better browser support.

This change deprecates `i18n-all-lists-margins` module of SkinModule
as now just including of the `elements` module is enough.

Bug: T369475
Change-Id: I404710209d59241991716bb7180bcaabcafffcec
2024-07-24 13:07:35 -07:00
Umherirrender
153b5f6356 specialpage: Deprecate QueryPage::setDBLoadBalancer/getDBLoadBalancer
Follow-Up: Ie1772da59f92213fea598f02385c3e0ac6d200a7
Change-Id: I3bfacec2882e1ee3a1dd32a6dcdb884f1d62ddf0
2024-07-24 18:30:01 +02:00
jenkins-bot
e498bbc19d Merge "api: Hard-deprecate ApiPageSet::get*Titles" 2024-07-23 13:30:00 +00:00
Bartosz Dziewoński
7ad5a2ca54 ScalarParam: Un-deprecate Stringable, deprecate ParamType::OBJECT instead
Follow-up to f18362ccce.
While working on I625a48a6ecd3fad5c2ed76b23343a0fef91e1b83,
I learned that Stringable objects are sometimes also used
as normal params, intended to be stringified when rendering.
For example, see `this->target` in the UnblockUser class.

That code uses Message objects, so it's not causing trouble,
but converting them to MessageValue would emit warnings.
I didn't actually intend to deprecate that, and it won't
cause issues with JSON-serializability (assuming we stringify
the objects in time), so tweak how the warnings are emitted.

Change-Id: I26dfd4f1ac8ed08a422692de4e39d072242c08df
2024-07-22 19:13:59 +00:00
Derick Alangi
45e7bd4b99
config: Remove unused extractGlobal() and extractVar()
These where hard deprecated since 1.41. It's time to say farewell.

Change-Id: I815374fce748cd9760f5760516fd320bfc87e0a6
2024-07-22 14:44:59 +02:00
DannyS712
b94e64435e Hard deprecate public access to EditPage::internalAttemptSave()
As part of refactoring the edit save logic, remove this public entrypoint - the
attemptSave() method is still available. Because the actual logic is still
needed by core, we move it to a new private method,
internalAttemptSavePrivate(), and call that from the deprecated
internalAttemptSave() method.

Bug: T157658
Change-Id: I79ccb85f645e15256c4b5867ef3997d10a611e53
2024-07-21 15:03:54 +00:00
jenkins-bot
d84806614a Merge "objectcache: Hard deprecated ::clearLastError() methods" 2024-07-21 09:25:12 +00:00
Umherirrender
057025e5d6 page: Hard-deprecate PageArchive::undeleteAsUser
Bug: T339394
Depends-On: Iccaf9a9ef141570ed315cb7caefba29a920c5527
Change-Id: Ib3015784e6e0b5e785c5d738268189f651ccdc12
2024-07-21 10:11:22 +02:00
Umherirrender
93ce9ff0a5 Hard-deprecate manual construction of Language objects
Bug: T343771
Depends-On: Ie0f08b29f3daff33f23c7107ccf98e2c3aa78cf9
Depends-On: I2d46db4be6e967ee5e7764c6df62d2214fe08683
Depends-On: Id2423c87c17a2f357d5e1cfeef3aeb83b6ad9a0d
Depends-On: I65ad7a46114d1ba812fc47bf623c0a5753acac97
Depends-On: Ib7ec113a21fd36a82c0345ffb98ed8692d82155d
Depends-On: Ib390ffe80ffd62b7f22efe86f6a08108959a970c
Change-Id: I0c8d136ef22e43749a171f08e19b9b9b507edba9
2024-07-20 21:11:33 +00:00
Umherirrender
2e6b634176 api: Hard-deprecate ApiPageSet::get*Titles
The following functions are now hard-deprected:
- ApiPageSet::getTitles
- ApiPageSet::getGoodTitles
- ApiPageSet::getMissingTitles
- ApiPageSet::getGoodAndMissingTitles
- ApiPageSet::getRedirectTitles
- ApiPageSet::getSpecialTitles

Bug: T339384
Depends-On: Ie117ac8417e7f62ef3f199312a7f57df205900b2
Change-Id: I9533f89bbd370bcec43ca37200b2fedd0610183f
2024-07-20 00:11:55 +02:00
jenkins-bot
55b23d3842 Merge "Deprecate Html*Helper::init()" 2024-07-19 16:35:53 +00:00
C. Scott Ananian
c23420603c Deprecate Html*Helper::init()
Instead of creating a half-initialized helper and later calling ::init,
provide all the information necessary for the helper in the constructor.
This is facilitated by the fact that there already exists a factory
class, PageRestHelperFactory, which holds all the services required.

This affects:
* HtmlOutputRendererHelper::init()
* HtmlMessageOutputHelper::init()
* HtmlInputTransformHelper::init()

Change-Id: I1e1213597c6be012f2bc024c2b370c968ff3b472
2024-07-19 15:03:37 +00:00
jenkins-bot
630fda1324 Merge "ResourceLoader: Update wikimedia/less.php from 4.4.1 to 5.0.0" 2024-07-19 13:55:29 +00:00
Hannah Okwelum
29db8f7b1c ResourceLoader: Update wikimedia/less.php from 4.4.1 to 5.0.0
Depends-On: Id70b0f4188e70f3e4b37a93a0d5be686918179c3
Change-Id: I8cfb6aa11ac6766563221023c071d22e7885d421
2024-07-19 14:08:05 +01:00
C. Scott Ananian
fc0af94d32 Hard deprecate ParsoidOutputAccess
This class was @unstable and should be replaced by ParserOutputAccess.

Bug: T367074
Depends-On: I543a6e9da4fc473a2ac54ac635286453f2aff96a
Change-Id: Ie51b9b7a8b42a6faafeb28378c188347f274a9c5
2024-07-19 03:09:35 -04:00
Bartosz Dziewoński
9b8b99911e Deprecate wfMergeErrorArrays()
No longer used anywhere.

Change-Id: Id764fa47ab57875e99fee7d8b87d009cde73ea52
2024-07-18 13:33:56 +00:00
Derick Alangi
e14aeb3e57
objectcache: Hard deprecated ::clearLastError() methods
BagOStuff::watchErrors() returns a token that can be used with the
BagOStuff::getLastError() method to get the last error registry. Use
this instead of deprecated clearLastError().

This new style for clearing last errors was introduced in 2021,
I281817a85602967c0ec2bdd23a5d8be101680b64 (I281817a85602967) as it
is more robust due to its support for allowing nested callers.

An outside BoS instance might want to watch the errors returned by
multiple internal BoS instances and with the use of watch point
tokens, this is possible.

This patch hard deprecates BagOStuff::clearLastError() and
WANObjectCache::clearLastError().

Change-Id: I9b7a77bae8c0d5cc0235f0894a92f8e38628826d
2024-07-18 15:28:34 +02:00
Kosta Harlan
3bcc55efde DevelopmentSettings: Enable auto creation of temp users in CI
Why:

- Temporary accounts will become the default anonymous editing
  paradigm on Wikimedia wikis (and maybe for MediaWiki via T355880),
  so we want this to be the default that we test against in CI

What:

- Enable AutoCreateTempUser in DevelopmentSettings.php when
  MW_QUIBBLE_CI is set. That means it will be enabled for CI, but not
  by default, in local development setups that include
  DevelopmentSettings.php

Notes:

- PHPUnit tests that need to run in an anonymous IP editing context
  should use TempUserTestTrait::disableAutoCreateTempUser()
- Selenium and API-testing tests that specifically check anonymous
  IP editing context should use a custom LocalSettings.php override
  to disable temp accounts feature for the duration of the test

Bug: T359043
Depends-On: I375cf7dfec1667396136402a85cbbb68efd43069
Depends-On: If48a33794132b46fb51d864bce103aa8285443c3
Depends-On: I604c521f00d5cc64b8102c93f9a013bcac557001
Depends-On: Id6ec4b9e438dd277a51f781377a93756fa4c3996
Depends-On: Ib0a176fe335cf45e5b2cdd351c95d5da162a1eb2
Change-Id: I8c4395ac1bdbc0c55aa45038cbbd589025b4aeef
2024-07-18 07:55:41 +00:00
Amir E. Aharoni
fbdfae31b0 Add Nupe language (nup)
MessagesNup.php will be added later when we have namespaces.

Bug: T370123
Change-Id: I2504d4005a5a706448a0f784d38987e693254bbe
2024-07-17 18:51:37 -04:00
Umherirrender
4cced1fcff cache: Deprecate UserCache class
The ActorStore could be used to lookup user names.
UserCache is not cross-wiki aware.

Change-Id: Ie5456a09bbf8ab0f236157182309cea8bedd9359
2024-07-15 17:21:31 +00:00
jenkins-bot
c1bdb9eab6 Merge "cache: Deprecate calling UserCache::singleton()" 2024-07-15 17:18:42 +00:00
Derick Alangi
8e51012ce7
cache: Deprecate calling UserCache::singleton()
The last callers themselves were already soft deprecated and the
singleton on UserCache itself was almost unused. The last usage has
been replaced and the method now emits deprecation warnings.

Change-Id: Ic9f5e4f427c0402b6c0e7232bcf1d5f9eec6e73e
2024-07-13 22:25:12 +02:00
jenkins-bot
7bd0b18013 Merge "Update Codex from 1.8.0 to 1.9.0" 2024-07-12 16:14:58 +00:00
Volker E.
c581a7a59f Update OOUI to v0.50.4
Release notes: https://gerrit.wikimedia.org/g/oojs/ui/+/v0.50.4/History.md

Bug: T369597
Bug: T369666
Depends-On: I23ed96557e0c1b30528fd7c4d81ade8dfd5be80e
Change-Id: I384eeead649dfa81c1dacf2fc461a2be515256d5
2024-07-12 02:32:45 +02:00
Volker E.
5cb441e49c Update Codex from 1.8.0 to 1.9.0
Bug: T358246
Bug: T363940
Bug: T366129
Bug: T367467
Bug: T367762
Bug: T367792
Bug: T368442
Bug: T368443
Bug: T369529
Depends-On: Ie642f038ef4b143166a574248ac936c78adae23e
Change-Id: Ib1dc0dabdfbd1b92efdd723c0c2f2d625aeb6e7a
2024-07-11 15:30:46 +02:00
Srishakatux
e3df001920 Add Interslavic (isv-latn) to Names.php
Bug: T367688
Change-Id: I86ff1887eab5a259e1d8b310cfdd508440b4d619
2024-07-10 11:51:08 -07:00