Skip to content

Commit af1142b

Browse files
author
Máté Szabó
authored
Merge pull request #6 from Wikia/smw-sync
Backport SUS-1305 and SUS-2180
2 parents b3dacd3 + e945ce8 commit af1142b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

includes/specials/SMW_SpecialSMWAdmin.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,18 @@ public function execute( $par ) {
7474

7575
$this->messageBuilder = $this->htmlFormRenderer->getMessageBuilder();
7676

77-
$jobQueueLookup = $mwCollaboratorFactory->newJobQueueLookup( $this->getStore()->getConnection( 'mw.db' ) );
78-
$row = $jobQueueLookup->selectJobRowFor( 'SMW\RefreshJob' );
79-
80-
if ( $row !== false ) { // similar to Job::pop_type, but without deleting the job
81-
$title = Title::makeTitleSafe( $row->job_namespace, $row->job_title );
82-
$blob = (string)$row->job_params !== '' ? unserialize( $row->job_params ) : false;
83-
$refreshjob = Job::factory( $row->job_cmd, $title, $blob, $row->job_id );
84-
} else {
77+
// $jobQueueLookup = $mwCollaboratorFactory->newJobQueueLookup( $this->getStore()
78+
// ->getConnection( 'mw.db' ) );
79+
// $row = $jobQueueLookup->selectJobRowFor( 'SMW\RefreshJob' );
80+
81+
// if ( $row !== false ) { // similar to Job::pop_type, but without deleting the job
82+
// $title = Title::makeTitleSafe( $row->job_namespace, $row->job_title );
83+
// $blob = (string)$row->job_params !== '' ? unserialize( $row->job_params ) : false;
84+
// $refreshjob = Job::factory( $row->job_cmd, $title, $blob, $row->job_id );
85+
//} else {
86+
// Wikia change - we do not use job DB table for handling tasks queue (SUS-1305)
8587
$refreshjob = null;
86-
}
88+
//}
8789

8890
/**** Execute actions if any ****/
8991
switch ( $this->getRequest()->getText( 'action' ) ) {

tests/phpunit/Integration/InterwikiDBIntegrationTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ protected function setUp() {
5252
$interwiki = array(
5353
'iw_prefix' => 'iw-test',
5454
'iw_url' => 'http://www.example.org/$1',
55-
'iw_api' => false,
56-
'iw_wikiid' => 'foo',
5755
'iw_local' => true,
5856
'iw_trans' => false,
5957
);

0 commit comments

Comments
 (0)