DannyS712 created this task. DannyS712 added projects: User-DannyS712, MediaWiki-Revision-backend, Technical-Debt (Deprecation process), Core Platform Team Workboards (Clinic Duty Team), MediaWiki-extensions-WikibaseRepository. Restricted Application added a project: Wikidata.
TASK DESCRIPTION Soft deprecated in 1.32 Outside of core, the only use is in #mediawiki-extensions-wikibaserepository <https://phabricator.wikimedia.org/tag/mediawiki-extensions-wikibaserepository/> - I took a look at how to replace it there, but gave up after half an hour. The relevant code is below name=SqlStore::rebuild public function rebuild() { $dbw = wfGetDB( DB_MASTER ); // TODO: refactor selection code out (relevant for other stores) $pages = $dbw->select( [ 'page' ], [ 'page_id', 'page_latest' ], [ 'page_content_model' => WikibaseRepo::getDefaultInstance()->getEntityContentFactory()->getEntityContentModels() ], __METHOD__, [ 'LIMIT' => 1000 ] // TODO: continuation ); foreach ( $pages as $pageRow ) { $page = WikiPage::newFromID( $pageRow->page_id ); $revision = Revision::newFromId( $pageRow->page_latest ); try { $page->doEditUpdates( $revision, RequestContext::getMain()->getUser() ); } catch ( DBQueryError $e ) { wfLogWarning( 'editUpdateFailed for ' . $page->getId() . ' on revision ' . $revision->getId() . ': ' . $e->getMessage() ); } } } TASK DETAIL https://phabricator.wikimedia.org/T249563 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: DannyS712 Cc: Aklapper, DannyS712, eprodromou, darthmon_wmde, Nandana, Amorymeltzer, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, Scott_WUaS, Pchelolo, Izno, Wikidata-bugs, aude, Dinoguy1000, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
