Commit graph

115 commits

Author SHA1 Message Date
Volker E.
15a2c2cfa3 Update Codex from 1.5.0 to 1.6.0
Bug: T300053
Bug: T353885
Bug: T360080
Bug: T360081
Bug: T361878
Bug: T363137
Bug: T363613
Bug: T363739
Bug: T363907
Bug: T363911
Bug: T364254
Bug: T364340
Bug: T364355
Bug: T364513
Bug: T364514
Bug: T364636
Bug: T364695
Bug: T364789
Change-Id: I9fda81d62c86f2e19e14ff818a8fff6e8ce5c35d
2024-05-15 18:01:14 -07:00
jenkins-bot
f8069112d0 Merge "Remove deprecated Linker methods" 2024-05-15 16:53:44 +00:00
C. Scott Ananian
ab660966d2 Remove deprecated Linker methods
The removed tests in LinkerTest were ported (or were previously
ported) to the new CommentFormatter framework in the CommentParserTest
class; some references to the LinkerTest class have been removed since
CommentParserTest is now the canonical location for these.

Cleaned up a bit more from the removed DummyLinker class as well
(I69689b2037269af3320b6203fc44755f93713489).

Followup-To: I69689b2037269af3320b6203fc44755f93713489
Change-Id: Ia743d13c4fe7f4e3e2bd11274895a261adbfd8e2
2024-05-15 15:18:07 +00:00
jenkins-bot
c38486cb1f Merge "Document changes to contributions hooks in release notes for 1.43" 2024-05-15 14:57:33 +00:00
jenkins-bot
306bb568a7 Merge "exception: Remove "error-json" debug log channel" 2024-05-15 11:24:31 +00:00
Timo Tijhof
ee292ca30d exception: Remove "error-json" debug log channel
This was introduced to allow maintainers during local development,
and e.g. when debugging in production, to capture silenced runtime
warnings, such as those silenced via AtEase or the `@` PHP operator.

These are not expected to be of interest to capture by default on
web requests, hence placed in a separate channel that e.g. one would
only enable during development, or when debugging.

When this was introduced, MediaWiki was only just starting to
experiment with PSR-3 structuerd logging, and thus it hardcoded JSON.

Now that we support structured logging natively, this has been
obsoleted by the "error" channel (for warnings in production),
and (since last December) the "silenced-error" channel (for debugging
and development) with commit f6cb39979b (I34b19837c3).

With the above two alternatives available, there is no longer a need
for the duplicate "error-json" channel.

Bug: T193472
Change-Id: I7a6e6fa52a47a29ec04411a6c8b05e005a0a4fc7
2024-05-14 17:42:08 +00:00
jenkins-bot
1aaea9171e Merge "rdbms: Remove IDatabase::getTopologyBasedServerId()" 2024-05-14 15:24:02 +00:00
Amir Sarabadani
27f5ba9ab3 rdbms: Remove IDatabase::getTopologyBasedServerId()
Looking at all implementations, it only returns null or getServerId(),
which we already rely on in the only caller SqlBagOStuff.

Bug: T363839
Change-Id: I680e82d6d36548cd6bc351ab1d1fba48a827cbf3
2024-05-14 13:47:37 +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
Thalia
0da4adb13e Document changes to contributions hooks in release notes for 1.43
Document changes to hooks that were run from SpecialContributions
and ContribsPager, which are now run from ContributionsSpecialPage
and ContributionsPager instead.

Bug: T363358
Change-Id: I5e8fc87e7e98798d98b22405ca5cca5303945a91
2024-05-13 15:49:11 +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
Derk-Jan Hartman
7ca9f698f5 Add exif/xmp reading for webp to releasenotes
Bug: T338341
Change-Id: I4b1038020ca86331501773b6888a2f7bf1f6086b
2024-05-11 12:40:01 +02: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
f8fa7bc3d2 Merge "rdbms: Remove IDatabase::namedLocksEnqueue()" 2024-05-08 16:55:05 +00:00
Amir Sarabadani
ec79ad1df0 rdbms: Remove IDatabase::namedLocksEnqueue()
Unused

Bug: T363839
Change-Id: I7f3624eba24bbd39ed6ba05e81f4a5c089a737d4
2024-05-08 18:02:48 +02:00
daniel
91a1741787 Introduce Modules into the REST framework
Modules group together endpoints by a shared prefix. The idea is that each module has its own version and can generated self-contained self-documentation. This allows clients to have clear expectations about the endpoints of each module, no matter what wiki they are accessing. So far, each wiki may be exposing a different set of endpoints, with no way to provide a spec that describes that set of endpoints in a way that would be consistent across wikis and stable over time.

Bug: T362480
Change-Id: Iebcde4645d472d27eee5a30adb6eee12cc7d046b
2024-05-08 16:12:30 +02:00
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