diff options
author | Gergő Tisza <tgr.huwiki@gmail.com> | 2022-09-26 18:22:16 +0200 |
---|---|---|
committer | Gergő Tisza <tgr.huwiki@gmail.com> | 2022-09-29 14:39:22 +0200 |
commit | 7e2df77d08fda2740f6f3b7a5a0917569df97cdb (patch) | |
tree | 97d1b61e14a5c244a481e85e9850d3e6fa4ab8d9 /RELEASE-NOTES-1.39 | |
parent | 5fe7ccb06976585e04ef975abf98e20731a47dfa (diff) | |
download | mediawikicore-7e2df77d08fda2740f6f3b7a5a0917569df97cdb.tar.gz mediawikicore-7e2df77d08fda2740f6f3b7a5a0917569df97cdb.zip |
Soft-deprecate the remainder of ActorMigration
Since MediaWiki 1.39 (I66b2cb8653), the actor migration stage is
always SCHEMA_COMPAT_NEW, so ActorMigration doesn't really do
anything useful and can be replaced with a hard-coded query.
This patch marks the class as deprecated and adds information
on how to replace it, with the intent of getting backported to
1.39.
See https://www.mediawiki.org/wiki/Actor_migration for background.
Note that this process happened in MediaWiki 1.34 for wikis using
update.php, but the migration code has been kept around so far
because the migration process took a long time for some large
wikis.
Usage check for upcoming hard deprecation:
https://codesearch.wmcloud.org/search/?q=%5CbActorMigration%5Cb&i=nope&files=&excludeFiles=&repos=
- getWhere('rev_user'), getJoin('rev_user'): used in many extensions
and some core classes
- getJoin('rc_user'): in SocialProfile, already hard-deprecated
- getJoin('log_comment'), getJoin('log_user'): used in
ArticleFeedbackv5, already hard-deprecated
- getInsertValues('log_user'): used in ArticleFeedbackv5, already
hard-deprecated
- MIGRATION_STAGE_SCHEMA_COMPAT, class existence check: used in
UserMerge, DynamicPageList, UniversalLanguageSelector,
StubUserWikiAuth. Might be used for B/C with old MediaWiki
versions, there isn't really a proper deprecation path for this
use case, but it's only relevant for 1.33 and older, so probably
can be let go now.
Bug: T227047
Change-Id: Ib02e38d20c5a1f96e68a4f67bbd981375c2e97db
Diffstat (limited to 'RELEASE-NOTES-1.39')
-rw-r--r-- | RELEASE-NOTES-1.39 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/RELEASE-NOTES-1.39 b/RELEASE-NOTES-1.39 index cf403937d237..2122b928d991 100644 --- a/RELEASE-NOTES-1.39 +++ b/RELEASE-NOTES-1.39 @@ -570,6 +570,12 @@ because of Phabricator reports. IndexPager::buildPrevNextNavigation() have been deprecated in favor of IndexPager::getNavigationBuilder(). * Overriding the method IndexPager::makeLink() has been deprecated. +* ActorMigration is deprecated. The temporary table is no longer needed, the + actor table can be directly joined to the revision table, which is simple + enough to not need a helper class. See the methods of ActorMigration for more + specific information on replacements. ActorMigrationBase remains usable for + migrations in extension tables. +* … === Other changes in 1.39 === * Dynamic default values are now applied before extension registration callbacks |