Commit graph

429 commits

Author SHA1 Message Date
James D. Forrester
c386f2c5a7 RELEASE-NOTES-1.37: Note that we require PHP 7.4.2+ and not PHP 8.0
Bug: T289590
Change-Id: I59b3de0e9a753d41835d1d9b562848b9c9fb2f46
2021-10-21 15:56:36 -07:00
Reedy
f5b5fa06ce RELEASE-NOTES-1.37: Sync up with 1.37.0-rc.0
Change-Id: I090fce46d248104aff2c0de6f7c55fa67bebdebc
2021-10-21 22:16:04 +01:00
jenkins-bot
2303886bc9 Merge "Add $wgParserEnableLegacyMediaDOM to REL1-37 release notes" 2021-10-14 20:41:34 +00:00
Arlo Breault
b770956968 Add $wgParserEnableLegacyMediaDOM to REL1-37 release notes
Bug: T51097
Change-Id: Iabc092b643bfb9d6bc90559f230ae6a84f6d544d
2021-10-14 16:03:27 -04:00
Reedy
2bcc75c9b4 Upgrading zordius/lightncandy (v1.2.5 => v1.2.6)
Depends-On: Ie300e47f0c1429784a9ee97d99b25e37ea83787a
Change-Id: Ic2829a2d1c6d4ba106b162416cedecd7066f2c34
2021-10-09 10:25:10 +00:00
James D. Forrester
b4efcdf49a Drop $j alias for $, deprecated since 1.23
Bug: T280944
Change-Id: Ifb41d35d0d08b3c0631040b2f52d856de51adc67
2021-10-06 08:43:40 -07:00
Aaron Schulz
5279d001ad Update release notes for 59b002b866 and 7e12163708
Change-Id: I97f981608b7cc173a251728fa39d24a207e782cf
2021-10-04 12:27:56 -07:00
Daimona Eaytoy
eedd8a7774 Deprecate the UndeleteForm::undelete hook
It allowed replacement of the PageArchive object, which is so horrific
that I'm going to have nightmares for a while after seeing that code.

A new hook, PageUndelete, was added to give users something to migrate
to that is also used by API requests etc, and for symmetry with
DeletePage.

This change needs to be in 1.37, since the capability of replacing
PageArchive will be removed in 1.38 by the addition of the UndeletePage
service. Note that in 1.37, errors from the status will not be used
since PageArchive::undeleteAsUser returns false in case of errors.

The only usage of this hook in WMF production (ext:Newsletter) is fixed
in a dependent patch. A non-WMF usage in ext:Video is not fixed since
that one does replace PageArchive and I'd rather not mess with that.

SpecialUndelete has two other similar hooks that pass a PageArchive by
reference, but in those places PageArchive is used as a lookup (not an
undeletion command), so they're not affected by the ongoing undeletion
work, and we cannot deprecate them since we'd have to provide
replacements first. I've left some comments anyway.

Bug: T290021
Change-Id: If434c7ff9de92482f84d535baae5139c18081174
2021-09-28 15:40:50 +00:00
Volker E
206beaad66 mediawiki.mixins: Remove 2009 Flexbox spec support
Only supported by Android 4.3 as remaining basic supported browser.
Not worth to send down the wire from current usage across our products.

Bug: T278670
Bug: T290935
Change-Id: I3b5fb20b12f4f8d228c10ec8a03661df30426473
2021-09-20 11:36:41 -07:00
Volker E
48cd9551b1 mediawiki.mixins: Remove deprecated .box-shadow() mixin
Deprecated in MW 1.36 and replaced with standard `box-shadow`
properties in all code repositories on our radar since.

Bug: T277819
Depends-On: Id199b33339e417792837384d28ef7f8d125bea60
Change-Id: I4adeb975dbf4e203c9a41d6564b1a68c10094019
2021-09-20 10:35:59 -07:00
DannyS712
f5072723e8 Deprecate the ArticleUndeleteLogEntry hook
So that it can be removed shortly - no known callers.
This should be backported to 1.37

Change-Id: I00b4b1ae89606330e0a907c25bcd40d9c797bc84
2021-09-17 22:00:53 +00:00
jenkins-bot
6b887d5e49 Merge "Deprecate WikiPage methods replaced by DeletePage" 2021-09-16 21:01:54 +00:00
Daimona Eaytoy
a8200aa5a8 Deprecate WikiPage methods replaced by DeletePage
Also remove the "@unstable" annotation from DeletePage.

Methods without known usages were hard-deprecated, the others
soft-deprecated.

Bug: T288758
Bug: T288759
Change-Id: I30c62572fd533526779a8ade3ab178f35bebb522
2021-09-16 20:17:45 +00:00
jenkins-bot
76fdc1fc91 Merge "Deprecate and replace legacy hooks in DeletePage" 2021-09-16 18:39:29 +00:00
Daimona Eaytoy
377342de86 Deprecate and replace legacy hooks in DeletePage
In both cases the typehints were changed to the new interfaces. For the
ArticleDelete hook, the replacement has no $error param and requires the
caller to set a fatal status if it wants to abort.

Bug: T288758
Change-Id: I9540f6ab2075bcf56bd4fdc79c611c883246cdce
2021-09-16 19:13:35 +02:00
Daimona Eaytoy
30a4919717 Remove Article::delete() Article::confirmDelete() and ImagePage::delete()
All unused.

Bug: T288282
Change-Id: Ia07ddab8c0ec9b74e58e980798263f6b6685a31f
2021-09-16 19:10:55 +02:00
James D. Forrester
092a3dde91 RELEASE-NOTES-1.37: Re-write to prepare for rc.0
Consistency of language, syntax, wording and styling. Or, at least,
a first stab at this.

Bug: T289590
Change-Id: I15d2c617419141e4c1d440c46806a3150d1b4ee0
2021-09-16 08:40:50 -07:00
jenkins-bot
5af89e32c7 Merge "Emit deprecation warnings reading from $wgUser" 2021-09-16 15:27:44 +00:00
DannyS712
a2b20b63d7 Emit deprecation warnings reading from $wgUser
With this patch deprecation warnings will be emitted
if $wgUser is accessed or written into. The only pattern
of usage still allowed is

$oldUser = $wgUser;
$wgUser = $newUser;
// Do something
$wgUser = $oldUser;

Once there is no deprecation warnings, we know that nothing
legitimately depends on $wgUser being set, so we can safely
remove the code that's still allowed as well.

Bug: T267861
Change-Id: Ia1c42b3a32acd0e2bb9b0e93f1dc3c82640dcb22
2021-09-15 20:17:04 -07:00
jdlrobson
1be6af3823 RELEASE-NOTES-1.37: Clarify recent skin footer deprecations
Change-Id: I54f45cd5c37dc3f1b3b5233469c1791e28535451
2021-09-16 02:29:01 +00:00
Martin Urbanec
949b16b9f5 RELEASE-NOTES-1.37: Note changes in HTMLTitleTextField
Bug: T288181
Change-Id: I3bea0e5682b98647a9489b3d39f9a068de017a61
2021-09-15 14:42:50 +02:00
jdlrobson
f9be83e310 Deprecate Skin::getCopyrightIcon. Skin::getPoweredBy, SkinGetPoweredBy hook
The skin methods serve BaseTemplate so are moved there. The associated
hook is seldom used so deprecated.

Bug: T290583
Change-Id: I166241fc88b98603f8d5489643eda984f49bad66
2021-09-14 20:53:46 -07:00
jenkins-bot
a7e6a04334 Merge "Remove Title from signatures in CategoryViewer" 2021-09-14 19:04:18 +00:00
jenkins-bot
2b65cad056 Merge "Add sjd and sje languages to Names.php" 2021-09-14 06:00:15 +00:00
jenkins-bot
8eff281a70 Merge "Add symfony/polyfill-php80" 2021-09-14 02:59:36 +00:00
C. Scott Ananian
78522aea4b Add symfony/polyfill-php80
Doing this before REL1_37 ensures that any PHP8.0-isms won't break
backports.

Bug: T290697
Change-Id: I945a08d219c3d30813ca2f778d097ebd8bb0f129
2021-09-13 22:15:27 -04:00
Volker E
ea72c9b690 mediawiki.mixins: Deprecate various mixins
Deprecating different mixins, where we forecast basic supported
browser will be unprefixed at time of MediaWiki 1.38.

Change-Id: I4dc902aa9d7eb6a42085b91fd78bb4281b8a933f
2021-09-14 01:11:57 +00:00
Amir E. Aharoni
2627944afc Add sjd and sje languages to Names.php
sjd orthography according to
Michael Rießler, Towards a digital infrastructure for Kildin saami
https://dh-north.org/siberian_studies/publications/sikriessler.pdf

sje orthography according to
Pitesamisk ortografi: beslut om pitesamisk ortografi, Sámi Giellagáldu.
https://assets.ctfassets.net/kkxfrpcp7iyu/3Wcbuu6rq0QKdtFk5ZF4UE/85f4d457d87f4997ef59ef72232a4a42/Bidums__megiella_tj__llemvuohke.pdf

Bug: T290126
Bug: T290408
Change-Id: I6af196412aeef82aaeefa59e3130d8032caeebfb
2021-09-13 20:49:29 +00:00
jenkins-bot
80a054d35f Merge "Remove stub threshold feature" 2021-09-13 19:50:48 +00:00
jenkins-bot
17538e4698 Merge "Remove User from LinksUpdate" 2021-09-13 18:41:43 +00:00
jenkins-bot
c4b17ee3bb Merge "Drop action api token methods deprecated in 1.24" 2021-09-13 16:47:49 +00:00
Petr Pchelko
35f38e995b Remove User from LinksUpdate
This does a breaking change, but all (2) known usages
of the LinksUpdate::getTriggeringUser are satisfied
by UserIdentity.

Change-Id: I682ee65f7b3d30fe6c0fe76d5106857ddfa6da5d
2021-09-13 09:40:24 -07:00
Petr Pchelko
5afc62f258 Remove stub threshold feature
Bug: T284917
Change-Id: I5c9ea04a9deca136bb7210f07200d18f97fd6686
2021-09-13 09:26:38 -07:00
Aryeh Gregor
ceda8ac60e Remove Title from signatures in CategoryViewer
Co-authored-by: Daniel Kinzler <dkinzler@wikimedia.org>
Change-Id: Ie880482fe58b96809fdfd08ebf0825bdcf1d19d1
2021-09-13 16:14:06 +00:00
Petr Pchelko
8d7201894c Drop action api token methods deprecated in 1.24
Removes deprecated API endpoints and modules for dealing with
CSRF tokens.

Note: i18n messages are removed in a followup for ease of revert.

Bug: T280806
Depends-On: Ic83f44587db119ff2e3e6d5ff33a10894e0695e7
Change-Id: I58aedec6942ac5d3c21574cb0072f00ef365098c
2021-09-13 15:22:16 +00:00
TChin
7b49172469 Deprecate userCan hook
Specify hard deprecation

Bug: T285805
Change-Id: I2aba03865bd0719fe0b34d49b79f9fb0309158e5
2021-09-13 09:24:39 -04:00
Gergő Tisza
17b91bb099
Change $wgExperimentalHtmlIds to HTML5-first
Use HTML5 URL fragment encoding (leaving almost all Unicode
characters unescaped) when rendering internal links. Section titles
will still generate an anchor with the old (percent-encoding-style,
with dots instead of percents) fragment encoding, alongside the
HTML5 one, for compatiblity with external links etc.

Follows up I8780bb589002a4 which enabled the HTML5 anchors.
This follow-up was planned for 1.35 but better late than never.
Wikimedia has been using HTML5-first since 1.31 without problems.

Bug: T186267
Bug: T290464
Change-Id: If6696fb33ef95cbd29c944b48588918e8077e9f9
Depends-On: I0c846173c06698eb039ed289ad202fd3539e61a9
2021-09-11 17:41:56 -07:00
Amir Sarabadani
64752c0fc4 Drop $wgDjvuToXML
The software behind this is abandoned and we are migrating djvu metadata
to json instead.

This doesn't affect production as we already use djvudump

Bug: T275268
Change-Id: If45ae5746ba91ba305f93603dc1e3aafba80a369
2021-09-10 23:40:31 +02:00
jenkins-bot
5a53d57449 Merge "LinkCache: soft deprecate addGoodLinkObj()" 2021-09-10 17:22:02 +00:00
jenkins-bot
7ece0e7afd Merge "Title: Make use of BacklinkCacheFactory service" 2021-09-10 14:31:23 +00:00
daniel
855988fd0e LinkCache: soft deprecate addGoodLinkObj()
addGoodLinkObj() has many optional arguments, but omitting them actually
means corrupting the cache.

Nearly all existing callers are in tests.
So LinkCacheTestTrait::addGoodLinkObject() was created only
for testing. It is better to have this method in the
trait, because building the row directly in each test
would make these tests brittle against schema changes.

The only usage in WMF production code was in WikiPage and has been
fixed.

Bug: T284955
Change-Id: I03a2bd9ed64fcc0281ee29a286c8db395a9e03d9
2021-09-10 16:00:02 +02:00
James D. Forrester
5268c60036 Upgrade OOjs-Router from v0.2.0 to v0.3.0
This is an environmental upgrade only, and is a no-op
for run code.

Change-Id: I48d87876e7b62d7b69d5b7c08283a23b1d1397e0
2021-09-09 16:49:16 -07:00
jenkins-bot
121fa45d81 Merge "Update cssjanus/cssjanus from 2.0.0 to 2.1.0" 2021-09-09 23:28:15 +00:00
jenkins-bot
1efeefe017 Merge "PageStore: Use LinkCache" 2021-09-09 20:04:47 +00:00
James D. Forrester
017366e2cf Update cssjanus/cssjanus from 2.0.0 to 2.1.0
Depends-On: Iac0b7702b001062495f1e08d055481d3c436161e
Change-Id: I259c341ad04fcb13921d0cf2433e0552a8870bad
2021-09-09 12:44:48 -07:00
Derick Alangi
db43511e6a Title: Make use of BacklinkCacheFactory service
Change-Id: I48161585de6f329ec4037156234e0b07b3b837e6
2021-09-09 14:04:02 +01:00
jenkins-bot
9bb32a1f20 Merge "Add BacklinkCacheFactory Service" 2021-09-09 11:41:33 +00:00
jenkins-bot
52b70b6cd2 Merge "Title: Deprecate Title::getDefaultNamespace()" 2021-09-09 09:00:30 +00:00
Derick Alangi
96bc83e8eb Add BacklinkCacheFactory Service
Bug: T279433
Change-Id: I2943935e2d8148fce4457f76eca0234be72a5a5a
2021-09-09 09:58:52 +01:00
Reedy
4dae3b1a06 Rename four config variables to avoid 'blacklist' term
As part of our wider work on modernising and making more welcoming the
language we use within and around MediaWiki, now is a good time for us
to rename these configuration variables:

 - $wgFileBlacklist is now $wgProhibitedFileExtensions
 - $wgMimeTypeBlacklist is now $wgMimeTypeExclusions
 - $wgEnableUserEmailBlacklist is now $wgEnableUserEmailMuteList
 - $wgShortPagesNamespaceBlacklist is now $wgShortPagesNamespaceExclusions

Bug: T277987
Depends-On: I91e065c58fda144a722a41cf532e717f962d7a64
Change-Id: I558a8b20d67d48edccce0d065aec2d22992e9dda
2021-09-08 23:32:29 +01:00