Anomie added a comment.

Perhaps we could use SiteConfiguration to gain access to the various migration stages on the different wikis: If a SiteConfiguration is injected, the local values of the migrations tage for MCR, CommentStore and Actor are overwritten by the value for the target wiki retrieved from SiteConfiguration.

The method you'd use to do that is SiteConfiguration::getConfig(). Note its documentation: "For foreign wikis, this is expensive, and only works if maintenance scripts are setup to handle the --wiki parameter such as in wiki farms."

While you could in theory get most of the way there by passing the correct $wiki, $suffix, $params, and $wikiTags to SiteConfiguration::get(), determining the correct values for those variables for an arbitrary other wiki is non-trivial. On WMF sites, you'd basically need to duplicate lines 176 and 199-227 of CommonSettings.php and you'd still be out of luck if that wiki uses the value from DefaultSettings.php.


TASK DETAIL
https://phabricator.wikimedia.org/T198701

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel, Anomie
Cc: Anomie, gerritbot, Aklapper, daniel, Addshore, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, JJMC89, Maathavan, Agabi10, Wikidata-bugs, aude, Mbch331, Ltrlg
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to