mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-17 18:30:49 +00:00
Use addDescription() instead of accessing guts directly
Change-Id: I767cbb9969c90b645e6a94ee49b2fe2352001fd8
This commit is contained in:
parent
0385a6fa23
commit
f055f30f86
|
@ -10,7 +10,7 @@ class BackfillUnreadWikis extends Maintenance {
|
|||
public function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
$this->mDescription = "Backfill echo_unread_wikis table";
|
||||
$this->addDescription( "Backfill echo_unread_wikis table" );
|
||||
$this->addOption( 'rebuild', 'Only recompute already-existing rows' );
|
||||
$this->setBatchSize( 300 );
|
||||
$this->requireExtension( 'Echo' );
|
||||
|
|
|
@ -34,7 +34,7 @@ class GenerateSampleNotifications extends Maintenance {
|
|||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->mDescription = "Generate sample notifications";
|
||||
$this->addDescription( "Generate sample notifications" );
|
||||
|
||||
$this->addOption(
|
||||
'force',
|
||||
|
|
|
@ -19,7 +19,7 @@ class ProcessEchoEmailBatch extends Maintenance {
|
|||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->mDescription = "Process email digest";
|
||||
$this->addDescription( "Process email digest" );
|
||||
|
||||
$this->addOption(
|
||||
"ignoreConfiguredSchedule",
|
||||
|
|
|
@ -19,7 +19,7 @@ class RemoveInvalidNotification extends Maintenance {
|
|||
protected $invalidEventType = [ 'article-linked' ];
|
||||
|
||||
public function __construct() {
|
||||
$this->mDescription = "Removes invalid notifications from the database.";
|
||||
$this->addDescription( "Removes invalid notifications from the database." );
|
||||
$this->requireExtension( 'Echo' );
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class RemoveOrphanedEvents extends LoggedUpdateMaintenance {
|
|||
public function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
$this->mDescription = "Remove rows from echo_event that don't have corresponding rows in echo_notification";
|
||||
$this->addDescription( "Remove rows from echo_event that don't have corresponding rows in echo_notification" );
|
||||
|
||||
$this->setBatchSize( 500 );
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
|||
class GenerateEchoAutoload extends Maintenance {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->mDescription = 'Generates Echo autoload data';
|
||||
$this->addDescription( 'Generates Echo autoload data' );
|
||||
}
|
||||
|
||||
public function execute() {
|
||||
|
|
Loading…
Reference in a new issue