Commit graph

219 commits

Author SHA1 Message Date
Bartosz Dziewoński
9b8b99911e Deprecate wfMergeErrorArrays()
No longer used anywhere.

Change-Id: Id764fa47ab57875e99fee7d8b87d009cde73ea52
2024-07-18 13:33:56 +00: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
jenkins-bot
e193c68994 Merge "Make Title::getPageViewLanguage() emit deprecation warnings" 2024-07-10 14:38:49 +00:00
jenkins-bot
a25d22cf9e Merge "Hard-deprecate Title::flushRestrictions" 2024-07-10 14:38:42 +00:00
jenkins-bot
9466185044 Merge "Hard-deprecate Title::loadRestrictions" 2024-07-10 14:31:47 +00:00
jenkins-bot
c838103523 Merge "Hard-deprecate Title::getTitleProtection" 2024-07-10 14:29:02 +00:00
jenkins-bot
71285104f5 Merge "Add namespace to the root classes of ObjectCache" 2024-07-10 11:58:53 +00:00
James D. Forrester
fb27ab830d Make Title::getPageViewLanguage() emit deprecation warnings
Already unused in production code(?).

Follows-Up: Ib130a055e46764544af0f1a46d2bc2b3a7ee85b7
Change-Id: I70932dd45812fd1a52ade92b21d78d8007a7d4fb
2024-07-10 11:57:11 +01:00
James D. Forrester
c522252185 Hard-deprecate Title::flushRestrictions
Change-Id: Icd91ba2c89ad10603ba9f670527a79df0810b1c9
2024-07-10 11:53:47 +01:00
James D. Forrester
cce1b62246 Hard-deprecate Title::loadRestrictions
Change-Id: I3b5340354076033ef436f757c63a8b81f4bb8ed1
2024-07-10 11:53:47 +01:00
James D. Forrester
cea63aaf52 Hard-deprecate Title::getTitleProtection
Change-Id: I2bfbf428e67263eb4809e33cb78ef5f8bc0273e2
2024-07-10 11:48:35 +01:00
Bartosz Dziewoński
252bacff34 RecentChange: Replace use of legacy error arrays
Replace uses of soon-to-be-deprecated methods:
* ApiBase::errorArrayToStatus
* PermissionStatus::toLegacyErrorArray

Deprecate and replace uses of:
* RecentChange::doMarkPatrolled

Change-Id: I2311d1fa3772ba6be378ad6f497ed4c0df9b7aa8
2024-07-09 21:48:34 +00:00
Ebrahim Byagowi
fab78547ad Add namespace to the root classes of ObjectCache
And deprecated aliases for the the no namespaced classes.

ReplicatedBagOStuff that already is deprecated isn't moved.

Bug: T353458
Change-Id: Ie01962517e5b53e59b9721e9996d4f1ea95abb51
2024-07-10 00:14:54 +03:30
Derick Alangi
493ffea9e9
Introduce hook to preserve query params after authentication
This hook enables extensions such as CentralAuth to preserve and
use query parameters needed for an authentication flow. Since there
is a provider that handles logins in a different wiki (central login
wiki), and movement to a different URL, this hook preserves query
parameters that can be used between these requests.

Bug: T363483
Bug: T362713
Change-Id: I86e629b07e6e4a0f1d1a4c78a6c77d41b4d68e18
2024-07-08 13:37:54 +02:00
Derick Alangi
05246f6921 objectcache: Deprecate unused methods in BagOStuff.php
These methods: getSegmentationSize() and getSegmentedValueMaxSize()
in both the BagOStuff.php and MediumSpecificBagOStuff classes seem
unused for a while now. Codesearch shows that we have no callers of
both the parent and child class overrides.

Since these are public interfaces, they'll have to go through the
deprecation process.

Introduced in b09b3980f9 (I0667a02612526d8ddfd91d5) and later
in 2021, usage was all removed in 942f708b61 (I5c4bd74379bc45).

Change-Id: Ie529841e673abc7b68f870539dbb23a34a292c89
2024-07-08 02:18:49 +00:00
Derick Alangi
67eb34b9e6
objectcache: Remove deprecated unused method from BagOStuff class
This was already hard deprecated and unused, since 1.42. Time for
it to go. Farewell `setNewPreparedValues()`.

Change-Id: I95c8e4ba91187348603515df2b453d4a11623b99
2024-07-06 21:28:15 +02:00
nokibsarkar
6895bc84d5 LanguageConverter: Added support for mni-Beng in mniwiki
This is the Language Converter from Meitei Script to Bengali Script in mniwiki.
I don't know the language. I got help from a native speaker User:Haoreima.
The original prototype was in a Python Library written by myself.
It only converts the words that have Meitei characters (U+ABC0..U+ABFF).
The original prototype is already being used in mniwiki via Gadget and a Bot.

Bug: T357853
Change-Id: I810f18050f29efa38b2a646d96644e298af47c50
2024-07-06 17:05:19 +06:00
Winston Sung
13dfedeeba
Update jquery.i18n from 1.0.7 to 1.0.10
Bug: T117845
Bug: T137376
Bug: T137411
Bug: T169436
Bug: T185421
Bug: T193566
Bug: T237672
Bug: T245359
Bug: T254854
Bug: T278639
Bug: T333425
Bug: T338416
Bug: T341545
Bug: T343865
Bug: T348376
Bug: T349093
Bug: T351724
Bug: T354519
Bug: T354926
Bug: T354937
Bug: T362041
Bug: T364291
Bug: T367991
Change-Id: I63c08002a936a07d1256e603aad213eb7c54955f
2024-07-03 16:41:18 +08:00
jenkins-bot
b2520d30a0 Merge "Deprecate User::whoIs/whoIsReal" 2024-07-02 17:38:18 +00:00
jenkins-bot
f0f47e7450 Merge "Fix spelling in RELEASE-NOTES" 2024-07-02 17:38:10 +00:00
James D. Forrester
c5033dc5f2 Update OOUI to v0.50.3
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.50.3/History.md

Bug: T369010
Depends-On: I41956b4648091c963ad92be2d5cb2bce55ff33d9
Change-Id: Id737a60b14d87a074f914130cab0d5874134749f
2024-07-02 16:47:49 +01:00
Amir E. Aharoni
f2399a9896 Fix spelling in RELEASE-NOTES
Follow-up to
I90adc5e7d1057b4172c82d7cc66da683fc332d30

Bug: T367377
Change-Id: I260f671d4f6b8def03ffb3367de92a1432ab8951
2024-07-01 20:52:18 -04:00
Amir E. Aharoni
ced0a26571 Add Iban language
MessagesIba.php will come later, when I get
the fallbacks and namespace names.

Bug: T367991
Change-Id: I181f29469a3880a3192f33042b026a20e889d5f1
2024-06-30 05:00:56 +00:00
Amir E. Aharoni
0fa5be8d22 Update the autonym for Tai Nuea
Change-Id: I90adc5e7d1057b4172c82d7cc66da683fc332d30
2024-06-29 19:13:45 -04:00
Umherirrender
a36e4475f3 Deprecate User::whoIs/whoIsReal
Bug: T281394
Change-Id: I597a60317c7227b8902304103cbf4fd74d8e9468
2024-06-29 12:07:22 +02:00
Volker E.
2151855ccb Update OOUI to v0.50.2
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.50.2/History.md
Depends-On: Ie64bd223108b5442ea9194ce78224685f45009d4

Change-Id: I6b928e6624109a0740707325e363a919489eb5a2
2024-06-28 19:41:53 +02:00
Novem Linguae
a377aaa495 UserMailer: delete method rfc822Phrase()
Git blame on the line `wfDeprecated( __METHOD__, '1.38' );` is
3 years old.

Unique method name that does not appear in codesearch.

https://codesearch.wmcloud.org/search/?q=rfc822Phrase&files=%5C.php%24&excludeFiles=&repos=MediaWiki+core

Bug: T362636
Change-Id: If18cc8c35fb0b274ecf2d8c91654540918ffe229
2024-06-27 18:31:50 +00:00
Novem Linguae
c48722c9af OutputPage: delete method getCSPNonce()
Hard deprecated since MW 1.41.

Unique method name that does not appear in CodeSearch for MediaWiki
& services at WMF. Couple of CodeSearch hits using the "Everything"
filter.

Bug: T362636
Change-Id: I2ea134d31a8b18375183a4ae413e77dc0a6f1acc
2024-06-27 15:42:24 +00:00
Novem Linguae
3391b91af2 Sanitizer: delete method removeHTMLtags()
Git blame on wfDeprecated() is 7 years old.

Unique name, no sign of it in CodeSearch for MediaWiki & services
at WMF. Couple of CodeSearch hits using the "Everything" filter.

Bug: T362636
Change-Id: I8961ebb3a72b328e839659aeeee3e73512a88dee
2024-06-27 14:09:00 +00:00
jenkins-bot
65533a55b6 Merge "ParserOptions: delete 3 hard deprecated methods" 2024-06-27 14:02:24 +00:00
Arlo Breault
6b05fa3a21 Remove image and gallery image caption trimming
Post I5039c7ef9e07199c256fd568b4f94714e5831d17, gallery image captions
are no longer placed on new lines, so the presence of leading whitespace
shouldn't be significant.

This fixes an inconsistency in gallery image caption trimming, where
only the first and last option had start and end trimming, respectively.

It also matches Parsoid output, where no trimming takes places, as seen
in the updated tests.

Change-Id: I2a80198c43598dc8c7fa61cb4b0340a97d2ee895
2024-06-26 21:51:40 -04:00
Novem Linguae
bf8e83fe44 ParserOptions: delete 3 hard deprecated methods
Git blame on wfDeprecated() is 4 years old.

Unique names, no sign of them in CodeSearch.

Bug: T362636
Change-Id: I90f11dc78be0938aea53a304b5824f034dd70107
2024-06-26 18:56:59 +00:00
Volker E.
c2fab12870 mediawiki.less: Remove deprecated @width-breakpoint-* Less variables
`@width-breakpoint-*` Less variables have been removed. Use
`@min-width-breakpoint-*`/`@max-width-breakpoint-*` instead.
Follow-up to Ie06bf3e15e552.

Bug: T349793
Change-Id: Ie397cf6839fa03ef84d3906f6d9f56c9b090884a
2024-06-26 16:28:07 +02:00
jenkins-bot
f6f28cb083 Merge "PermissionManager: Add getPermissionStatus(), deprecate getPermissionErrors()" 2024-06-26 09:46:14 +00:00
Bartosz Dziewoński
1fbe8b7619 PermissionManager: Add getPermissionStatus(), deprecate getPermissionErrors()
getPermissionErrors() uses a weird format for its return value that
is slightly different from the usual "legacy error array", and legacy
errors arrays are already icky. Deprecate it without changing this
format, and introduce getPermissionStatus() to replace it. Document
the return format more precisely.

Refactor PermissionManager to use PermissionStatus objects internally,
and only convert to the weird format in the deprecated method.

However, fix a scenario where the error array could directly contain
MessageSpecifier objects or strings instead of nested arrays,
as the documentation said that was not possible. Fix a test case
demonstrating this incorrect behavior.

Change-Id: I6670a58fe1fcb4e1ae87351277e5ddf29c548183
2024-06-26 01:19:37 +02:00
Eric Gardner
af7df71542 Update Codex from 1.7.0 to 1.8.0
Also adds @size-tooltip and @background-color-inverted to
mediawiki.skin.defaults.less.

Bug: T308520
Bug: T340456
Bug: T349793
Bug: T364306
Bug: T366129
Bug: T366541
Bug: T366861
Bug: T367098
Bug: T367100
Bug: T367101
Change-Id: Ie06bf3e15e55272f0ebecfebe4baa9564fa804df
2024-06-25 14:27:50 -07:00
Máté Szabó
cec4460d5a QueryPage: Don't try to swallow DBErrors
updateSpecialPages.php runs QueryCache::recache() for each special page being
updated, with the $ignoreErrors parameter set to true (the default). While this
successfully swallows the original error, the script will immediately fail
anyways with DBTransactionStateError ("Cannot execute query from
Wikimedia\Rdbms\Database::ping while transaction status is ERROR") .

Since the guidelines[1] consider catching DBError without proper cleanup a
transaction misuse error, and explicitly discourage it, let's allow the original
erorr to bubble up instead. This has the additional benefit of providing helpful
context for whoever will inevitably have to debug why the script failed.

---
[1] https://www.mediawiki.org/wiki/Database_transactions

Bug: T278543
Change-Id: Ic81e7c5e13b2461c8eafc3ae5a57cdec5462cc4f
2024-06-20 00:15:19 +02:00
jenkins-bot
3078fe7eb9 Merge "Add protection indicators to mediawiki/core" 2024-06-19 18:54:26 +00:00
Bartosz Dziewoński
c5ee9dc5d0 DatabaseUpdater: Don't require script path in 'runMaintenance'
Bug: T367918
Change-Id: If9453e0be0cca8cd5c90f0294f0978f672aa76b9
2024-06-18 22:12:26 +02:00
James D. Forrester
e7a47e1548 Change 'powered by MediaWiki' icon to new version, wrapped in Codex buttons
Bug: T256190
Change-Id: I4eca56b28682e5ca2b880bc01c123dc4f977f485
2024-06-17 14:35:48 -04:00
jenkins-bot
aef2cedb38 Merge "rdbms: Move IReadableDatabase::primaryPosWait() to IDatabaseForOwner" 2024-06-14 20:22:15 +00:00
Derk-Jan Hartman
f1a8470c65 Add release note for this feature
Bug: T365636
Change-Id: I934f2cd8dded372314585038ef3e9255ffc3dd72
2024-06-12 21:34:14 +00:00