Commit graph

436 commits

Author SHA1 Message Date
C. Scott Ananian
d6d6343c68 Deprecate OutputPage::{get,set}PreventClickjacking()
This is redundant with the same-named methods on ParserOutput.

Bug: T301020
Change-Id: I60455186e3a6e9b4329ff09e2f7ea920e2e05192
2024-10-17 23:51:39 -04:00
C. Scott Ananian
8509ded4f0 Deprecate OutputPage::{get,set}IndexPolicy()
This is redundant with the same-named methods on ParserOutput.

Bug: T301020
Change-Id: I41dcca30e106f77d12d9afe780f8578a4f1c81c9
2024-10-17 23:51:12 -04:00
C. Scott Ananian
62d6c23539 Use OutputPage::$metadata to store index policy
As a first step in a plan to reduce redundancy in OutputPage, replace
the $mIndexPolicy property of OutputPage with the corresponding
getter/setter methods in a ParserOutput held for the purpose of
storing metadata.

Bug: T301020
Change-Id: I6073f4033be936b669532ecf8104a8e5ff498e24
2024-10-17 23:46:19 -04:00
Tim Starling
cba8c23fa4 Update to Shellbox 4.1.0
Bug: T292322
Change-Id: Ic5c188629288a9274bd94a9aa88201d4291c306f
Depends-On: I1863e7bd890861fb23db9f1f7f27e48ddf5f6b69
2024-10-17 17:33:14 +00:00
jenkins-bot
4acdea458f Merge "Update Codex from v1.13.1 to v1.14.0" 2024-10-16 17:26:41 +00:00
jenkins-bot
12f1cf5e59 Merge "ConditionalDefaultsLookup: allow to dynamically add conditions for evaluation" 2024-10-16 16:49:03 +00:00
lwatson
15eea4cea6 Update Codex from v1.13.1 to v1.14.0
Bug: T362650
Bug: T370057
Bug: T371118
Bug: T374659
Bug: T374882
Bug: T375699
Bug: T375700
Bug: T376024
Bug: T376622
Change-Id: I18684997862a1a6427627d8061a2583fff00e621
2024-10-16 09:11:15 -07:00
Sergio Gimeno
37985a198d ConditionalDefaultsLookup: allow to dynamically add conditions for evaluation
Why:
To facilitate the evaluation of conditions not directly
"known" by the lookup, eg: owned by extensions

What:
- Add ConditionalDefaultOptionsAddCondition hook which
runs before instantiating ConditionalDefaultsLookup allowing
to add conditions for evaluation in the $extraConditions
array.
- Evaluate the configured conditional default against the
 extra added conditions after evaluation of "known"
conditions.

Bug: T376918
Change-Id: Ife6f96397eafd61fdb40528aac315ddde1ef2774
2024-10-16 17:39:12 +02:00
jenkins-bot
092dbe39bc Merge "package.json: add pinia and @pinia/testing" 2024-10-16 15:11:49 +00:00
James D. Forrester
a5387c7c20 Namespace all remaining classes in includes/parser
Bug: T353458
Change-Id: If02cc9b1ff78e26c1cf8c91ee4695845eb133829
2024-10-15 23:54:32 +01:00
jenkins-bot
23ec5ff94e Merge "Add namespace to maintenance/includes classes" 2024-10-15 22:50:33 +00:00
MusikAnimal
f717259a14 package.json: add pinia and @pinia/testing
The upcoming Multiblocks project will make use of a Pinia store, which
is already shipped in MediaWiki via ResourceLoader. In order to continue
to test Vue components that make use of a store, we need the Pinia
testing utilities.

The 'pinia' package is locked to the same version that's in RL, 2.0.16,
while '@pinia/testing' is locked at 0.0.12, the same version used by
some extensions such as GrowthExperiments.

Bug: T251790
Change-Id: Ia88d987bf7e5afa1a17d63b4ebc96448ccec2f6c
2024-10-15 17:54:33 -04:00
James D. Forrester
808a9a70c4 Upgrade AtEase from 2.1.0 to 3.0.0
Bug: T376911
Depends-On: I39879b6a9aaef80f6a76bd09b72a97aa48fb8421
Depends-On: Ic3e749daf98742fe390420b7edcad95bde5ab79c
Change-Id: I46edad548e0e2390cf79eec9c68c7cc4c3bf68f1
2024-10-15 16:55:47 +00:00
James D. Forrester
6c2a5c54c0 Upgrade xmp-reader from 0.9.1 to 0.9.2
Depends-On: I3d259aed48aa443c675d44a747de13f3229bb4ec
Change-Id: I0da75004fd5a07f2115b17d17d273917339e4e0f
2024-10-15 10:01:26 -04:00
James D. Forrester
c6aa4b4bd0 Upgrade php-session-serializer from 2.0.1 to 3.0.0
The breaking change is dropped PHP 7.4 support.

Depends-On: Ice6ed4d3fa376a37faae75d11cb81c9221f7f29f
Change-Id: Ib74d84f753bf5230a0e1ab8c7f7f0c664f6ba4ce
2024-10-15 10:00:36 -04:00
Reedy
fc2852f44f Remove MediaWikiVersionFetcher
Change-Id: I3a44557ed5e4ab06dde0eb8aaaba2be785faff27
2024-10-14 12:00:08 +00:00
jenkins-bot
4289b8a576 Merge "Deprecate .horizontal-gradient and .vertical-gradient Less mixins" 2024-10-12 11:10:33 +00:00
Fomafix
3f1e249b00 SpecialBlock: Hard-deprecate deprecated functions
processForm, parseExpiryInput and canBlockEmail are deprecated since
1.36.
getSuggestedDurations is deprecated since 1.42.

Depends-On: I5931525f95ff6eb76a2b30aa7a852cc86075276f
Depends-On: I6a570e503fee6676e7c54beb6f37575058a57339
Depends-On: I6890763dbe30cc33b2715e93c59cee331d8967b1
Depends-On: I99f49dd3f20032848cc7a191a6b46c5816f3bff2
Change-Id: Ibbf51d9de168d97c0ed3c827f02a356c8a579987
2024-10-10 15:52:57 +00:00
jenkins-bot
dbe8c4b9aa Merge "WebRequest: Deprecate parameter $default in getRawVal" 2024-10-10 15:05:35 +00:00
James D. Forrester
9f02d18eac Add namespace to maintenance/includes classes
Also a few other fixes of PHP class aliases spotted by phan.

Bug: T353458
Change-Id: Ie79d65722c47c24f8f20f1293355cfd3c2e8c2ad
2024-10-09 11:02:09 -04:00
jenkins-bot
121559810b Merge "ParserOutput::setPageProperty(): emit deprecation warnings for non-strings" 2024-10-08 21:17:48 +00:00
jenkins-bot
92301453de Merge "Deprecate embedBidi the same way as getDirMark" 2024-10-06 20:02:39 +00:00
Ebrahim Byagowi
f0838fbddc Deprecate embedBidi the same way as getDirMark
With more or less same reasoning as
Ie9b78102d58e81fbc6cb22fb85da4962ee2c70b5

Bug: T375975
Change-Id: Ifd76b98aab30d8d441f0aea6784080fa060b0b83
2024-10-06 22:05:00 +03:30
Ebrahim Byagowi
f0e228645d Use <bdi> in Language::specialList
And it removes its third parameter as it's unused.

Bug: T375975
Change-Id: I261b7409817f84967ac66993e5aeaa8ff6323f8e
2024-10-05 21:10:56 +03:30
C. Scott Ananian
e205a24456 ParserOutput::setPageProperty(): emit deprecation warnings for non-strings
This was deprecated in 1.42 but did not previously emit deprecation
warnings.

Depends-On: I072b111b047cfe13e32a822678d68165d1c76f84
Depends-On: I2734383207b92f71bffc66ba2392a592a1df0954
Depends-On: I79bb5030c13e83f664da1635254f4bc171ed4f3e
Depends-On: If64a5239a40953f244657e60f95b2e938abfe447
Change-Id: Ifefd3dab43247d988b7c7ff7874c05c90fc8ce1f
2024-10-04 09:56:51 -04:00
jenkins-bot
b829ad1e42 Merge "Mark getDirMark as deprecated" 2024-10-04 11:40:48 +00:00
Ebrahim Byagowi
bc7ec83596 Remove CommentFormatter::formatStringsAsBlock
This doesn't seem to be used anywhere except the tests and the
better API is to use $formatter->createBatch() API that
doesn't expose 'ugly boolean parameters' as described by
formatInternal method above so let's remove it.

https://codesearch.wmcloud.org/search/?q=formatStringsAsBlock

Change-Id: Ia7428f5dbdf6c76b7537ae3889aef077bb26c722
2024-10-04 10:23:17 +03:30
Ebrahim Byagowi
1e5348679f Mark getDirMark as deprecated
So far I've only seen very limited correct use of getDirMark
outside HTML which one was for the {{DIRMARK}} magic word,
majority of other uses were replaceable with actual HTML markup
so let's use soft deprecation to signal third party developers
they also can go through the same way and use HTML markup
instead of hidden control characters. In future if the magicword
was the only valid use of this we can just hard code this there
and hard deprecate and eventually remove this and if it had more
uses that made sense to keep this around we can undeprecate it.

Bug: T375975
Change-Id: Ie9b78102d58e81fbc6cb22fb85da4962ee2c70b5
2024-10-04 01:25:35 +03:30
jenkins-bot
92fe6457bb Merge "Add namespace to remaining parts of Wikimedia\FileBackend" 2024-10-03 17:40:12 +00:00
jenkins-bot
e73662ede1 Merge "Mark now unused getDirMarkEntity as deprecated" 2024-10-03 17:19:38 +00:00
Ebrahim Byagowi
c941c59b0e Mark now unused getDirMarkEntity as deprecated
In HTML context the recommendation is to use <bdi> HTML tag
instead of adding a hidden character that eventually will
end up be in clipboard as described in T27277 also and this
is now unused so let's just mark this as deprecated.

There are some getDirMark() uses however that are in HTML
which should be replaced with appropiate HTML tag which
is unrelated to this deprecation anyway.

Bug: T375975
Change-Id: I5cc15ff00ade5795428c7897df23e4dbac6147a5
2024-10-03 20:11:42 +03:30
James D. Forrester
9203493606 Add namespace to remaining parts of Wikimedia\FileBackend
Bug: T353458
Change-Id: I49c843c9d8f6459c0fbf774afeea7a82fa564b59
2024-10-03 16:21:22 +00:00
Fomafix
9208216d6b WebRequest: Deprecate parameter $default in getRawVal
Use
	$request->getRawVal( 'key' ) ?? 'default'
instead of
	$request->getRawVal( 'key', 'default' )

The ?? is more flexible, avoids a wrong type detection by phan and
avoids the evaluation of the default value if not needed.

Bug: T376245
Depends-On: I3ed6b85c0d117ed7cb3a8b79f73a3eb42977891e
Change-Id: I8b02f9297b76d04e21f8cb9194f3b85631956eca
2024-10-03 15:49:33 +00:00
jenkins-bot
5d6553293e Merge "RELEASE-NOTES-1.43: Add note about mw.Uri being deprecated" 2024-10-03 14:54:51 +00:00
jenkins-bot
4627fe60af Merge "Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats" 2024-10-03 14:16:24 +00:00
jenkins-bot
db7ee3db99 Merge "Add namespace to remaining parts of Wikimedia\ObjectCache" 2024-10-03 14:02:47 +00:00
jenkins-bot
831a027afd Merge "Add namespace to Wikimedia\Redis libs" 2024-10-03 13:59:08 +00:00
James D. Forrester
bd5fb63494 RELEASE-NOTES-1.43: Add note about mw.Uri being deprecated
Bug: T374314
Change-Id: I61a9df578c0d12498769f4ef59da87b829dfe754
2024-10-03 09:43:01 -04:00
C. Scott Ananian
22cdf9cdf6 Deprecate ParserOutput::setLanguageLinks(null)
Bug: T376323
Follows-Up: I82a05a51d94782ebb9fa87ff889ca0f633b3e15c
Change-Id: I0952659ab245326e9e8352170fb0a629ec109e72
2024-10-02 16:10:39 -04:00
Amir E. Aharoni
5c1765fc21 Add Southern Ndebele language (nr)
This is done experimentally, with only a Names.php entry and
namespace translations, before we have actual localized strings.
For details, see https://www.mediawiki.org/wiki/Future_of_Language_Incubation.

I've tested it on my local MediaWiki instance, and it works
as expected: no user interface translations, but the namespaces
appear corretly in page titles, Special:AllPages, etc.,
when `$wgLanguageCode = 'nr'` is set in LocalSettings.php,
and the language name appears correctly in the dropdown in the
"Internationalisation" section in the Preferences.

Bug: T375377
Change-Id: I44cf6a6dabf2ade873506a78573db4f7783a9c99
2024-10-02 17:57:34 +00:00
jenkins-bot
659914b47b Merge "Add Duala language (dua)" 2024-10-02 16:33:19 +00:00
jenkins-bot
a80da8eacf Merge "resourceloader: Add/change ResourceLoaderModifyEmbeddedSourceUrls hook" 2024-10-02 16:12:30 +00:00
Amir E. Aharoni
0e08e6a999 Update autonym for Komering (kge)
Bug: T375947
Change-Id: I6c343a277630fbf2da3214ab7191172dda465c15
2024-10-02 12:55:58 +00:00
Amir E. Aharoni
6e9637a7ec Add Duala language (dua)
Bug: T376248
Change-Id: I70a4b323cbf1b6e34b9a079799daa8e33240cb30
2024-10-02 07:35:54 -04:00
Anne Tomasevich
0823ce884e Update Codex from v1.13.0 to v1.13.1
Bug: T322014
Bug: T362346
Bug: T373225
Bug: T375698
Bug: T376045
Change-Id: I48c5a0e781fb10893adf63921124df23587b83ad
2024-10-01 18:34:35 +00:00
Amir E. Aharoni
d4921ec7aa Add Luba-Lulua (lua) to Names.php
Bug: T375999
Change-Id: I7eb614c7fd968f245e60b644a4c87028d2fe3fcb
2024-09-30 10:10:04 -04:00
jenkins-bot
315de0e434 Merge "Deduplicate language links in ParserOutput and OutputPage" 2024-09-27 22:43:43 +00:00
James D. Forrester
cc28acc455 Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats
Bug: T353458
Change-Id: If0137003ab625017d322d57870448a02569668c3
2024-09-27 16:19:10 -04:00
James D. Forrester
53b67ae0a6 Add namespace to remaining parts of Wikimedia\ObjectCache
Bug: T353458
Change-Id: I3b736346550953e3b2977c14dc3eb10edc07cf97
2024-09-27 16:19:10 -04:00
James D. Forrester
2144fef6d1 Add namespace to Wikimedia\Redis libs
Bug: T353458
Change-Id: I7a874e1ee1d41a75e34b8a6b6f4d065b5b812c43
2024-09-27 16:19:10 -04:00