Commit graph

98 commits

Author SHA1 Message Date
jenkins-bot
25bf695c0d Merge "RELEASE-NOTES: Add SpecialEmailUser::getPermissionsError removal" 2024-05-07 07:33:19 +00:00
Bartosz Dziewoński
f0c7fa9234 Move section edit links outside headings (new heading HTML)
Legacy parser can now output headings using a more accessible markup,
which is also identical to the markup used by the Parsoid parser.

Changes to client-side JS and CSS necessary to support the new markup
have already been merged in earlier commits.

includes/skins/Skin.php
includes/ServiceWiring.php
* Define a new skin option, 'supportsMwHeading', which can be used
  to toggle the new markup per-skin.
* Update the built-in fallback skin to enable it. This affects the
  output in parser tests.

docs/config-schema.yaml
includes/config-schema.php
includes/config-vars.php
includes/MainConfigNames.php
includes/MainConfigSchema.php
* Add a new configuration setting, 'ParserEnableLegacyHeadingDOM',
  which can be used to toggle the new markup per-site.

includes/OutputTransform/Stages/HandleSectionLinks.php
* Output new heading HTML for skins that enabled the option.

tests/*
* Duplicate parser tests that cover heading generation to cover both
  new and old markup. Update other parser tests to use new markup.
* Add some unit and integration tests for the behavior of the skin
  option and some parser tests for edge cases of the new markup.

Bug: T13555
Change-Id: I1180169a8e83af834c2984ba16089e6277f2a8dd
2024-05-06 12:25:33 -04:00
Lewis Cawte
7f6d012492 RELEASE-NOTES: Add SpecialEmailUser::getPermissionsError removal
Follow-up to 82ae3243e3.

Change-Id: I46eb22dd69e345df03e6dacd1d20f5c396b53e6b
2024-05-06 14:37:44 +00:00
Amir E. Aharoni
2ebd610140 Add support for the Musi language (mui)
Autonym according to Ethnologue is "Baso Palembang".
This is also the name most commonly used by the
language's speakers according to the article
Alsamadani, Mardheya; Taibah, Samar (2019).
"Types and Functions of Reduplication in Palembang".
Journal of the Southeast Asian Linguistics Society.

Bug: T364291
Change-Id: I4a867a8671ab32366aa459d49361682305b67dcb
2024-05-06 11:34:54 +00:00
WMDE-Fisch
7210ea7dc0 Specials: Drop SpecialBlock::getTargetAndType
Bug: T362636
Change-Id: I1dd90b961ceb52ddfe7661c18a31be6afd696bda
2024-05-06 09:42:07 +02:00
jenkins-bot
7efb44284e Merge "rdbms: Hard-deprecate DBAccessObjectUtils::getDBOptions()" 2024-05-06 05:28:44 +00:00
jenkins-bot
eddbf4f90f Merge "api: In userinfo, return null as registrationdate for pre-2005 users" 2024-05-05 13:53:48 +00:00
jenkins-bot
9a43bb1501 Merge "MWHttpRequest: Drop support for creating without timeout or connectionTimeout, deprecated in 1.35" 2024-05-05 12:40:27 +00:00
Piotr Miazga
93867c106f MWHttpRequest: Drop support for creating without timeout or connectionTimeout, deprecated in 1.35
In 1.35 we deprecated not passing the timeout and connectionTimeout settings
when constructing the MWHttpRequest object.

Upgrade hard-deprecation via wfDeprecated() to instead throw an InvalidArgumentException.

Change-Id: I260469c6235fa9022b264757b0a17d498cee1396
2024-05-05 15:16:32 +03:00
Lewis Cawte
b142ee0416 SpecialEmailUser: Remove unused validateTarget function, deprecated in 1.41
Change-Id: I638f3842d3ca47b1ab061dab6a3bdb4793131b87
2024-05-05 15:10:41 +03:00
Lewis Cawte
95e96e9a7c SpecialEmailUser: Remove unused submit function, deprecated in 1.41
Unused in core since 76fa952, and uncalled in codesearch covered extensions;
was only left for those use cases. The special page now uses onSubmitForm
instead of this function.

Change-Id: I87c3bbc9a9aff381b00822971fdb41780b32bd3b
2024-05-05 15:08:05 +03:00
Alexander Vorwerk
e4127e5864 Move ext-openssl from suggest to require
openssl provides the proper password hashing algorithm, so it is needed
in order to have safe and efficent password hashing.

Change-Id: I61498275c7f7cf19787f0aee50dc4884c57b82b2
2024-05-05 09:42:06 +00:00
Ollie Shotton
63d1ab6808 Add Language::formatDurationBetweenTimestamps method
which takes two timestamps in order to calculate a more accurate text representation of the duration between the timestamps

Bug: T219397
Co-authored-by: addshore <addshorewiki@gmail.com>
Co-authored-by: Silvan <silvan.heintze@wikimedia.de>
Change-Id: I290f8da815f9571dae75fddde2da2010cc9a7fec
2024-05-05 01:22:53 +01:00
Lewis Cawte
e2b067117c Remove doDeleteArticleBatched from WikiPage
Function was hard deprecated in 1.41 and has no remaining usages.

Bug: T362636
Change-Id: I24d7dd54e7d0a5b57a51aa334431963f3aef998d
2024-05-04 21:26:18 +01:00
jenkins-bot
5559c60b15 Merge "AuthManager: perform auto-creation as target user" 2024-05-04 19:33:42 +00:00
WMDE-Fisch
21c5baff50 Block: Drop AbstractBlock::getPermissionsError
Bug: T362636
Change-Id: I6ddfa089aee47451819a92eaae100c1cc8486d20
2024-05-04 18:22:03 +03:00
WMDE-Fisch
3000c94e24 Block: Drop DatabaseBlock::purgeExpired
Bug: T362636
Change-Id: I85fe2ba5da844678bfeb66f84d0c406fd8f7b19c
2024-05-04 18:13:59 +03:00
jenkins-bot
e5699d2e21 Merge "Formally deprecate code marked with @deprecated" 2024-05-04 12:47:59 +00:00
Jon Robson
e5eaf49989 Move oojs-router into core, to allow archiving of npm module
Doing this should make it easier for us to fix bugs and maintain
this, there seems little benefit in having this published on
npm.

Bug: T358813
Change-Id: I515e415a129da881eecdb86d8e6a274bf7584b4a
2024-05-04 09:19:34 +03:00
jenkins-bot
7e216c8f7d Merge "StatusValue: Document and deprecate broken ways to search/replace messages" 2024-05-03 22:15:23 +00:00
jenkins-bot
ac2099a6ff Merge "StatusValue: Deprecate combining MessageSpecifier and parameters array" 2024-05-03 22:13:07 +00:00
jenkins-bot
23bde36285 Merge "Title: Remove deprecated Title::getCdnUrls(), purgeSquid()" 2024-05-03 21:22:42 +00:00
jenkins-bot
555b734ec2 Merge "Update symfony/yaml to 5.4.39" 2024-05-03 20:54:14 +00:00
jenkins-bot
da1a09566e Merge "Updated phpunit/phpunit to 9.6.19" 2024-05-03 20:54:04 +00:00
jenkins-bot
78b000a84a Merge "Update monolog/monolog to 2.9.3" 2024-05-03 20:53:56 +00:00
jenkins-bot
efb09215f3 Merge "Update doctrine/dbal from 3.7.2 to 3.8.4" 2024-05-03 20:32:13 +00:00
jenkins-bot
c2ad63b337 Merge "skins: Drop deprecated Skin::getAction()" 2024-05-03 20:31:02 +00:00
Alexander Vorwerk
db377c98f2 Update symfony/yaml to 5.4.39
Depends-On: I81dafaf5eb02d77491faf5b42320bcda584cce32
Change-Id: I79f6bb8e8f046816ab75bc181a00a990fd323e76
2024-05-03 22:02:21 +02:00
jenkins-bot
f29546a6dd Merge "skins: Drop deprecated Skin::footerLink()" 2024-05-03 20:01:00 +00:00
Alexander Vorwerk
451cc07e8f Updated phpunit/phpunit to 9.6.19
Change-Id: I2e38a2ece160f5c4f3e1c4a26003e351567d8350
2024-05-03 21:56:51 +02:00
Alexander Vorwerk
7015972c9d Update monolog/monolog to 2.9.3
Depends-On: Ic19219cd84b96a006cf0620d56f33a951e060eb9
Change-Id: Iabfc3d4ad49125214203549032cbe8f291ffa087
2024-05-03 21:55:44 +02:00
jenkins-bot
b018591a75 Merge "skins: Drop Skin::getCopyright() $type parameter" 2024-05-03 19:50:55 +00:00
Alexander Vorwerk
a243943755 Update doctrine/dbal from 3.7.2 to 3.8.4
Change-Id: Iac302e94f8dc3323990c4dbfc6c394e6be23755c
2024-05-03 19:42:16 +00:00
jenkins-bot
d51ad698ba Merge "Title: Remove deprecated Title::getBrokenLinksFrom()" 2024-05-03 19:38:14 +00:00
jenkins-bot
2f8a772fe9 Merge "Updated pear/net_smtp from 1.11.1 to 1.12.1" 2024-05-03 19:16:48 +00:00
Taavi Väänänen
25f4c12aa6
Title: Remove deprecated Title::getCdnUrls(), purgeSquid()
Change-Id: I81614cb101530254ab52473346f8fb6b0f17f48a
2024-05-03 22:00:50 +03:00
Taavi Väänänen
06d1ff27b4
skins: Drop deprecated Skin::getAction()
Change-Id: I2e0ceb227019652a7b2531cbecb9820c6923c40f
2024-05-03 22:00:38 +03:00
Taavi Väänänen
490594ef87
skins: Drop deprecated Skin::footerLink()
Change-Id: Idb74e77c612c4348c804ebcfc28163d87264df4f
2024-05-03 22:00:38 +03:00
Taavi Väänänen
5cc38fddd3
skins: Drop Skin::getCopyright() $type parameter
Change-Id: Icf2bf59b131ea9f45aaac94a8838ccf4eb995a76
2024-05-03 22:00:33 +03:00
jenkins-bot
532cf184de Merge "Updated guzzlehttp/guzzle from 7.7.1 to 7.8.1." 2024-05-03 18:50:39 +00:00
Taavi Väänänen
0166fdbf23
Title: Remove deprecated Title::getBrokenLinksFrom()
Change-Id: I48246a66ce03b018e43128da62ea9e60e457fbf4
2024-05-03 21:00:29 +03:00
Alexander Vorwerk
33824399cd Updated pear/net_smtp from 1.11.1 to 1.12.1
Depends-On: I5a62ce8f667de2491060e0f5a1ee7bea58cf0f3f
Change-Id: Ib8bec48952acff9fbb0d76853036ee19ac8bd849
2024-05-03 16:23:01 +00:00
Alexander Vorwerk
b34c75968a Update seld/jsonlint from 1.10.1 to 1.10.2
Change-Id: I4e2bd4ba51df2bbb103d3c3c724d8dec88c8dca4
2024-05-03 15:51:46 +00:00
James D. Forrester
3ed6668745 Formally deprecate code marked with @deprecated
Some of these have been marked in-code as deprecated for a long while,
but haven't ever been announced in the RELEASE-NOTES (and later,
HISTORY) file, so let's mark them up now so we can get the ball rolling
at least.

Per Gergo, the AuthManager one was 'born deprecated' and should only
have been used by humans also reading the deprecation notice given in
the code, and indeed no uses are known to code search, so also emit
deprecation warnings there immediately; others will have to wait until
uses have been migrated.

Change-Id: I0c1c71d8f4293623039302da35d58d2a24367e97
2024-05-03 18:25:03 +03:00
Bartosz Dziewoński
c66441d05c StatusValue: Document and deprecate broken ways to search/replace messages
StatusValue::replaceMessage() doesn't really work if given a
MessageSpecifier, and doesn't work at all if given a MessageValue.

StatusValue::hasMessage() and ::hasMessagesExcept() ignore the message
parameters when searching if given a MessageSpecifier or MessageValue.

Therefore, deprecate passing anything other than strings representing
message keys to these methods.

Change-Id: Icb4effc6c5319c12ba4ebeab447a0cef54f8e255
2024-05-03 17:04:27 +02:00
Bartosz Dziewoński
3840f2181d StatusValue: Deprecate combining MessageSpecifier and parameters array
The parameters have always been ignored, so this is usually a mistake.

Depends-On: Ic12241bd3029bc1b0e7a0023689a2be35ccd30a8
Change-Id: I0675e557bb93a1c990fa923c50b9f6ee8a9836c8
2024-05-03 17:04:27 +02:00
jenkins-bot
239c76879f Merge "BotPassword: Remove deprecated methods" 2024-05-03 13:49:32 +00:00
Alexander Vorwerk
83093e0f13 Updated guzzlehttp/guzzle from 7.7.1 to 7.8.1.
Depends-On: I56cb7870fea0591c715ec032fe0f5405ecf97087
Change-Id: Iac56f078b0dce99d59efda1481acc06a7a3718fe
2024-05-03 13:45:17 +00:00
xtex
50dd99eefb
AuthManager: perform auto-creation as target user
By doing this, auto-creation get available for users who use blocked IP and hold ipblock-exempt or globalblock-exempt, as autocreateaccount permission is checked on the user theirself rather than on anonymous IP user.

Bug: T316303
Change-Id: I2ad825317e900e865fffa39d4ea644f07beb4cf8
Signed-off-by: Bingwu Zhang <xtexchooser@duck.com>
2024-05-03 21:35:42 +08:00
jenkins-bot
f0b51af6af Merge "Update list of default interwiki links" 2024-05-03 12:50:30 +00:00