[MediaWiki-commits] [Gerrit] mediawiki...SecurePoll[master]: Revert "Dump should return decrypted votes"

2017-05-18 Thread Jalexander (Code Review)
Hello Aaron Schulz, Tim Starling, Huji, Chad, Reedy, jenkins-bot, Anomie,

I'd like you to do a code review.  Please visit

https://gerrit.wikimedia.org/r/354193

to review the following change.


Change subject: Revert "Dump should return decrypted votes"
..

Revert "Dump should return decrypted votes"

For large elections the decryption takes too long (same reason tally page 
doesn't work) and prohibits use of the dump page because of timeout. 

This reverts commit d2eac8c31231136e8df57a30f88ff75d7231f102.

Change-Id: Ic0c145ac87074fe7c38331d6a5add690546e20b6
---
M includes/pages/DumpPage.php
1 file changed, 1 insertion(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/93/354193/1

diff --git a/includes/pages/DumpPage.php b/includes/pages/DumpPage.php
index 782fd64..a0465de 100644
--- a/includes/pages/DumpPage.php
+++ b/includes/pages/DumpPage.php
@@ -63,22 +63,7 @@
if ( !$this->headersSent ) {
$this->sendHeaders();
}
-   $record = $row->vote_record;
-   if ( $this->election->getCrypt() ) {
-   $status = $this->election->getCrypt()->decrypt( $record 
);
-   if ( !$status->isOK() ) {
-   // Decrypt failed, e.g. invalid or absent 
private key
-   // Still, return the encrypted vote
-   echo "\n" . $record . 
"\n\n";
-   } else {
-   $decrypted_record = $status->value;
-   echo "\n" . $record .
-   "\n" . 
$decrypted_record .
-   "\n\n";
-   }
-   } else {
-   echo "\n" . $record . 
"\n\n";
-   }
+   echo "" . $row->vote_record . "\n";
}
 
public function sendHeaders() {

-- 
To view, visit https://gerrit.wikimedia.org/r/354193
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic0c145ac87074fe7c38331d6a5add690546e20b6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Jalexander 
Gerrit-Reviewer: Aaron Schulz 
Gerrit-Reviewer: Anomie 
Gerrit-Reviewer: Chad 
Gerrit-Reviewer: Huji 
Gerrit-Reviewer: Reedy 
Gerrit-Reviewer: Tim Starling 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...SecurePoll[wmf/1.30.0-wmf.1]: Revert "Dump should return decrypted votes"

2017-05-18 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/354194 )

Change subject: Revert "Dump should return decrypted votes"
..

Revert "Dump should return decrypted votes"

For large elections the decryption takes too long (same reason tally page 
doesn't work) and prohibits use of the dump page because of timeout. 

This reverts commit d2eac8c31231136e8df57a30f88ff75d7231f102.

Change-Id: Ic0c145ac87074fe7c38331d6a5add690546e20b6
---
M includes/pages/DumpPage.php
1 file changed, 1 insertion(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/94/354194/1

diff --git a/includes/pages/DumpPage.php b/includes/pages/DumpPage.php
index 5b0261c..71cb1ef 100644
--- a/includes/pages/DumpPage.php
+++ b/includes/pages/DumpPage.php
@@ -58,22 +58,7 @@
if ( !$this->headersSent ) {
$this->sendHeaders();
}
-   $record = $row->vote_record;
-   if ( $this->election->getCrypt() ) {
-   $status = $this->election->getCrypt()->decrypt( $record 
);
-   if ( !$status->isOK() ) {
-   // Decrypt failed, e.g. invalid or absent 
private key
-   // Still, return the encrypted vote
-   echo "\n" . $record . 
"\n\n";
-   } else {
-   $decrypted_record = $status->value;
-   echo "\n" . $record .
-   "\n" . 
$decrypted_record .
-   "\n\n";
-   }
-   } else {
-   echo "\n" . $record . 
"\n\n";
-   }
+   echo "" . $row->vote_record . "\n";
}
 
public function sendHeaders() {

-- 
To view, visit https://gerrit.wikimedia.org/r/354194
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic0c145ac87074fe7c38331d6a5add690546e20b6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: wmf/1.30.0-wmf.1
Gerrit-Owner: Jalexander 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...SecurePoll[wmf/1.29.0-wmf.21]: Remove required from property_wiki

2017-04-27 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350780 )

Change subject: Remove required from property_wiki
..

Remove required from property_wiki

Stop gap for now because global elections are unable to be created through 
interface

Bug: T164043
Change-Id: I957e07a12ce11ce28900a21031496f1656f21c9f
---
M includes/pages/CreatePage.php
1 file changed, 0 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/80/350780/1

diff --git a/includes/pages/CreatePage.php b/includes/pages/CreatePage.php
index 1cf46a7..6c26d15 100644
--- a/includes/pages/CreatePage.php
+++ b/includes/pages/CreatePage.php
@@ -127,7 +127,6 @@
'type' => 'select',
'options' => $opts,
'label-message' => 
'securepoll-create-label-wiki',
-   'required' => true,
);
} else {
$options['securepoll-create-option-wiki-other_wiki'] = 
'other';
@@ -136,7 +135,6 @@
'autocomplete-data' => $wikiNames,
'options-messages' => $options,
'label-message' => 
'securepoll-create-label-wiki',
-   'required' => true,
'require-match' => true,
'default' => wfWikiID(),
);

-- 
To view, visit https://gerrit.wikimedia.org/r/350780
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I957e07a12ce11ce28900a21031496f1656f21c9f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: wmf/1.29.0-wmf.21
Gerrit-Owner: Jalexander 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...SecurePoll[master]: Remove required from property_wiki

2017-04-27 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350779 )

Change subject: Remove required from property_wiki
..

Remove required from property_wiki

Stop gap for now because global elections are unable to be created through 
interface

Bug: T164043
Change-Id: I957e07a12ce11ce28900a21031496f1656f21c9f
---
M includes/pages/CreatePage.php
1 file changed, 0 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/79/350779/1

diff --git a/includes/pages/CreatePage.php b/includes/pages/CreatePage.php
index 1cf46a7..6c26d15 100644
--- a/includes/pages/CreatePage.php
+++ b/includes/pages/CreatePage.php
@@ -127,7 +127,6 @@
'type' => 'select',
'options' => $opts,
'label-message' => 
'securepoll-create-label-wiki',
-   'required' => true,
);
} else {
$options['securepoll-create-option-wiki-other_wiki'] = 
'other';
@@ -136,7 +135,6 @@
'autocomplete-data' => $wikiNames,
'options-messages' => $options,
'label-message' => 
'securepoll-create-label-wiki',
-   'required' => true,
'require-match' => true,
'default' => wfWikiID(),
);

-- 
To view, visit https://gerrit.wikimedia.org/r/350779
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I957e07a12ce11ce28900a21031496f1656f21c9f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Jalexander 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...SecurePoll[wmf/1.29.0-wmf.20]: Add voter scripts for board/fdc election 2017

2017-04-26 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350444 )

Change subject: Add voter scripts for board/fdc election 2017
..

Add voter scripts for board/fdc election 2017

Bug: T163854
Change-Id: I69692de75377f72c923c066d4102fef9dd743e03
---
A cli/wm-scripts/bv2017/bv2017_tables.sql
A cli/wm-scripts/bv2017/doSpam.php
A cli/wm-scripts/bv2017/populateEditCount.php
A cli/wm-scripts/bv2017/voterList.php
4 files changed, 337 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/44/350444/1

diff --git a/cli/wm-scripts/bv2017/bv2017_tables.sql 
b/cli/wm-scripts/bv2017/bv2017_tables.sql
new file mode 100644
index 000..b3d279f
--- /dev/null
+++ b/cli/wm-scripts/bv2017/bv2017_tables.sql
@@ -0,0 +1,5 @@
+CREATE TABLE bv2017_edits (
+   bv_user int not null primary key,
+   bv_long_edits int not null,
+   bv_short_edits int not null
+);
diff --git a/cli/wm-scripts/bv2017/doSpam.php b/cli/wm-scripts/bv2017/doSpam.php
new file mode 100644
index 000..36b6273
--- /dev/null
+++ b/cli/wm-scripts/bv2017/doSpam.php
@@ -0,0 +1,120 @@
+loadFullData();
+
+/**
+ * A list of usernames that don't want email about elections
+ * e.g. copied from https://meta.wikimedia.org/wiki/Wikimedia_nomail_list
+ * @var array
+ */
+$nomail = array();
+$raw = file_get_contents( 
'https://meta.wikimedia.org/wiki/Wikimedia_Foundation_nomail_list?action=raw' );
+if ( preg_match( '/(?<=).*(?=<\/pre>)/ms', $raw, $matches ) ) {
+   $nomail = array_filter( array_map( 'trim', explode( "\n", $matches[0] ) 
) );
+}
+
+/**
+ * Name of the list of allowed voters
+ * @var string
+ */
+$listName = 'board-vote-2015a';
+
+/**
+ * ID number of the election
+ * @var int
+ */
+$electionId = 512;
+
+$specialWikis = MWWikiversions::readDbListFile( 
'/srv/mediawiki/dblists/special.dblist' );
+
+function getDefaultLang( $db ) {
+   global $wgConf, $specialWikis;
+   static $langs = array();
+
+   if ( empty( $langs[$db] ) ) {
+   list( $site, $siteLang ) = $wgConf->siteFromDB( $db );
+   $tags = array();
+   if ( in_array( $db, $specialWikis ) ) {
+   $tags[] = 'special';
+   }
+   $langs[$db] = RequestContext::sanitizeLangCode(
+   $wgConf->get( 'wgLanguageCode', $db, null, array( 
'lang' => $siteLang ), $tags ) );
+   }
+
+   return $langs[$db];
+}
+
+function getLanguage( $userId, $wikiId ) {
+   $db = CentralAuthUser::getLocalDB( $wikiId );
+   $lang = false;
+   try {
+   $lang = RequestContext::sanitizeLangCode(
+   $db->selectField( 'user_properties', 'up_value',
+   array( 'up_user' => $userId, 'up_property' => 
'language' ) ) );
+   } catch ( Exception $e ) {
+   // echo 'Caught exception: ' .  $e->getMessage() . "\n";
+   }
+   if ( !$lang ) {
+   $lang = getDefaultLang( $wikiId );
+   }
+   return $lang;
+}
+
+
+
+$voted = array();
+$vdb = wfGetDB( DB_SLAVE, array(), 'votewiki' );
+$voted = $vdb->selectFieldValues( 'securepoll_voters', 'voter_name',
+   array( 'voter_election' => $electionId ) );
+
+
+$db = CentralAuthUser::getCentralSlaveDB();
+$res = $db->select(
+   array( 'securepoll_lists', 'globaluser' ),
+   array(
+   'gu_id',
+   'gu_name',
+   'gu_email',
+   'gu_home_db',
+   ),
+   array(
+   'gu_id=li_member',
+   'li_name' => $listName,
+   'gu_email_authenticated is not null',
+   'gu_email is not null',
+   )
+);
+
+$users = array();
+foreach ( $res as $row ) {
+   if ( !$row->gu_email ) {
+   continue;
+   }
+   if ( in_array( $row->gu_email, $nomail ) ) {
+   // echo "Skipping {$row->gu_email}; in nomail list.\n";
+   continue;
+   }
+   if ( in_array( $row->gu_name, $voted ) ) {
+   // echo "Skipping {$row->gu_name}; already voted.\n";
+   continue;
+   } else {
+   $users[] = array(
+   'id'  => $row->gu_id,
+   'mail'=> $row->gu_email,
+   'name'=> $row->gu_name,
+   'project' => $row->gu_home_db,
+   );
+   }
+}
+
+foreach ( $users as $user ) {
+   if ( empty( $user['project'] ) ) {
+   $caUser = new CentralAuthUser( $user['name'] );
+   $user['project'] = $caUser->getHomeWiki();
+   }
+   $user['lang'] = getLanguage( $user['id'], $user['project'] );
+   echo 
"{$user['mail']}\t{$user['lang']}\t{$user['project']}\t{$user['name']}\n";
+}
diff --git a/cli/wm-scripts/bv2017/populateEditCount.php 
b/cli/wm-scripts/bv2017/populateEditCount.php
new file mode 100644
index 

[MediaWiki-commits] [Gerrit] mediawiki...SecurePoll[wmf/1.29.0-wmf.21]: Add voter scripts for board/fdc election 2017

2017-04-26 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350443 )

Change subject: Add voter scripts for board/fdc election 2017
..

Add voter scripts for board/fdc election 2017

Bug: T163854
Change-Id: I69692de75377f72c923c066d4102fef9dd743e03
---
A cli/wm-scripts/bv2017/bv2017_tables.sql
A cli/wm-scripts/bv2017/doSpam.php
A cli/wm-scripts/bv2017/populateEditCount.php
A cli/wm-scripts/bv2017/voterList.php
4 files changed, 337 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/43/350443/1

diff --git a/cli/wm-scripts/bv2017/bv2017_tables.sql 
b/cli/wm-scripts/bv2017/bv2017_tables.sql
new file mode 100644
index 000..b3d279f
--- /dev/null
+++ b/cli/wm-scripts/bv2017/bv2017_tables.sql
@@ -0,0 +1,5 @@
+CREATE TABLE bv2017_edits (
+   bv_user int not null primary key,
+   bv_long_edits int not null,
+   bv_short_edits int not null
+);
diff --git a/cli/wm-scripts/bv2017/doSpam.php b/cli/wm-scripts/bv2017/doSpam.php
new file mode 100644
index 000..36b6273
--- /dev/null
+++ b/cli/wm-scripts/bv2017/doSpam.php
@@ -0,0 +1,120 @@
+loadFullData();
+
+/**
+ * A list of usernames that don't want email about elections
+ * e.g. copied from https://meta.wikimedia.org/wiki/Wikimedia_nomail_list
+ * @var array
+ */
+$nomail = array();
+$raw = file_get_contents( 
'https://meta.wikimedia.org/wiki/Wikimedia_Foundation_nomail_list?action=raw' );
+if ( preg_match( '/(?<=).*(?=<\/pre>)/ms', $raw, $matches ) ) {
+   $nomail = array_filter( array_map( 'trim', explode( "\n", $matches[0] ) 
) );
+}
+
+/**
+ * Name of the list of allowed voters
+ * @var string
+ */
+$listName = 'board-vote-2015a';
+
+/**
+ * ID number of the election
+ * @var int
+ */
+$electionId = 512;
+
+$specialWikis = MWWikiversions::readDbListFile( 
'/srv/mediawiki/dblists/special.dblist' );
+
+function getDefaultLang( $db ) {
+   global $wgConf, $specialWikis;
+   static $langs = array();
+
+   if ( empty( $langs[$db] ) ) {
+   list( $site, $siteLang ) = $wgConf->siteFromDB( $db );
+   $tags = array();
+   if ( in_array( $db, $specialWikis ) ) {
+   $tags[] = 'special';
+   }
+   $langs[$db] = RequestContext::sanitizeLangCode(
+   $wgConf->get( 'wgLanguageCode', $db, null, array( 
'lang' => $siteLang ), $tags ) );
+   }
+
+   return $langs[$db];
+}
+
+function getLanguage( $userId, $wikiId ) {
+   $db = CentralAuthUser::getLocalDB( $wikiId );
+   $lang = false;
+   try {
+   $lang = RequestContext::sanitizeLangCode(
+   $db->selectField( 'user_properties', 'up_value',
+   array( 'up_user' => $userId, 'up_property' => 
'language' ) ) );
+   } catch ( Exception $e ) {
+   // echo 'Caught exception: ' .  $e->getMessage() . "\n";
+   }
+   if ( !$lang ) {
+   $lang = getDefaultLang( $wikiId );
+   }
+   return $lang;
+}
+
+
+
+$voted = array();
+$vdb = wfGetDB( DB_SLAVE, array(), 'votewiki' );
+$voted = $vdb->selectFieldValues( 'securepoll_voters', 'voter_name',
+   array( 'voter_election' => $electionId ) );
+
+
+$db = CentralAuthUser::getCentralSlaveDB();
+$res = $db->select(
+   array( 'securepoll_lists', 'globaluser' ),
+   array(
+   'gu_id',
+   'gu_name',
+   'gu_email',
+   'gu_home_db',
+   ),
+   array(
+   'gu_id=li_member',
+   'li_name' => $listName,
+   'gu_email_authenticated is not null',
+   'gu_email is not null',
+   )
+);
+
+$users = array();
+foreach ( $res as $row ) {
+   if ( !$row->gu_email ) {
+   continue;
+   }
+   if ( in_array( $row->gu_email, $nomail ) ) {
+   // echo "Skipping {$row->gu_email}; in nomail list.\n";
+   continue;
+   }
+   if ( in_array( $row->gu_name, $voted ) ) {
+   // echo "Skipping {$row->gu_name}; already voted.\n";
+   continue;
+   } else {
+   $users[] = array(
+   'id'  => $row->gu_id,
+   'mail'=> $row->gu_email,
+   'name'=> $row->gu_name,
+   'project' => $row->gu_home_db,
+   );
+   }
+}
+
+foreach ( $users as $user ) {
+   if ( empty( $user['project'] ) ) {
+   $caUser = new CentralAuthUser( $user['name'] );
+   $user['project'] = $caUser->getHomeWiki();
+   }
+   $user['lang'] = getLanguage( $user['id'], $user['project'] );
+   echo 
"{$user['mail']}\t{$user['lang']}\t{$user['project']}\t{$user['name']}\n";
+}
diff --git a/cli/wm-scripts/bv2017/populateEditCount.php 
b/cli/wm-scripts/bv2017/populateEditCount.php
new file mode 100644
index 

[MediaWiki-commits] [Gerrit] mediawiki...SecurePoll[master]: Add voter scripts for board/fdc election 2017

2017-04-26 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350371 )

Change subject: Add voter scripts for board/fdc election 2017
..

Add voter scripts for board/fdc election 2017

Bug: T163854
Change-Id: I69692de75377f72c923c066d4102fef9dd743e03
---
A cli/wm-scripts/bv2017/bv2017_tables.sql
A cli/wm-scripts/bv2017/doSpam.php
A cli/wm-scripts/bv2017/populateEditCount.php
A cli/wm-scripts/bv2017/voterList.php
4 files changed, 337 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/71/350371/1

diff --git a/cli/wm-scripts/bv2017/bv2017_tables.sql 
b/cli/wm-scripts/bv2017/bv2017_tables.sql
new file mode 100644
index 000..b3d279f
--- /dev/null
+++ b/cli/wm-scripts/bv2017/bv2017_tables.sql
@@ -0,0 +1,5 @@
+CREATE TABLE bv2017_edits (
+   bv_user int not null primary key,
+   bv_long_edits int not null,
+   bv_short_edits int not null
+);
diff --git a/cli/wm-scripts/bv2017/doSpam.php b/cli/wm-scripts/bv2017/doSpam.php
new file mode 100644
index 000..36b6273
--- /dev/null
+++ b/cli/wm-scripts/bv2017/doSpam.php
@@ -0,0 +1,120 @@
+loadFullData();
+
+/**
+ * A list of usernames that don't want email about elections
+ * e.g. copied from https://meta.wikimedia.org/wiki/Wikimedia_nomail_list
+ * @var array
+ */
+$nomail = array();
+$raw = file_get_contents( 
'https://meta.wikimedia.org/wiki/Wikimedia_Foundation_nomail_list?action=raw' );
+if ( preg_match( '/(?<=).*(?=<\/pre>)/ms', $raw, $matches ) ) {
+   $nomail = array_filter( array_map( 'trim', explode( "\n", $matches[0] ) 
) );
+}
+
+/**
+ * Name of the list of allowed voters
+ * @var string
+ */
+$listName = 'board-vote-2015a';
+
+/**
+ * ID number of the election
+ * @var int
+ */
+$electionId = 512;
+
+$specialWikis = MWWikiversions::readDbListFile( 
'/srv/mediawiki/dblists/special.dblist' );
+
+function getDefaultLang( $db ) {
+   global $wgConf, $specialWikis;
+   static $langs = array();
+
+   if ( empty( $langs[$db] ) ) {
+   list( $site, $siteLang ) = $wgConf->siteFromDB( $db );
+   $tags = array();
+   if ( in_array( $db, $specialWikis ) ) {
+   $tags[] = 'special';
+   }
+   $langs[$db] = RequestContext::sanitizeLangCode(
+   $wgConf->get( 'wgLanguageCode', $db, null, array( 
'lang' => $siteLang ), $tags ) );
+   }
+
+   return $langs[$db];
+}
+
+function getLanguage( $userId, $wikiId ) {
+   $db = CentralAuthUser::getLocalDB( $wikiId );
+   $lang = false;
+   try {
+   $lang = RequestContext::sanitizeLangCode(
+   $db->selectField( 'user_properties', 'up_value',
+   array( 'up_user' => $userId, 'up_property' => 
'language' ) ) );
+   } catch ( Exception $e ) {
+   // echo 'Caught exception: ' .  $e->getMessage() . "\n";
+   }
+   if ( !$lang ) {
+   $lang = getDefaultLang( $wikiId );
+   }
+   return $lang;
+}
+
+
+
+$voted = array();
+$vdb = wfGetDB( DB_SLAVE, array(), 'votewiki' );
+$voted = $vdb->selectFieldValues( 'securepoll_voters', 'voter_name',
+   array( 'voter_election' => $electionId ) );
+
+
+$db = CentralAuthUser::getCentralSlaveDB();
+$res = $db->select(
+   array( 'securepoll_lists', 'globaluser' ),
+   array(
+   'gu_id',
+   'gu_name',
+   'gu_email',
+   'gu_home_db',
+   ),
+   array(
+   'gu_id=li_member',
+   'li_name' => $listName,
+   'gu_email_authenticated is not null',
+   'gu_email is not null',
+   )
+);
+
+$users = array();
+foreach ( $res as $row ) {
+   if ( !$row->gu_email ) {
+   continue;
+   }
+   if ( in_array( $row->gu_email, $nomail ) ) {
+   // echo "Skipping {$row->gu_email}; in nomail list.\n";
+   continue;
+   }
+   if ( in_array( $row->gu_name, $voted ) ) {
+   // echo "Skipping {$row->gu_name}; already voted.\n";
+   continue;
+   } else {
+   $users[] = array(
+   'id'  => $row->gu_id,
+   'mail'=> $row->gu_email,
+   'name'=> $row->gu_name,
+   'project' => $row->gu_home_db,
+   );
+   }
+}
+
+foreach ( $users as $user ) {
+   if ( empty( $user['project'] ) ) {
+   $caUser = new CentralAuthUser( $user['name'] );
+   $user['project'] = $caUser->getHomeWiki();
+   }
+   $user['lang'] = getLanguage( $user['id'], $user['project'] );
+   echo 
"{$user['mail']}\t{$user['lang']}\t{$user['project']}\t{$user['name']}\n";
+}
diff --git a/cli/wm-scripts/bv2017/populateEditCount.php 
b/cli/wm-scripts/bv2017/populateEditCount.php
new file mode 100644
index 

[MediaWiki-commits] [Gerrit] Change voteWiki to fa language temporarily - change (operations/mediawiki-config)

2016-04-14 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/283400

Change subject: Change voteWiki to fa language temporarily
..

Change voteWiki to fa language temporarily

Bug: T132667
Change-Id: I75cf5954ac8d68e607975e7b1b77170915ffe4d1
---
M wmf-config/InitialiseSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/00/283400/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index e40c447..bbec997 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -166,6 +166,7 @@
'tenwiki' => 'en',
'transitionteamwiki' => 'en',
'usabilitywiki' => 'en',
+   'votewiki' => 'fa', #T132667
'wikimania' => 'en',
'wikimaniateamwiki' => 'en',
'zerowiki' => 'en',

-- 
To view, visit https://gerrit.wikimedia.org/r/283400
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I75cf5954ac8d68e607975e7b1b77170915ffe4d1
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Enable SecurePoll poll creation on officeWiki - change (operations/mediawiki-config)

2016-02-18 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/271741

Change subject: Enable SecurePoll poll creation on officeWiki
..

Enable SecurePoll poll creation on officeWiki

To allow local polls to be created if necessary.

Change-Id: I9040d26078f35a0ab636aa90f627836cf66a9795
---
M wmf-config/InitialiseSettings.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/41/271741/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 2912c8d..9945c73 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -8179,6 +8179,7 @@
'flood' => array( 'bot' => true ), // T86237
'user' => array( 'massmessage' => true, ), // T66978
'sysop' => array( 'importupload' => true, 'flow-create-board' 
=> true ), // T101663
+   'securepoll' => array( 'securepoll-create-poll' => true, 
'editinterface' => true ),
),
'+ombudsmenwiki' => array(
'autoconfirmed' => array(
@@ -9199,7 +9200,7 @@
'sysop' => array( 'autopatrolled', 'patroller' ),
),
'+officewiki' => array(
-   'bureaucrat' => array( 'import', 'transwiki', 'communityapps', 
'flood' ),
+   'bureaucrat' => array( 'import', 'transwiki', 'communityapps', 
'flood', 'securepoll' ),
),
'+ombudsmenwiki' => array(
'bureaucrat' => array( 'accountcreator', 'import', 'transwiki', 
'user', 'autoconfirmed', 'ipblock-exempt', ),
@@ -9871,7 +9872,7 @@
'sysop' => array( 'autopatrolled', 'patroller' ),
),
'+officewiki' => array(
-   'bureaucrat' => array( 'sysop', 'bureaucrat', 'import', 
'transwiki', 'communityapps', 'flood' ),
+   'bureaucrat' => array( 'sysop', 'bureaucrat', 'import', 
'transwiki', 'communityapps', 'flood', 'securepoll' ),
),
'+ombudsmenwiki' => array(
'bureaucrat' => array( 'sysop', 'accountcreator', 'import', 
'transwiki', 'user', 'autoconfirmed', 'ipblock-exempt', 'bureaucrat', ),
@@ -15778,6 +15779,7 @@
'default' => false,
'testwiki' => true,
'votewiki' => true,
+   'officewiki' => true,
 ),
 
 'wmgUseGlobalAbuseFilters' => array(

-- 
To view, visit https://gerrit.wikimedia.org/r/271741
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9040d26078f35a0ab636aa90f627836cf66a9795
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add Cookie statement link to footer of all WMF wikis per legal - change (mediawiki...WikimediaMessages)

2016-01-31 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/267626

Change subject: Add Cookie statement link to footer of all WMF wikis per legal
..

Add Cookie statement link to footer of all WMF wikis per legal

Along with messages

Bug: T124366
Change-Id: Ide5a2337ea38deec0f08ef058cd64cd1b842b52c
(cherry picked from commit 94e18548430d2db54884a7c42c203435d913575e)
---
M WikimediaMessages.hooks.php
M i18n/wikimedia/en.json
M i18n/wikimedia/qqq.json
M i18n/wikimediaoverridesnotranslate/en.json
M i18n/wikimediaoverridesnotranslate/es.json
M i18n/wikimediaoverridesnotranslate/qqq.json
6 files changed, 24 insertions(+), 10 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMessages 
refs/changes/26/267626/1

diff --git a/WikimediaMessages.hooks.php b/WikimediaMessages.hooks.php
index f39a1c5..a27784d 100644
--- a/WikimediaMessages.hooks.php
+++ b/WikimediaMessages.hooks.php
@@ -142,7 +142,7 @@
}
 
/**
-* Add a "Developers" link to the footer of every page (T35464)
+* Add a "Developers"  (T35464) and "Cookie statement" (T124366) link 
to the footer of every page
 *
 * @param $skin SkinTemplate (from includes/SkinTemplate.php)
 * @param $template QuickTemplate (from includes/SkinTemplate.php)
@@ -150,17 +150,26 @@
 * @return bool
 */
public static function onSkinTemplateOutputPageBeforeExec( &$skin, 
&$template ) {
-   $destination = Skin::makeInternalOrExternalUrl( $skin->msg( 
'wikimedia-developers-url' )->inContentLanguage()->text() );
-   $link = Html::element(
+   $devDestination = Skin::makeInternalOrExternalUrl( $skin->msg( 
'wikimedia-developers-url' )->inContentLanguage()->text() );
+   $devLink = Html::element(
'a',
-   array( 'href' => $destination ),
+   array( 'href' => $devDestination ),
$skin->msg( 'wikimedia-developers' )->text()
);
-   $template->set( 'developers', $link );
+   $template->set( 'developers', $devLink );
$template->data['footerlinks']['places'][] = 'developers';
+   $cookieDestination = Skin::makeInternalOrExternalUrl( 
$skin->msg( 'wikimedia-cookiestatement-page' )->inContentLanguage()->text() );
+   $cookieLink = Html::element(
+   'a',
+   array( 'href' => $cookieDestination ),
+   $skin->msg( 'wikimedia-cookiestatement' )->text()
+   );
+   $template->set( 'cookiestatement', $cookieLink );
+   $template->data['footerlinks']['places'][] = 'cookiestatement';
return true;
}
 
+
/**
 * Set the message on TorBlock being triggered
 *
diff --git a/i18n/wikimedia/en.json b/i18n/wikimedia/en.json
index 4dc8052..bf5a103 100644
--- a/i18n/wikimedia/en.json
+++ b/i18n/wikimedia/en.json
@@ -522,5 +522,6 @@
"search-interwiki-results-zh_min_nanwiki": "Showing results from 
[[:zh-min-nan:Main_Page|Min Nan Wikipedia]].",
"search-interwiki-results-zh_yuewiki": "Showing results from 
[[:zh-yue:Main_Page|Cantonese Wikipedia]].",
"search-interwiki-results-zhwiki": "Showing results from 
[[:zh:Main_Page|Chinese Wikipedia]].",
-   "search-interwiki-results-zuwiki": "Showing results from 
[[:zu:Main_Page|Zulu Wikipedia]]."
+   "search-interwiki-results-zuwiki": "Showing results from 
[[:zu:Main_Page|Zulu Wikipedia]].",
+   "wikimedia-cookiestatement": "Cookie statement"
 }
diff --git a/i18n/wikimedia/qqq.json b/i18n/wikimedia/qqq.json
index 43a73b6..b7960e5 100644
--- a/i18n/wikimedia/qqq.json
+++ b/i18n/wikimedia/qqq.json
@@ -548,5 +548,6 @@
"search-interwiki-results-zh_min_nanwiki": "Search results description 
for Min Nan Wikipedia.",
"search-interwiki-results-zh_yuewiki": "Search results description for 
Cantonese Wikipedia.",
"search-interwiki-results-zhwiki": "Search results description for 
Chinese Wikipedia.",
-   "search-interwiki-results-zuwiki": "Search results description for Zulu 
Wikipedia."
+   "search-interwiki-results-zuwiki": "Search results description for Zulu 
Wikipedia.",
+   "wikimedia-cookiestatement": "Text for link to Wikimedia Foundation 
Cookie statement on foundatiowWiki for the footer on all WMF wikis."
 }
diff --git a/i18n/wikimediaoverridesnotranslate/en.json 
b/i18n/wikimediaoverridesnotranslate/en.json
index 14068cc..97dafdd 100644
--- a/i18n/wikimediaoverridesnotranslate/en.json
+++ b/i18n/wikimediaoverridesnotranslate/en.json
@@ -1,4 +1,5 @@
 {
"wikimedia-privacypage": "wmf:Privacy_policy",
-   "wikimedia-privacypage-labs": "wikitech:Wikitech:Labs_Terms_of_use"
+   "wikimedia-privacypage-labs": 

[MediaWiki-commits] [Gerrit] Add Cookie statement link to footer of all WMF wikis per legal - change (mediawiki...WikimediaMessages)

2016-01-21 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/265658

Change subject: Add Cookie statement link to footer of all WMF wikis per legal
..

Add Cookie statement link to footer of all WMF wikis per legal

Along with messages

Bug: T124366
Change-Id: Ide5a2337ea38deec0f08ef058cd64cd1b842b52c
---
M WikimediaMessages.hooks.php
M i18n/wikimedia/en.json
M i18n/wikimedia/qqq.json
M i18n/wikimediaoverridesnotranslate/en.json
M i18n/wikimediaoverridesnotranslate/es.json
M i18n/wikimediaoverridesnotranslate/qqq.json
6 files changed, 24 insertions(+), 10 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMessages 
refs/changes/58/265658/1

diff --git a/WikimediaMessages.hooks.php b/WikimediaMessages.hooks.php
index f39a1c5..889dc1b 100644
--- a/WikimediaMessages.hooks.php
+++ b/WikimediaMessages.hooks.php
@@ -142,7 +142,7 @@
}
 
/**
-* Add a "Developers" link to the footer of every page (T35464)
+* Add a "Developers"  (T35464) and "Cookie statement" (T124366) link 
to the footer of every page
 *
 * @param $skin SkinTemplate (from includes/SkinTemplate.php)
 * @param $template QuickTemplate (from includes/SkinTemplate.php)
@@ -150,17 +150,26 @@
 * @return bool
 */
public static function onSkinTemplateOutputPageBeforeExec( &$skin, 
&$template ) {
-   $destination = Skin::makeInternalOrExternalUrl( $skin->msg( 
'wikimedia-developers-url' )->inContentLanguage()->text() );
-   $link = Html::element(
+   $devdestination = Skin::makeInternalOrExternalUrl( $skin->msg( 
'wikimedia-developers-url' )->inContentLanguage()->text() );
+   $devlink = Html::element(
'a',
-   array( 'href' => $destination ),
+   array( 'href' => $devdestination ),
$skin->msg( 'wikimedia-developers' )->text()
);
-   $template->set( 'developers', $link );
+   $template->set( 'developers', $devlink );
$template->data['footerlinks']['places'][] = 'developers';
+   $cookiedestination = Skin::makeInternalOrExternalUrl( 
$skin->msg( 'wikimedia-cookiestatement-page' )->inContentLanguage()->text() );
+   $cookielink = Html::element(
+   'a',
+   array( 'href' => $cookiedestination ),
+   $skin->msg( 'wikimedia-cookiestatement' )->text()
+   );
+   $template->set( 'cookiestatement', $cookielink );
+   $template->data['footerlinks']['places'][] = 'cookiestatement';
return true;
}
 
+
/**
 * Set the message on TorBlock being triggered
 *
diff --git a/i18n/wikimedia/en.json b/i18n/wikimedia/en.json
index 4dc8052..bf5a103 100644
--- a/i18n/wikimedia/en.json
+++ b/i18n/wikimedia/en.json
@@ -522,5 +522,6 @@
"search-interwiki-results-zh_min_nanwiki": "Showing results from 
[[:zh-min-nan:Main_Page|Min Nan Wikipedia]].",
"search-interwiki-results-zh_yuewiki": "Showing results from 
[[:zh-yue:Main_Page|Cantonese Wikipedia]].",
"search-interwiki-results-zhwiki": "Showing results from 
[[:zh:Main_Page|Chinese Wikipedia]].",
-   "search-interwiki-results-zuwiki": "Showing results from 
[[:zu:Main_Page|Zulu Wikipedia]]."
+   "search-interwiki-results-zuwiki": "Showing results from 
[[:zu:Main_Page|Zulu Wikipedia]].",
+   "wikimedia-cookiestatement": "Cookie statement"
 }
diff --git a/i18n/wikimedia/qqq.json b/i18n/wikimedia/qqq.json
index c2a60a9..cb38b2c 100644
--- a/i18n/wikimedia/qqq.json
+++ b/i18n/wikimedia/qqq.json
@@ -547,5 +547,6 @@
"search-interwiki-results-zh_min_nanwiki": "Search results description 
for Min Nan Wikipedia.",
"search-interwiki-results-zh_yuewiki": "Search results description for 
Cantonese Wikipedia.",
"search-interwiki-results-zhwiki": "Search results description for 
Chinese Wikipedia.",
-   "search-interwiki-results-zuwiki": "Search results description for Zulu 
Wikipedia."
+   "search-interwiki-results-zuwiki": "Search results description for Zulu 
Wikipedia.",
+   "wikimedia-cookiestatement": "text for link to Wikimedia Foundation 
Cookie statement on foundationWiki for the footer on all WMF wikis"
 }
diff --git a/i18n/wikimediaoverridesnotranslate/en.json 
b/i18n/wikimediaoverridesnotranslate/en.json
index 14068cc..97dafdd 100644
--- a/i18n/wikimediaoverridesnotranslate/en.json
+++ b/i18n/wikimediaoverridesnotranslate/en.json
@@ -1,4 +1,5 @@
 {
"wikimedia-privacypage": "wmf:Privacy_policy",
-   "wikimedia-privacypage-labs": "wikitech:Wikitech:Labs_Terms_of_use"
+   "wikimedia-privacypage-labs": "wikitech:Wikitech:Labs_Terms_of_use",
+   "wikimedia-cookiestatement-page": 

[MediaWiki-commits] [Gerrit] Replace ssh key for jamesur - change (operations/puppet)

2015-08-01 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/228597

Change subject: Replace ssh key for jamesur
..

Replace ssh key for jamesur

Updating ssh key for jamesur after HD failure (and apparent backup stupidity)

Can verify key on officeWiki at User:Jalexander

Change-Id: Ia43c2c6f9b280f18aa96c8b694504d5b1d10d755
---
M modules/admin/data/data.yaml
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/97/228597/1

diff --git a/modules/admin/data/data.yaml b/modules/admin/data/data.yaml
index 6cad45c..7faa0de 100644
--- a/modules/admin/data/data.yaml
+++ b/modules/admin/data/data.yaml
@@ -911,8 +911,8 @@
 gid: 500
 name: jamesur
 realname: James Alexander
-ssh_keys: [ssh-rsa 
B3NzaC1yc2EDAQABAAABAQCrAneAwlPXWdUJfF5mq6iKhACVr0Zdhlx83oONDqERr8jD3Tn1oebsg0a7OgibL1CRPrZWCzMyh2ggY5Q9vwEyJ3DkIEfiUVxLfA9urtRLfKQ5r4gCv8OKBnG5+7K6dO50H/6IQ0YNr3bs5F3uHK3kDwTqb4M/I7NNtwojkjciZEA6w7DyHuQD15ihy5Q2AqflnjaSyAYn9rMCWHck6G5F16HhtnqGFHTZlZLNZgaC0xKMEPsS9nbFyPt6iECigfxbFOy+/gEpzTbseC0w3VIBxboHW/hpOKm23HVamxZXIZaBISBss6m/VRXxjA/ehz+PpkxvgOZylzKTNma5+wNp
-jalexan...@wikimedia.org July112014]
+ssh_keys: [ssh-rsa 
B3NzaC1yc2EDAQABAAABAQCpzjSZ/xVz5iW6HmT2NsFXSagx/NZexbRF7W8dPyv4RlBLOxAOYbfyCpu4eZ5q1qtCIYm2xzcNSIgox8SDvBoRw54lXNuHBJJQLYlL/gHQqDNnfMRTuu3vWuNVQIVfcAg6lAh0HACNVLgMEso8IqlG+ldFzlXJg9RoOHjImJMvwJ5b8uc99wuLSQA3FO8Khgil6gVu0CQzoNitjYm93DQ/QSuzJGel2wo/skKOXZ39t46h8bLg2QyoO0/33nsnNm7yoXkiA2CFRHBDpc2UJ73BQIakPDsfc2kHWHsyJHYf72COUtQqvcLubxJZrSAi1YK+3mPTT+xI4vhVlDxQe/tp
+WMServers 201508 jalexan...@wikimedia.org]
 uid: 2054
   jdlrobson:
 ensure: present

-- 
To view, visit https://gerrit.wikimedia.org/r/228597
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia43c2c6f9b280f18aa96c8b694504d5b1d10d755
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add exception for ALA hackathon at WMF Office - change (operations/mediawiki-config)

2015-06-24 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/220653

Change subject: Add exception for ALA hackathon at WMF Office
..

Add exception for ALA hackathon at WMF Office

Bug: T103764
Change-Id: Ibf55149acaaef9af4004bd3ec6e37619b29eb4a8
---
M wmf-config/throttle.php
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/53/220653/1

diff --git a/wmf-config/throttle.php b/wmf-config/throttle.php
index 251029c..cc2bd95 100644
--- a/wmf-config/throttle.php
+++ b/wmf-config/throttle.php
@@ -35,6 +35,13 @@
'value'  = 100, // 50 participants expected, but 50K flyers printed
 );
 
+$wmgThrottlingExceptions[] = array( // T103764
+   'from'   = '2015-06-26T00:00 +0:00',
+   'to' = '2015-06-27T23:59 +0:00',
+   'dbname' = array( 'enwiki', 'enwikisource' ),
+   'value'  = 50, // 50 expected max
+);
+
 ## Add throttling definitions above.
 
 /**

-- 
To view, visit https://gerrit.wikimedia.org/r/220653
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf55149acaaef9af4004bd3ec6e37619b29eb4a8
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add new version of buildSpamTranslations.php - change (mediawiki...SecurePoll)

2015-05-26 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/213973

Change subject: Add new version of buildSpamTranslations.php
..

Add new version of buildSpamTranslations.php

To build the folder needed to send board election emails.

Bug: T100454
Change-Id: I9f860a66ab2c49ff0926881f0523a7b8a41b4327
---
A cli/wm-scripts/bv2015/buildSpamTranslations.php
1 file changed, 47 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/73/213973/1

diff --git a/cli/wm-scripts/bv2015/buildSpamTranslations.php 
b/cli/wm-scripts/bv2015/buildSpamTranslations.php
new file mode 100644
index 000..fa7f068
--- /dev/null
+++ b/cli/wm-scripts/bv2015/buildSpamTranslations.php
@@ -0,0 +1,47 @@
+?php
+
+$IP = getenv( 'MW_INSTALL_PATH' );
+if ( $IP === false ) {
+   $IP = dirname( __FILE__ ) . '/../../../../..';
+}
+require_once( $IP/maintenance/commandLine.inc );
+
+$wgDebugLogFile = '/dev/stderr';
+
+$dbr = wfGetDB( DB_SLAVE );
+$dbr-debug( true );
+
+$prefix = Wikimedia_Foundation_elections_2015/MassMessages/Voter_e-mail/;
+$textPrefix = 'languages /';
+$textSuffix = \n[[Category:Board elections 2015]];
+
+$res = $dbr-select(
+   'page',
+   'page_id',
+   array( 'page_namespace' = 0, 'page_title ' . $dbr-buildLike( $prefix, 
$dbr-anyString() ) ),
+   'boardelection-spam-translation'
+);
+
+foreach( $res as $row ) {
+   $page = Article::newFromID( $row-page_id );
+
+   print Got article  . $row-page_id . \n;
+
+   $content = $page-getContent();
+
+   $len = strlen( $textPrefix );
+   if ( substr( $content, 0, $len ) == $textPrefix ) {
+   $content = substr( $content, $len );
+   }
+
+   $len = strlen( $textSuffix );
+   if ( substr( $content, - $len ) == $textSuffix ) {
+   $content = substr( $content, 0, - $len );
+   }
+
+   $content = trim( $content ) . \n;
+
+   $lang = substr( $page-getTitle()-getText(), strlen( $prefix ) );
+   $file = /a/common/elections-2015-spam/email-translations/$lang;
+   file_put_contents( $file, $content );
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/213973
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f860a66ab2c49ff0926881f0523a7b8a41b4327
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Open external links on voteWiki in new tab/window - change (operations/mediawiki-config)

2015-05-13 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/210849

Change subject: Open external links on voteWiki in new tab/window
..

Open external links on voteWiki in new tab/window

To help compensate for complaints about SecurePoll session issues when user 
clicks links and keeps coming back via back button.

Bug: T98013
Change-Id: Icb835d50dca95c1465199f0f27d2ce8d1089852a
---
M wmf-config/InitialiseSettings.php
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/49/210849/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index f38ca35..808e4f6 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -15459,6 +15459,14 @@
'default' = '//bits.wikimedia.org/beacon/media',
 ),
 
+// open external/specific links on voteWiki in new tab or window 
+// Partially for T98013 and in general help SecurePoll fail less often
+'wgExternalLinkTarget' = array(
+   'default' = false,
+   'votewiki' = '_blank',
+),
+
+
 );
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/210849
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb835d50dca95c1465199f0f27d2ce8d1089852a
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Allow gather-hidelist to be used in global user groups - change (operations/mediawiki-config)

2015-03-31 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/201093

Change subject: Allow gather-hidelist to be used in global user groups
..

Allow gather-hidelist to be used in global user groups

Bug: T94652
Change-Id: I77ec5a14ff317d14f27c8fbe9fb23019197961cb
---
M wmf-config/CommonSettings.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/93/201093/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 59a33c7..637a459 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -3028,6 +3028,9 @@
 
 $wgImgAuthDetails = true;
 
+// Enable gather-hidelist for global user groups - JRA 4-1-2015 T94652
+$wgAvailableRights[] = 'gather-hidelist';
+
 if ( file_exists( $wmfConfigDir/extension-list-$wmfVersionNumber ) ) {
// Version specific extension-list files
//

-- 
To view, visit https://gerrit.wikimedia.org/r/201093
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I77ec5a14ff317d14f27c8fbe9fb23019197961cb
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Disable anonymous page creation on swWiki - change (operations/mediawiki-config)

2015-03-08 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/195197

Change subject: Disable anonymous page creation on swWiki
..

Disable anonymous page creation on swWiki

Per local concensus and request, leaving createtalk allowed.

Bug: T44894
Change-Id: I2d7707e98fb299c623ce09ccbc244c4b44cabaf6
---
M wmf-config/InitialiseSettings.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/97/195197/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 4060ca2..ecdfe0f 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -7841,6 +7841,9 @@
'autoconfirmed' = array( 'patrol' = true ),
'rollbacker' = array( 'rollback' = true, 'autopatrol' = true 
),
),
+   '+swwiki' = array(
+   '*' = array( 'createpage' = false ), // T44894
+   ),
'+svwikisource' = array( // Bug 28614  36895
'autopatrolled' = array( 'autopatrol' = true, 
'suppressredirect' = true, 'upload' = true, 'reupload' = true ),
),

-- 
To view, visit https://gerrit.wikimedia.org/r/195197
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d7707e98fb299c623ce09ccbc244c4b44cabaf6
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Allow CollabWiki crat to remove crat/sysop - change (operations/mediawiki-config)

2015-01-05 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/182961

Change subject: Allow CollabWiki crat to remove crat/sysop
..

Allow CollabWiki crat to remove crat/sysop

Bug: T85891
Change-Id: Id6a568993d966fba13b0860c2990388a5d66a9d9
---
M wmf-config/InitialiseSettings.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/61/182961/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index d2123fd..e9e85d5 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -8675,7 +8675,7 @@
),
),
'+collabwiki' = array(
-   'bureaucrat' = array( 'translationadmin' ),
+   'bureaucrat' = array( 'translationadmin', 'sysop', 
'bureaucrat' ),
),
'+commonswiki' = array(
'bureaucrat' = array( 'gwtoolset', 'ipblock-exempt', 
'OTRS-member', 'translationadmin' ), // bug 48620, 63124

-- 
To view, visit https://gerrit.wikimedia.org/r/182961
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6a568993d966fba13b0860c2990388a5d66a9d9
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Limit edit reason sections to 250 characters - change (mediawiki...SecurePoll)

2014-11-23 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/175327

Change subject: Limit edit reason sections to 250 characters
..

Limit edit reason sections to 250 characters

Limiting edit reason sections to 250 characters since used in history and 
otherwise cut off.
Still some possibility of cut off if it uses special chacters but this seems to 
be reasonable.

Change-Id: Ie5544f1546c099cceb786bc6d6587b3990988534
---
M includes/pages/CreatePage.php
M includes/pages/TranslatePage.php
M includes/pages/VoterEligibilityPage.php
3 files changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/27/175327/1

diff --git a/includes/pages/CreatePage.php b/includes/pages/CreatePage.php
index 53242a0..fade8c0 100644
--- a/includes/pages/CreatePage.php
+++ b/includes/pages/CreatePage.php
@@ -301,6 +301,7 @@
$formItems['comment'] = array(
'type' = 'text',
'label-message' = 
'securepoll-create-label-comment',
+   'maxlength' = 250,
);
}
 
diff --git a/includes/pages/TranslatePage.php b/includes/pages/TranslatePage.php
index e92fe7c..066bcd2 100644
--- a/includes/pages/TranslatePage.php
+++ b/includes/pages/TranslatePage.php
@@ -99,7 +99,7 @@
$s .=
'p style=text-align: center;' .
wfMsgHtml( 
'securepoll-translate-label-comment' ) .
-   Xml::input( 'comment' ) .
+   Xml::input( 'comment', 45, false, 
array( 'maxlength' = 250 ) )  .
/p;
}
 
diff --git a/includes/pages/VoterEligibilityPage.php 
b/includes/pages/VoterEligibilityPage.php
index b8e7662..2a1f73a 100644
--- a/includes/pages/VoterEligibilityPage.php
+++ b/includes/pages/VoterEligibilityPage.php
@@ -604,6 +604,7 @@
$formItems['comment'] = array(
'type' = 'text',
'label-message' = 
'securepoll-votereligibility-label-comment',
+   'maxlength' = 250,
);
}
 
@@ -738,6 +739,7 @@
$formItems['comment'] = array(
'type' = 'text',
'label-message' = 
'securepoll-votereligibility-label-comment',
+   'maxlength' = 250,
);
}
 

-- 
To view, visit https://gerrit.wikimedia.org/r/175327
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie5544f1546c099cceb786bc6d6587b3990988534
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Revert Enable SecurePoll error detail for debugging - change (operations/mediawiki-config)

2014-11-20 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/174829

Change subject: Revert Enable SecurePoll error detail for debugging
..

Revert Enable SecurePoll error detail for debugging

No longer needed

This reverts commit c241bc495c451b3c83219e1f13d93dccf644fb5c.

Change-Id: Id49da7e44ffdb3744ee1e80c6a3a94c3a21d64ec
---
M wmf-config/CommonSettings.php
1 file changed, 0 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/29/174829/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 5acebab..24fdade 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -851,7 +851,6 @@
$wgSecurePollCreateWikiGroups = array(
'securepollglobal' = 'securepoll-dblist-securepollglobal'
);
-   $wgSecurePollShowErrorDetail=true; //temporary bug 73626
 }
 
 // PoolCounter

-- 
To view, visit https://gerrit.wikimedia.org/r/174829
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id49da7e44ffdb3744ee1e80c6a3a94c3a21d64ec
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Enable SecurePoll error detail for debugging - change (operations/mediawiki-config)

2014-11-19 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/174603

Change subject: Enable SecurePoll error detail for debugging
..

Enable SecurePoll error detail for debugging

Temporary, attempting to debug Bug: 73626

Bug: 73626
Change-Id: Ibaf25bd4a1890a2e8c041c68bdd2083a8b5b260c
---
M wmf-config/CommonSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/03/174603/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 24fdade..5acebab 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -851,6 +851,7 @@
$wgSecurePollCreateWikiGroups = array(
'securepollglobal' = 'securepoll-dblist-securepollglobal'
);
+   $wgSecurePollShowErrorDetail=true; //temporary bug 73626
 }
 
 // PoolCounter

-- 
To view, visit https://gerrit.wikimedia.org/r/174603
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibaf25bd4a1890a2e8c041c68bdd2083a8b5b260c
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add SecurePoll arbcom list creator (mainspace only edits) - change (mediawiki...SecurePoll)

2014-11-12 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172889

Change subject: Add SecurePoll arbcom list creator (mainspace only edits)
..

Add SecurePoll arbcom list creator (mainspace only edits)

* Old script written a year or so ago (by Reedy?)
* Accepts minedits required and date those edits should be by
* Creates a SecurePoll voter list only counting edits from mainspace

Bug: 73325
Change-Id: I6c2ddb60fdf3cb3ec19a334c4ba314c33a1a3a91
---
A cli/wm-scripts/arbcomlist.php
1 file changed, 70 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/89/172889/1

diff --git a/cli/wm-scripts/arbcomlist.php b/cli/wm-scripts/arbcomlist.php
new file mode 100644
index 000..4cf6e29
--- /dev/null
+++ b/cli/wm-scripts/arbcomlist.php
@@ -0,0 +1,70 @@
+?php
+
+/**
+ * Like makeSimpleList.php except with edits limited to the main namespace
+ */
+
+$optionsWithArgs = array( 'before', 'edits' );
+require( dirname(__FILE__).'/../cli.inc' );
+
+$dbr = wfGetDB( DB_SLAVE );
+$dbw = wfGetDB( DB_MASTER );
+$fname = 'arbcomlist.php';
+$before = isset( $options['before'] ) ? $dbr-timestamp( strtotime( 
$options['before'] ) ) : false;
+$minEdits = isset( $options['edits'] ) ? intval( $options['edits'] ) : false;
+
+if ( !isset( $args[0] ) ) {
+   echo Usage: php arbcomlist.php [--replace] [--before=date] 
[--edits=num] name\n;
+   exit( 1 );
+}
+$listName = $args[0];
+$startBatch = 0;
+$batchSize = 100;
+
+$listExists = $dbr-selectField( 'securepoll_lists', '1', 
+   array( 'li_name' = $listName ), $fname );
+if ( $listExists ) {
+   if ( isset( $options['replace'] ) ) {
+   echo Deleting existing list...\n;
+   $dbw-delete( 'securepoll_lists', array( 'li_name' = $listName 
), $fname );
+   } else {
+   echo Error: list exists. Use --replace to replace it.\n;
+   exit( 1 );
+   }
+}
+
+while ( true ) {
+   $res = $dbr-select( 'user', 'user_id',
+   array( 'user_id  ' . $dbr-addQuotes( $startBatch ) ),
+   $fname,
+   array( 'LIMIT' = $batchSize ) );
+
+   if ( !$res-numRows() ) {
+   break;
+   }
+
+   $insertBatch = array();
+   foreach ( $res as $row ) {
+   $startBatch = $userId = $row-user_id;
+   $insertRow = array( 'li_name' = $listName, 'li_member' = 
$userId );
+   if ( $minEdits === false ) {
+   $insertBatch[] = $insertRow;
+   continue;
+   }
+
+   # Count edits
+   $conds = array( 'rev_user' = $userId );
+   if ( $before !== false ) {
+   $conds[] = 'rev_timestamp  ' . $dbr-addQuotes( 
$before );
+   }
+   $conds[] = 'page_id=rev_page';
+   $conds['page_namespace'] = 0;
+   $edits = $dbr-selectField( array( 'page', 'revision' ), 
'COUNT(*)', $conds, $fname );
+   if ( $edits = $minEdits ) {
+   $insertBatch[] = $insertRow;
+   }
+   }
+   if ( $insertBatch ) {
+   $dbw-insert( 'securepoll_lists', $insertBatch, $fname );
+   }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/172889
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c2ddb60fdf3cb3ec19a334c4ba314c33a1a3a91
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add SecurePoll arbcom list creator (mainspace only edits) - change (mediawiki...SecurePoll)

2014-11-12 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172890

Change subject: Add SecurePoll arbcom list creator (mainspace only edits)
..

Add SecurePoll arbcom list creator (mainspace only edits)

* Old script written a year or so ago (by Reedy?)
* Accepts minedits required and date those edits should be by
* Creates a SecurePoll voter list only counting edits from mainspace

Bug: 73325
Change-Id: I6c2ddb60fdf3cb3ec19a334c4ba314c33a1a3a91
---
A cli/wm-scripts/arbcomlist.php
1 file changed, 70 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/90/172890/1

diff --git a/cli/wm-scripts/arbcomlist.php b/cli/wm-scripts/arbcomlist.php
new file mode 100644
index 000..4cf6e29
--- /dev/null
+++ b/cli/wm-scripts/arbcomlist.php
@@ -0,0 +1,70 @@
+?php
+
+/**
+ * Like makeSimpleList.php except with edits limited to the main namespace
+ */
+
+$optionsWithArgs = array( 'before', 'edits' );
+require( dirname(__FILE__).'/../cli.inc' );
+
+$dbr = wfGetDB( DB_SLAVE );
+$dbw = wfGetDB( DB_MASTER );
+$fname = 'arbcomlist.php';
+$before = isset( $options['before'] ) ? $dbr-timestamp( strtotime( 
$options['before'] ) ) : false;
+$minEdits = isset( $options['edits'] ) ? intval( $options['edits'] ) : false;
+
+if ( !isset( $args[0] ) ) {
+   echo Usage: php arbcomlist.php [--replace] [--before=date] 
[--edits=num] name\n;
+   exit( 1 );
+}
+$listName = $args[0];
+$startBatch = 0;
+$batchSize = 100;
+
+$listExists = $dbr-selectField( 'securepoll_lists', '1', 
+   array( 'li_name' = $listName ), $fname );
+if ( $listExists ) {
+   if ( isset( $options['replace'] ) ) {
+   echo Deleting existing list...\n;
+   $dbw-delete( 'securepoll_lists', array( 'li_name' = $listName 
), $fname );
+   } else {
+   echo Error: list exists. Use --replace to replace it.\n;
+   exit( 1 );
+   }
+}
+
+while ( true ) {
+   $res = $dbr-select( 'user', 'user_id',
+   array( 'user_id  ' . $dbr-addQuotes( $startBatch ) ),
+   $fname,
+   array( 'LIMIT' = $batchSize ) );
+
+   if ( !$res-numRows() ) {
+   break;
+   }
+
+   $insertBatch = array();
+   foreach ( $res as $row ) {
+   $startBatch = $userId = $row-user_id;
+   $insertRow = array( 'li_name' = $listName, 'li_member' = 
$userId );
+   if ( $minEdits === false ) {
+   $insertBatch[] = $insertRow;
+   continue;
+   }
+
+   # Count edits
+   $conds = array( 'rev_user' = $userId );
+   if ( $before !== false ) {
+   $conds[] = 'rev_timestamp  ' . $dbr-addQuotes( 
$before );
+   }
+   $conds[] = 'page_id=rev_page';
+   $conds['page_namespace'] = 0;
+   $edits = $dbr-selectField( array( 'page', 'revision' ), 
'COUNT(*)', $conds, $fname );
+   if ( $edits = $minEdits ) {
+   $insertBatch[] = $insertRow;
+   }
+   }
+   if ( $insertBatch ) {
+   $dbw-insert( 'securepoll_lists', $insertBatch, $fname );
+   }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/172890
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c2ddb60fdf3cb3ec19a334c4ba314c33a1a3a91
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: wmf/1.24wmf7
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add SecurePoll arbcom list creator (mainspace only edits) - change (mediawiki...SecurePoll)

2014-11-12 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172891

Change subject: Add SecurePoll arbcom list creator (mainspace only edits)
..

Add SecurePoll arbcom list creator (mainspace only edits)

* Old script written a year or so ago (by Reedy?)
* Accepts minedits required and date those edits should be by
* Creates a SecurePoll voter list only counting edits from mainspace

Bug: 73325
Change-Id: I6c2ddb60fdf3cb3ec19a334c4ba314c33a1a3a91
---
A cli/wm-scripts/arbcomlist.php
1 file changed, 70 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/91/172891/1

diff --git a/cli/wm-scripts/arbcomlist.php b/cli/wm-scripts/arbcomlist.php
new file mode 100644
index 000..4cf6e29
--- /dev/null
+++ b/cli/wm-scripts/arbcomlist.php
@@ -0,0 +1,70 @@
+?php
+
+/**
+ * Like makeSimpleList.php except with edits limited to the main namespace
+ */
+
+$optionsWithArgs = array( 'before', 'edits' );
+require( dirname(__FILE__).'/../cli.inc' );
+
+$dbr = wfGetDB( DB_SLAVE );
+$dbw = wfGetDB( DB_MASTER );
+$fname = 'arbcomlist.php';
+$before = isset( $options['before'] ) ? $dbr-timestamp( strtotime( 
$options['before'] ) ) : false;
+$minEdits = isset( $options['edits'] ) ? intval( $options['edits'] ) : false;
+
+if ( !isset( $args[0] ) ) {
+   echo Usage: php arbcomlist.php [--replace] [--before=date] 
[--edits=num] name\n;
+   exit( 1 );
+}
+$listName = $args[0];
+$startBatch = 0;
+$batchSize = 100;
+
+$listExists = $dbr-selectField( 'securepoll_lists', '1', 
+   array( 'li_name' = $listName ), $fname );
+if ( $listExists ) {
+   if ( isset( $options['replace'] ) ) {
+   echo Deleting existing list...\n;
+   $dbw-delete( 'securepoll_lists', array( 'li_name' = $listName 
), $fname );
+   } else {
+   echo Error: list exists. Use --replace to replace it.\n;
+   exit( 1 );
+   }
+}
+
+while ( true ) {
+   $res = $dbr-select( 'user', 'user_id',
+   array( 'user_id  ' . $dbr-addQuotes( $startBatch ) ),
+   $fname,
+   array( 'LIMIT' = $batchSize ) );
+
+   if ( !$res-numRows() ) {
+   break;
+   }
+
+   $insertBatch = array();
+   foreach ( $res as $row ) {
+   $startBatch = $userId = $row-user_id;
+   $insertRow = array( 'li_name' = $listName, 'li_member' = 
$userId );
+   if ( $minEdits === false ) {
+   $insertBatch[] = $insertRow;
+   continue;
+   }
+
+   # Count edits
+   $conds = array( 'rev_user' = $userId );
+   if ( $before !== false ) {
+   $conds[] = 'rev_timestamp  ' . $dbr-addQuotes( 
$before );
+   }
+   $conds[] = 'page_id=rev_page';
+   $conds['page_namespace'] = 0;
+   $edits = $dbr-selectField( array( 'page', 'revision' ), 
'COUNT(*)', $conds, $fname );
+   if ( $edits = $minEdits ) {
+   $insertBatch[] = $insertRow;
+   }
+   }
+   if ( $insertBatch ) {
+   $dbw-insert( 'securepoll_lists', $insertBatch, $fname );
+   }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/172891
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c2ddb60fdf3cb3ec19a334c4ba314c33a1a3a91
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: wmf/1.25wmf8
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add SecurePoll arbcom list creator (mainspace only edits) - change (mediawiki...SecurePoll)

2014-11-12 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172892

Change subject: Add SecurePoll arbcom list creator (mainspace only edits)
..

Add SecurePoll arbcom list creator (mainspace only edits)

* Old script written a year or so ago (by Reedy?)
* Accepts minedits required and date those edits should be by
* Creates a SecurePoll voter list only counting edits from mainspace

Bug: 73325
Change-Id: I6c2ddb60fdf3cb3ec19a334c4ba314c33a1a3a91
---
A cli/wm-scripts/arbcomlist.php
1 file changed, 70 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/92/172892/1

diff --git a/cli/wm-scripts/arbcomlist.php b/cli/wm-scripts/arbcomlist.php
new file mode 100644
index 000..4cf6e29
--- /dev/null
+++ b/cli/wm-scripts/arbcomlist.php
@@ -0,0 +1,70 @@
+?php
+
+/**
+ * Like makeSimpleList.php except with edits limited to the main namespace
+ */
+
+$optionsWithArgs = array( 'before', 'edits' );
+require( dirname(__FILE__).'/../cli.inc' );
+
+$dbr = wfGetDB( DB_SLAVE );
+$dbw = wfGetDB( DB_MASTER );
+$fname = 'arbcomlist.php';
+$before = isset( $options['before'] ) ? $dbr-timestamp( strtotime( 
$options['before'] ) ) : false;
+$minEdits = isset( $options['edits'] ) ? intval( $options['edits'] ) : false;
+
+if ( !isset( $args[0] ) ) {
+   echo Usage: php arbcomlist.php [--replace] [--before=date] 
[--edits=num] name\n;
+   exit( 1 );
+}
+$listName = $args[0];
+$startBatch = 0;
+$batchSize = 100;
+
+$listExists = $dbr-selectField( 'securepoll_lists', '1', 
+   array( 'li_name' = $listName ), $fname );
+if ( $listExists ) {
+   if ( isset( $options['replace'] ) ) {
+   echo Deleting existing list...\n;
+   $dbw-delete( 'securepoll_lists', array( 'li_name' = $listName 
), $fname );
+   } else {
+   echo Error: list exists. Use --replace to replace it.\n;
+   exit( 1 );
+   }
+}
+
+while ( true ) {
+   $res = $dbr-select( 'user', 'user_id',
+   array( 'user_id  ' . $dbr-addQuotes( $startBatch ) ),
+   $fname,
+   array( 'LIMIT' = $batchSize ) );
+
+   if ( !$res-numRows() ) {
+   break;
+   }
+
+   $insertBatch = array();
+   foreach ( $res as $row ) {
+   $startBatch = $userId = $row-user_id;
+   $insertRow = array( 'li_name' = $listName, 'li_member' = 
$userId );
+   if ( $minEdits === false ) {
+   $insertBatch[] = $insertRow;
+   continue;
+   }
+
+   # Count edits
+   $conds = array( 'rev_user' = $userId );
+   if ( $before !== false ) {
+   $conds[] = 'rev_timestamp  ' . $dbr-addQuotes( 
$before );
+   }
+   $conds[] = 'page_id=rev_page';
+   $conds['page_namespace'] = 0;
+   $edits = $dbr-selectField( array( 'page', 'revision' ), 
'COUNT(*)', $conds, $fname );
+   if ( $edits = $minEdits ) {
+   $insertBatch[] = $insertRow;
+   }
+   }
+   if ( $insertBatch ) {
+   $dbw-insert( 'securepoll_lists', $insertBatch, $fname );
+   }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/172892
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c2ddb60fdf3cb3ec19a334c4ba314c33a1a3a91
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: wmf/1.25wmf7
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add securepoll specific dblist - change (operations/mediawiki-config)

2014-11-10 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172449

Change subject: Add securepoll specific dblist
..

Add securepoll specific dblist

To allow for the seperate manipulation of what is considered a 'global' 
election for securepoll purposes. Initially needed because of Bug:72569 which 
requires us to get rid of labswiki for now but also good to have regardless 
because of wikis like loginwiki,zerowiki which should not be part of the main 
voting system. For now leaving decisions about chapter wikis etc for the board 
election committee later.

Bug:73245
Change-Id: I831203bdb5db7df79032edaf447be41ecf55c287
---
A securepollglobal.dblist
1 file changed, 885 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/49/172449/1

diff --git a/securepollglobal.dblist b/securepollglobal.dblist
new file mode 100644
index 000..81a49b4
--- /dev/null
+++ b/securepollglobal.dblist
@@ -0,0 +1,885 @@
+aawiki
+aawikibooks
+aawiktionary
+abwiki
+abwiktionary
+acewiki
+advisorywiki
+afwiki
+afwikibooks
+afwikiquote
+afwiktionary
+akwiki
+akwikibooks
+akwiktionary
+alswiki
+alswikibooks
+alswikiquote
+alswiktionary
+amwiki
+amwikiquote
+amwiktionary
+angwiki
+angwikibooks
+angwikiquote
+angwikisource
+angwiktionary
+anwiki
+anwiktionary
+arbcom_dewiki
+arbcom_enwiki
+arbcom_fiwiki
+arbcom_nlwiki
+arcwiki
+arwiki
+arwikibooks
+arwikimedia
+arwikinews
+arwikiquote
+arwikisource
+arwikiversity
+arwiktionary
+arzwiki
+astwiki
+astwikibooks
+astwikiquote
+astwiktionary
+aswiki
+aswikibooks
+aswikisource
+aswiktionary
+auditcomwiki
+avwiki
+avwiktionary
+aywiki
+aywikibooks
+aywiktionary
+azwiki
+azwikibooks
+azwikiquote
+azwikisource
+azwiktionary
+barwiki
+bat_smgwiki
+bawiki
+bawikibooks
+bclwiki
+bdwikimedia
+be_x_oldwiki
+betawikiversity
+bewiki
+bewikibooks
+bewikimedia
+bewikiquote
+bewikisource
+bewiktionary
+bgwiki
+bgwikibooks
+bgwikinews
+bgwikiquote
+bgwikisource
+bgwiktionary
+bhwiki
+bhwiktionary
+biwiki
+biwikibooks
+biwiktionary
+bjnwiki
+bmwiki
+bmwikibooks
+bmwikiquote
+bmwiktionary
+bnwiki
+bnwikibooks
+bnwikisource
+bnwiktionary
+boardgovcomwiki
+boardwiki
+bowiki
+bowikibooks
+bowiktionary
+bpywiki
+brwiki
+brwikimedia
+brwikiquote
+brwikisource
+brwiktionary
+bswiki
+bswikibooks
+bswikinews
+bswikiquote
+bswikisource
+bswiktionary
+bugwiki
+bxrwiki
+cawiki
+cawikibooks
+cawikimedia
+cawikinews
+cawikiquote
+cawikisource
+cawiktionary
+cbk_zamwiki
+cdowiki
+cebwiki
+cewiki
+chairwiki
+chapcomwiki
+checkuserwiki
+chowiki
+chrwiki
+chrwiktionary
+chwiki
+chwikibooks
+chwiktionary
+chywiki
+ckbwiki
+collabwiki
+commonswiki
+cowiki
+cowikibooks
+cowikimedia
+cowikiquote
+cowiktionary
+crhwiki
+crwiki
+crwikiquote
+crwiktionary
+csbwiki
+csbwiktionary
+cswiki
+cswikibooks
+cswikinews
+cswikiquote
+cswikisource
+cswikiversity
+cswiktionary
+cuwiki
+cvwiki
+cvwikibooks
+cywiki
+cywikibooks
+cywikiquote
+cywikisource
+cywiktionary
+dawiki
+dawikibooks
+dawikiquote
+dawikisource
+dawiktionary
+dewiki
+dewikibooks
+dewikinews
+dewikiquote
+dewikisource
+dewikiversity
+dewikivoyage
+dewiktionary
+diqwiki
+dkwikimedia
+donatewiki
+dsbwiki
+dvwiki
+dvwiktionary
+dzwiki
+dzwiktionary
+eewiki
+elwiki
+elwikibooks
+elwikinews
+elwikiquote
+elwikisource
+elwikiversity
+elwikivoyage
+elwiktionary
+emlwiki
+enwiki
+enwikibooks
+enwikinews
+enwikiquote
+enwikisource
+enwikiversity
+enwikivoyage
+enwiktionary
+eowiki
+eowikibooks
+eowikinews
+eowikiquote
+eowikisource
+eowiktionary
+eswiki
+eswikibooks
+eswikinews
+eswikiquote
+eswikisource
+eswikiversity
+eswikivoyage
+eswiktionary
+etwiki
+etwikibooks
+etwikimedia
+etwikiquote
+etwikisource
+etwiktionary
+euwiki
+euwikibooks
+euwikiquote
+euwiktionary
+execwiki
+extwiki
+fawiki
+fawikibooks
+fawikinews
+fawikiquote
+fawikisource
+fawikivoyage
+fawiktionary
+fdcwiki
+ffwiki
+fiu_vrowiki
+fiwiki
+fiwikibooks
+fiwikimedia
+fiwikinews
+fiwikiquote
+fiwikisource
+fiwikiversity
+fiwiktionary
+fjwiki
+fjwiktionary
+foundationwiki
+fowiki
+fowikisource
+fowiktionary
+frpwiki
+frrwiki
+frwiki
+frwikibooks
+frwikinews
+frwikiquote
+frwikisource
+frwikiversity
+frwikivoyage
+frwiktionary
+furwiki
+fywiki
+fywikibooks
+fywiktionary
+gagwiki
+ganwiki
+gawiki
+gawikibooks
+gawikiquote
+gawiktionary
+gdwiki
+gdwiktionary
+glkwiki
+glwiki
+glwikibooks
+glwikiquote
+glwikisource
+glwiktionary
+gnwiki
+gnwikibooks
+gnwiktionary
+gotwiki
+gotwikibooks
+grantswiki
+guwiki
+guwikibooks
+guwikiquote
+guwikisource
+guwiktionary
+gvwiki
+gvwiktionary
+hakwiki
+hawiki
+hawiktionary
+hawwiki
+hewiki
+hewikibooks
+hewikinews
+hewikiquote
+hewikisource
+hewikivoyage
+hewiktionary
+hifwiki
+hiwiki
+hiwikibooks
+hiwikiquote
+hiwiktionary
+howiki
+hrwiki
+hrwikibooks
+hrwikiquote
+hrwikisource
+hrwiktionary
+hsbwiki
+hsbwiktionary
+htwiki
+htwikisource
+huwiki
+huwikibooks
+huwikinews
+huwikiquote
+huwikisource
+huwiktionary
+hywiki

[MediaWiki-commits] [Gerrit] Adjustments to securepoll and usergroups for voteWiki - change (operations/mediawiki-config)

2014-11-10 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172464

Change subject: Adjustments to securepoll and usergroups for voteWiki
..

Adjustments to securepoll and usergroups for voteWiki

* Enable SecurePoll namespace for voteWiki (supposed to happen last patch)
* Add new user right for those running current election allowing editinterface
* Allow permenant election committee and staff advisors add/remove 
electionadmin right

Bug: 72589
Change-Id: I3170248669533bc7d7e83d068cb56d8acef0da15
---
M wmf-config/InitialiseSettings.php
1 file changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/64/172464/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 4f305d8..9701b1f 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -7816,6 +7816,9 @@
'securepoll-create-poll' = true,
'editinterface' = true
),
+   'electionadmin' = array(
+   'editinterface' = true
+   ),
),
'wikidata' = array(
'autoconfirmed' = array(
@@ -8493,6 +8496,12 @@
'electcomm',
'staffsupport'
),
+   'staffsupport' = array(
+   'electionadmin'
+   ),
+   'electcomm' = array(
+   'electionadmin'
+   ),
),
'+wikidata' = array(
'sysop' = array(
@@ -9069,6 +9078,12 @@
'staffsupport',
'sysop',
'bureaucrat'
+   ),
+   'staffsupport' = array(
+   'electionadmin'
+   ),
+   'electcomm' = array(
+   'electionadmin'
),
),
'+wikidata' = array(
@@ -13893,6 +13908,7 @@
 'wmgSecurePollUseNamespace' = array(
'default' = false,
'testwiki' = true,
+   'votewiki' = true,
 ),
 
 'wmgUseGlobalAbuseFilters' = array(

-- 
To view, visit https://gerrit.wikimedia.org/r/172464
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3170248669533bc7d7e83d068cb56d8acef0da15
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Adjustments to voteWiki config - change (operations/mediawiki-config)

2014-10-27 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/169229

Change subject: Adjustments to voteWiki config
..

Adjustments to voteWiki config

Enable blockdisableslogin
Add new electcomm and staffsupport groups
Allow crat to add and remove crat/sysop/new groups
Enable securepoll namespace for new securepoll setup

Bug: 72589
Change-Id: Ib42419ea56577f1feac31f89845efb80c3450a1d
---
M wmf-config/InitialiseSettings.php
1 file changed, 28 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/29/169229/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 0934827..53a5aa3 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -6656,6 +6656,7 @@
 'wgBlockDisablesLogin' = array(
'default' = false,
'private' = true, // bug 53871
+   'votewiki' = true, // bug 72589
 ),
 
 # groupOverrides @{
@@ -7791,6 +7792,17 @@
'patroller' = array( 'patrol' = true ), // bug 46828
'autopatrolled' = array( 'autopatrol' = true ), // bug 46828
),
+   // bug 72589 SecurePoll rights
+   '+votewiki' = array(
+   'electcomm' = array(
+   'securepoll-create-poll' = true,
+   'editinterface' = true
+   ),
+   'staffsupport' = array(
+   'securepoll-create-poll' = true,
+   'editinterface' = true
+   ),
+   ),
'wikidata' = array(
'autoconfirmed' = array(
'patrol' = true, // bug 56203
@@ -7845,7 +7857,6 @@
'rollbacker' = array( 'rollback' = true ),
'autoreviewer' = array( 'autopatrol' = true ),
),
-
'+strategywiki' = array( 'flood' = array( 'bot' = true ) ),
 ),
 # @} end of groupOverrides
@@ -8400,6 +8411,15 @@
'+vecwiki' = array(
'sysop' = array( 'flood' ),
),
+   //bug 72589
+   '+votewiki' = array(
+   'bureaucrat' = array(
+   'electcomm',
+   'staffsupport',
+   'sysop',
+   'bureaucrat'
+   ),
+   ),
'+wikidata' = array(
'sysop' = array(
'rollbacker', // bug 45165
@@ -8943,6 +8963,13 @@
'+vewikimedia' = array(
'bureaucrat' = array( 'sysop', 'bureaucrat' ),
),
+   //bug 72589
+   '+votewiki' = array(
+   'bureaucrat' = array(
+   'electcomm',
+   'staffsupport'
+   ),
+   ),
'+wikidata' = array(
'sysop' = array(
'rollbacker', // bug 45165

-- 
To view, visit https://gerrit.wikimedia.org/r/169229
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib42419ea56577f1feac31f89845efb80c3450a1d
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add license details and give credit to more authors (based o... - change (mediawiki...Cite)

2014-07-26 Thread Jalexander (Code Review)
Jalexander has submitted this change and it was merged.

Change subject: Add license details and give credit to more authors (based on 
git shortlog)
..


Add license details and give credit to more authors (based on git shortlog)

Change-Id: Iaa123a76e5dc52f44b3500e3add001581be1462d
---
A AUTHORS.txt
R COPYING.txt
M Cite.php
3 files changed, 77 insertions(+), 2 deletions(-)

Approvals:
  Jalexander: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/AUTHORS.txt b/AUTHORS.txt
new file mode 100644
index 000..2b45b26
--- /dev/null
+++ b/AUTHORS.txt
@@ -0,0 +1,68 @@
+Principal Authors (major contributors, alphabetically)
+
+Ævar Arnfjörð Bjarmason
+Andrew Garrett
+Brion Vibber
+Marius Hoch
+Steve Sanbeg
+Yair rand
+
+Patch Contributors (minor contributors, alphabetically)
+
+Aaron Schulz
+Alex Monk
+Alex Z.
+Alexandre Emsenhuber
+Antoine Musso
+Aryeh Gregor
+Brad Jorsch
+Chad Horohoe
+Daniel Cannon
+Danny B.
+Derk-Jan Hartman
+Ed Sanders
+Fomafix
+Gabriel Wicke
+Happy-melon
+Alexander Emsenhuber
+Ivan Lanin
+Jackmcbarn
+James D. Forrester
+Jan Paul Posma
+Jens Frank
+Kevin Brown
+Kevin Israel
+Kunal Mehta
+Mark A. Hershberger
+Bartosz Dziewoński
+Max Semenik
+Meno25
+Moriel Schottlender
+Nemo bis
+Nick Jenkins
+Nik Everett
+Niklas Laxström
+Ori.livneh
+OverlordQ
+Peter Gehres
+Philip Tzou
+Platonides
+Purodha B Blissenbach
+Raimond Spekking
+Remember the dot
+Roan Kattouw
+Rob Church
+Robert Rohde
+Robin Pepermans
+Ryan Kaldari
+Sam Reed
+Shinjiman
+Siebrand Mazeland
+Thomas Dalton
+ThomasV
+Tim Starling
+Tim Weyer
+Tobias
+eranroz
+kghbln
+mrbluesky
diff --git a/COPYING b/COPYING.txt
similarity index 100%
rename from COPYING
rename to COPYING.txt
diff --git a/Cite.php b/Cite.php
index 1196441..bb8ece8 100644
--- a/Cite.php
+++ b/Cite.php
@@ -22,9 +22,16 @@
 $wgExtensionCredits['parserhook'][] = array(
'path' = __FILE__,
'name' = 'Cite',
-   'author' = array( 'Ævar Arnfjörð Bjarmason', 'Marius Hoch' ),
+   'author' = array(
+   'Ævar Arnfjörð Bjarmason',
+   'Andrew Garrett',
+   'Brion Vibber',
+   'Marius Hoch',
+   'Steve Sanbeg'
+   ),
'descriptionmsg' = 'cite-desc',
-   'url' = 'https://www.mediawiki.org/wiki/Extension:Cite/Cite.php'
+   'url' = 'https://www.mediawiki.org/wiki/Extension:Cite/Cite.php',
+   'license-name' = 'GPLv2',
 );
 
 $wgParserTestFiles[] = __DIR__ . /citeParserTests.txt;

-- 
To view, visit https://gerrit.wikimedia.org/r/145038
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iaa123a76e5dc52f44b3500e3add001581be1462d
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Cite
Gerrit-Branch: master
Gerrit-Owner: Jforrester jforres...@wikimedia.org
Gerrit-Reviewer: Jackmcbarn jackmcb...@gmail.com
Gerrit-Reviewer: Jalexander jalexan...@wikimedia.org
Gerrit-Reviewer: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Allow crats to add/remove petitiondata group on foundationWiki - change (operations/mediawiki-config)

2014-07-25 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/149398

Change subject: Allow crats to add/remove petitiondata group on foundationWiki
..

Allow crats to add/remove petitiondata group on foundationWiki

Bug: 68587
Change-Id: I369dbad6e10ff636af8541200390e8b71757dd08
---
M wmf-config/InitialiseSettings.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/98/149398/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index b653590..f3f8717 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -7945,7 +7945,7 @@
),
'+foundationwiki' = array(
'sysop' = array( 'inactive', 'flood' ),
-   'bureaucrat' = array( 'import', 'transwiki', 'inactive' ),
+   'bureaucrat' = array( 'import', 'transwiki', 'inactive', 
'petitiondata' ),
),
'+frwiki' = array(
'bureaucrat' = array( 'abusefilter', 'accountcreator' ),
@@ -8456,7 +8456,7 @@
),
'+foundationwiki' = array(
'sysop' = array( 'inactive', 'confirmed', 'flood' ),
-   'bureaucrat' = array( 'sysop', 'bureaucrat', 'import', 
'transwiki', 'inactive', 'confirmed' ),
+   'bureaucrat' = array( 'sysop', 'bureaucrat', 'import', 
'transwiki', 'inactive', 'confirmed', 'petitiondata' ),
),
'+frwiki' = array(
'bureaucrat' = array( 'abusefilter', 'sysop', 'accountcreator' 
),

-- 
To view, visit https://gerrit.wikimedia.org/r/149398
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I369dbad6e10ff636af8541200390e8b71757dd08
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] updating ssh-key for jamesur - change (operations/puppet)

2014-07-01 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/143374

Change subject: updating ssh-key for jamesur
..

updating ssh-key for jamesur

Updating key for security reasons after computer theft. public key posted on 
officeWiki user page for verfication

Change-Id: Ib00d5ac6ff4a7eeb7cf89c8b977ae99a2478e264
---
M modules/admin/data/data.yaml
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/74/143374/1

diff --git a/modules/admin/data/data.yaml b/modules/admin/data/data.yaml
index 8554722..30a835e 100644
--- a/modules/admin/data/data.yaml
+++ b/modules/admin/data/data.yaml
@@ -735,8 +735,8 @@
 gid: 500
 name: jamesur
 realname: James Alexander
-ssh_keys: [ssh-rsa 
B3NzaC1yc2EDAQABAAABAQC+bZ1KKVo3jL93NYN/9++YVvbJobz5onNLMhQz37Ec8UZnb+m22R16JN0Fl++HfHy19RkI2H9Ex1vg5mqQHD+8BGpbRfl5VEJSmXB1zcbr+yJgk/b3G51EDCulJuuqQpcieI2Z4D8ds4q8NVl3cI3kH3hbjrIT4bojWz+GB0WzG2aNdkgwMUZynvLjQb+VrxcTd6fnWQsjEIVdtXXsp1croF3+lDPwrC3DFq0svPsDLu8jaFPM45VQ5VdxVZNYBGBAy+IzMeLCnLph/lBW0vS9jhAR+r0QYzzNHOiEnOISnoiw8ECtwOTAQjTaGdkv3enFme9/KXbdk6YWByapygrL
-jalexander@wikimedia.org2]
+ssh_keys: [ssh-rsa 
B3NzaC1yc2EDAQABAAABAQCrAneAwlPXWdUJfF5mq6iKhACVr0Zdhlx83oONDqERr8jD3Tn1oebsg0a7OgibL1CRPrZWCzMyh2ggY5Q9vwEyJ3DkIEfiUVxLfA9urtRLfKQ5r4gCv8OKBnG5+7K6dO50H/6IQ0YNr3bs5F3uHK3kDwTqb4M/I7NNtwojkjciZEA6w7DyHuQD15ihy5Q2AqflnjaSyAYn9rMCWHck6G5F16HhtnqGFHTZlZLNZgaC0xKMEPsS9nbFyPt6iECigfxbFOy+/gEpzTbseC0w3VIBxboHW/hpOKm23HVamxZXIZaBISBss6m/VRXxjA/ehz+PpkxvgOZylzKTNma5+wNp
+jalexan...@wikimedia.org July112014]
 uid: 2054
   jdlrobson:
 ensure: present

-- 
To view, visit https://gerrit.wikimedia.org/r/143374
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib00d5ac6ff4a7eeb7cf89c8b977ae99a2478e264
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add meta to legalteamwiki import sources - change (operations/mediawiki-config)

2014-04-17 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/127126

Change subject: Add meta to legalteamwiki import sources
..

Add meta to legalteamwiki import sources

Bug: 64070
Change-Id: I52378a4b4c792bf1220fa03aabd0e1323bece74a
---
M wmf-config/InitialiseSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/26/127126/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index f44bcc6..5c4ebc2 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -8881,6 +8881,7 @@
'lawikibooks' = array( 'w' ),
'lawikisource' = array( 'ca', 'de', 'el', 'en', 'es', 'fr', 'it', 
'pt', 'ro', 'w', 'b', 'oldwikisource' ),
'lbwiktionary' = array( 'w:fr', 'fr', 'w:en', 'en', 'w', 'meta' ),
+   'legalteamwiki' = array( 'meta' ),
'liwikinews' = array( 'incubator' ),
'lmowiki' = array( 'ca', 'en', 'fr' ), # bug 8319
'mdfwiki' = array( 'incubator' ),

-- 
To view, visit https://gerrit.wikimedia.org/r/127126
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I52378a4b4c792bf1220fa03aabd0e1323bece74a
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add config file for bing webmaster tools. - change (operations/mediawiki-config)

2014-03-26 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/121297

Change subject: Add config file for bing webmaster tools.
..

Add config file for bing webmaster tools.

To assist with removing problematic urls in bing search which bing won't do 
without the site owner.

Change-Id: Ia0aac076de4eac2a36d63712cc2b34e436f39450
---
A docroot/wikipedia.org/BingSiteAuth.xml
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/97/121297/1

diff --git a/docroot/wikipedia.org/BingSiteAuth.xml 
b/docroot/wikipedia.org/BingSiteAuth.xml
new file mode 100644
index 000..0b32633
--- /dev/null
+++ b/docroot/wikipedia.org/BingSiteAuth.xml
@@ -0,0 +1,4 @@
+?xml version=1.0?
+users
+   userBB818638EF21F67EDEA8B74818375349/user
+/users
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/121297
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0aac076de4eac2a36d63712cc2b34e436f39450
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Enable Translate and EducationProgram extensions on leglatea... - change (operations/mediawiki-config)

2014-03-13 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/118581

Change subject: Enable Translate and EducationProgram extensions on 
leglateamwiki
..

Enable Translate and EducationProgram extensions on leglateamwiki

Bug: 62610
Change-Id: I5d04c5dfe3b06246e2d35744da731f42573e1827
---
M wmf-config/InitialiseSettings.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/81/118581/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 542eaf0..3b8f56b 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -11879,6 +11879,7 @@
'collabwiki' = true,
'commonswiki' = true, // bug 48620
'incubatorwiki' = true, // bug 34213
+   'legalteamwiki' = true, // bug 62610
'mediawikiwiki' = true,
'metawiki' = true,
'otrs_wikiwiki' = true, // bug 61297
@@ -12193,6 +12194,7 @@
'eswiki' = true, // bug 54826
'fawiki' = true,
'hewiki' = true, // bug 48848
+   'legalteamwiki' = true, // bug 62610
'mkwiki' = true,
'nlwiki' = true, // bug 50574
'ptwiki' = true, // bug 52870

-- 
To view, visit https://gerrit.wikimedia.org/r/118581
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d04c5dfe3b06246e2d35744da731f42573e1827
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Allow legalteamwiki to use mobile site - change (operations/dns)

2014-03-13 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/118585

Change subject: Allow legalteamwiki to use mobile site
..

Allow legalteamwiki to use mobile site

Change-Id: Ia909270d55d0998bf426e0723efb73d1c6ab0850
---
M templates/wikimedia.org
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/dns 
refs/changes/85/118585/1

diff --git a/templates/wikimedia.org b/templates/wikimedia.org
index 47fe186..6d7f982 100644
--- a/templates/wikimedia.org
+++ b/templates/wikimedia.org
@@ -350,6 +350,7 @@
 
 commons.m  1H  IN CNAMEm.wikimedia.org.
 incubator.m1H  IN CNAMEm.wikimedia.org.
+legalteam.m1H  IN CNAMEm.wikimedia.org.
 login.m1H  IN CNAMEm.wikimedia.org.
 meta.m 1H  IN CNAMEm.wikimedia.org.
 office.m   1H  IN CNAMEm.wikimedia.org.

-- 
To view, visit https://gerrit.wikimedia.org/r/118585
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia909270d55d0998bf426e0723efb73d1c6ab0850
Gerrit-PatchSet: 1
Gerrit-Project: operations/dns
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add logo for legalteamwiki - change (operations/mediawiki-config)

2014-03-06 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/117377

Change subject: Add logo for legalteamwiki
..

Add logo for legalteamwiki

stdlogo does not appear to work for private wikis for multiple reasons

bug: 61222
Change-Id: Id8832871a98bd3f2801c89e05122d969733a0a31
---
M wmf-config/InitialiseSettings.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/77/117377/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index fffa933..f20443d 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -965,7 +965,7 @@
'iegcomwiki' = 
'//upload.wikimedia.org/wikipedia/commons/5/5e/Wikimedia_IEG_committee_logo.png',
 // bug 48379
'incubatorwiki' = '$stdlogo',
'internalwiki' = 
'//upload.wikimedia.org/wikipedia/meta/a/a2/Wikimediainernal-logo135px.png',
-   'legalteamwiki' = '$stdlogo',
+   'legalteamwiki' = 
'//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Rory_sketch_-_sword_and_shield.png/135px-Rory_sketch_-_sword_and_shield.png',
'loginwiki' = 
'//upload.wikimedia.org/wikipedia/commons/e/ed/Wikimedia_logo-scaled-down.png', 
// bug 48236
'mediawikiwiki' = '$stdlogo',
'metawiki' = '$stdlogo',

-- 
To view, visit https://gerrit.wikimedia.org/r/117377
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id8832871a98bd3f2801c89e05122d969733a0a31
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Apache config for legalteamwiki - change (operations/apache-config)

2014-02-28 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/116219

Change subject: Apache config for legalteamwiki
..

Apache config for legalteamwiki

Patch to assist with setup but not yet done on the servers
Mediawiki-config patch at I495e024494d0a978

Bug: 61222
Change-Id: Ia840ba70a097510bd895cc0cdb60ab466023c4d8
---
M wikimedia.conf
1 file changed, 37 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/apache-config 
refs/changes/19/116219/1

diff --git a/wikimedia.conf b/wikimedia.conf
index 2cc33c1..e79ca35 100644
--- a/wikimedia.conf
+++ b/wikimedia.conf
@@ -188,6 +188,43 @@
 /Directory
 /VirtualHost
 
+# legalteamwiki bugzilla:61222
+VirtualHost *
+DocumentRoot /usr/local/apache/common/docroot/legalteam
+ServerName legalteam.wikimedia.org
+
+AllowEncodedSlashes On
+
+RewriteEngine On
+RewriteCond %{HTTP:X-Forwarded-Proto} !https
+RewriteRule ^/(.*)$ https://legalteam.wikimedia.org/$1 [R=301,L]
+
+# Primary wiki redirector:
+Alias /wiki /usr/local/apache/common/docroot/legalteam/w/index.php
+RewriteRule ^/$ /w/index.php
+
+# UseMod compatibility URLs
+RewriteCond %{QUERY_STRING} ([^;]+)
+RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L]
+RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L]
+
+RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301]
+
+# Configurable favicon
+RewriteRule ^/favicon\.ico$ /w/favicon.php [L]
+
+Directory /usr/local/apache/common/docroot/legalteam/w
+IfModule mod_php5.c
+php_admin_flag engine on
+/IfModule
+/Directory
+Directory /usr/local/apache/common/docroot/legalteam/w/extensions
+IfModule mod_php5.c
+php_admin_flag engine off
+/IfModule
+/Directory
+/VirtualHost
+
 VirtualHost *
 ServerName wikimedia.org
 Redirect permanent / http://www.wikimedia.org/

-- 
To view, visit https://gerrit.wikimedia.org/r/116219
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia840ba70a097510bd895cc0cdb60ab466023c4d8
Gerrit-PatchSet: 1
Gerrit-Project: operations/apache-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org
Gerrit-Reviewer: jenkins-bot 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] DNS setup for legalteamwiki - change (operations/dns)

2014-02-28 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/116220

Change subject: DNS setup for legalteamwiki
..

DNS setup for legalteamwiki

Patch to assist with legalteamwiki setup, nothing done on server side
mediawiki-config patch at I495e024494d0a978
apache-config patch at Ia840ba70a097510bd895

Bug: 61222
Change-Id: I3d4ab853ea3dd38a2bb4eb93ec3e0279d19c3308
---
M templates/wikimedia.org
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/dns 
refs/changes/20/116220/1

diff --git a/templates/wikimedia.org b/templates/wikimedia.org
index 8a9afaf..47fe186 100644
--- a/templates/wikimedia.org
+++ b/templates/wikimedia.org
@@ -549,6 +549,7 @@
 it 1H  IN CNAMEwikimedia-lb
 kr 1H  IN CNAMEwikimedia-lb
 langcom1H  IN CNAMEwikimedia-lb
+legalteam  1H  IN CNAMEwikimedia-lb
 meta   1H  IN CNAMEwikimedia-lb
 www.meta   1H  IN CNAMEwikimedia-lb
 mk 1H  IN CNAMEwikimedia-lb

-- 
To view, visit https://gerrit.wikimedia.org/r/116220
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d4ab853ea3dd38a2bb4eb93ec3e0279d19c3308
Gerrit-PatchSet: 1
Gerrit-Project: operations/dns
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add option to pass anchor for basic=true use - change (mediawiki...LandingCheck)

2014-02-03 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/01

Change subject: Add option to pass anchor for basic=true use
..

Add option to pass anchor for basic=true use

Adding the ability to pass an anchor value to landing check
which will be apended (along with # ) to the end of a created url
if and only if we are using the 'basic' landing check option which is
designed for use by non fundraising translated pages.

Initially meant for legal policies

Bug: 60784
Change-Id: I70a01a736cc6ff5071ddbab4607023fc900274ed
---
M SpecialLandingCheck.php
1 file changed, 17 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LandingCheck 
refs/changes/01/01/1

diff --git a/SpecialLandingCheck.php b/SpecialLandingCheck.php
index 2d2be0d..c865fd5 100644
--- a/SpecialLandingCheck.php
+++ b/SpecialLandingCheck.php
@@ -15,9 +15,18 @@
 * If basic is set to true, do a local redirect, ignore priority, and 
don't pass tracking 
 * params. This is for non-fundraising links that just need 
localization.
 *
-* @var boolean
+* @var boolean $basic
 */
protected $basic = false;
+
+   /**
+* If anchor text is passed add that to the end of the created url so 
that it can be used to
+* position the resulting page. This is currently used only for 
non-fundraising links that need
+* localization and therefore is only checked if basic (above) is true.
+*
+* @var string $anchor
+*/
+   protected $anchor = null;

public function __construct() {
// Register special page
@@ -28,6 +37,7 @@
global $wgRequest, $wgPriorityCountries;
 
// If we have a subpage; assume it's a language like an 
internationalized page
+
$language = 'en';
$path = explode( '/', $sub );
if ( Language::isValidCode( $path[count($path) - 1] ) ) {
@@ -38,6 +48,7 @@
$language = $wgRequest-getVal( 'language', $language );
$this-basic = $wgRequest-getBool( 'basic' );
$country = $wgRequest-getVal( 'country' );
+   $this-anchor = $wgRequest-getVal ( 'anchor' );
 
// if the language is false-ish, set to default
if( !$language ) {
@@ -203,7 +214,11 @@
$target = Title::newFromText( $targetText );
if ( $target  $target-isKnown()  
$target-getNamespace() == NS_MAIN ) {
if ( $this-basic ) {
-   $wgOut-redirect( 
$target-getLocalURL() );
+   if ( isset( $this-anchor ) ) {
+   $wgOut-redirect ( 
$target-getLocalURL().'#'.$this-anchor );
+   } else {
+   $wgOut-redirect( 
$target-getLocalURL() );
+   }
} else {
$wgOut-redirect( $target-getLocalURL( 
$tracking ) );
}

-- 
To view, visit https://gerrit.wikimedia.org/r/01
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I70a01a736cc6ff5071ddbab4607023fc900274ed
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LandingCheck
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org
Gerrit-Reviewer: jenkins-bot 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Use RecentChanges::save to add RC rows - change (mediawiki...Flow)

2014-02-03 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60

Change subject: Use RecentChanges::save to add RC rows
..

Use RecentChanges::save to add RC rows

Will send Flow actions to RC feeds and extensions like CheckUser

Bug: 60275
Change-Id: Ie248485ed28538e01e898afc62395ed9a2b8aed3
(cherry picked from commit 9b391165af9fb063713232f09d2785baaa8aa8c9)
---
M includes/Data/RecentChanges.php
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/60/60/1

diff --git a/includes/Data/RecentChanges.php b/includes/Data/RecentChanges.php
index 5c43ee2..78f9a7b 100644
--- a/includes/Data/RecentChanges.php
+++ b/includes/Data/RecentChanges.php
@@ -7,6 +7,7 @@
 use Flow\Model\Workflow;
 use Flow\Repository\TreeRepository;
 use Language;
+use RecentChange;
 
 abstract class RecentChanges implements LifecycleHandler {
 
@@ -51,7 +52,6 @@
 * @param Workflow $workflow
 * @param $timestamp
 * @param array $changes
-* @return bool
 */
protected function insert( $action, $block, $revisionType, $revisionId, 
array $row, Workflow $workflow, $timestamp, array $changes ) {
if ( $timestamp instanceof UUID ) {
@@ -87,10 +87,11 @@
'rc_comment' = '',
'rc_timestamp' = $timestamp,
'rc_cur_time' = $timestamp,
+   'rc_deleted' = 0,
);
 
-   $dbw = wfGetDB( DB_MASTER );
-   return $dbw-insert( 'recentchanges', $attribs, __METHOD__ );
+   $rc = RecentChange::newFromRow( (object)$attribs );
+   $rc-save();  // Insert into db and send to RC feeds
}
 }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/60
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie248485ed28538e01e898afc62395ed9a2b8aed3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: wmf/1.23wmf11
Gerrit-Owner: Jalexander jalexan...@wikimedia.org
Gerrit-Reviewer: Legoktm legoktm.wikipe...@gmail.com
Gerrit-Reviewer: jenkins-bot 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Abort email notifications coming out of RecentChange - change (mediawiki...Flow)

2014-02-03 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/61

Change subject: Abort email notifications coming out of RecentChange
..

Abort email notifications coming out of RecentChange

Cherry picking based on Legoktm's comment on bug

Bug: 60275
Change-Id: I8e3a42666c85920d0b50c8272f6f0db30055fd2b
(cherry picked from commit d5ddad162fa358fbfd6e3fbfbb4ffc65f68d1aca)
---
M Flow.php
M Hooks.php
2 files changed, 17 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/61/61/1

diff --git a/Flow.php b/Flow.php
index 61615a8..4b4d2b4 100755
--- a/Flow.php
+++ b/Flow.php
@@ -178,6 +178,7 @@
 $wgHooks['ContribsPager::reallyDoQuery'][] = 'FlowHooks::onContributionsQuery';
 $wgHooks['ContributionsLineEnding'][] = 'FlowHooks::onContributionsLineEnding';
 $wgHooks['AbuseFilter-computeVariable'][] = 
'FlowHooks::onAbuseFilterComputeVariable';
+$wgHooks['AbortEmailNotification'][] = 'FlowHooks::onAbortEmailNotification';
 
 // Extension initialization
 $wgExtensionFunctions[] = 'FlowHooks::initFlowExtension';
diff --git a/Hooks.php b/Hooks.php
index 791101e..4f1a3aa 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -368,4 +368,20 @@
$result = $methods[$method]( $vars, $parameters );
return false;
}
+
+   /**
+* Abort notifications coming from RecentChange class, Flow has its
+* own notifications through Echo.
+*
+* @param User $editor
+* @param Title $title
+* @return bool false to abort email notification
+*/
+   public static function onAbortEmailNotification( $editor, $title ) {
+   if ( Container::get( 'occupation_controller' 
)-isTalkpageOccupied( $title ) ) {
+   return false;
+   }
+
+   return true;
+   }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/61
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8e3a42666c85920d0b50c8272f6f0db30055fd2b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: wmf/1.23wmf11
Gerrit-Owner: Jalexander jalexan...@wikimedia.org
Gerrit-Reviewer: EBernhardson ebernhard...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add COPYING - change (mediawiki...WikimediaShopLink)

2014-01-15 Thread Jalexander (Code Review)
Jalexander has submitted this change and it was merged.

Change subject: Add COPYING
..


Add COPYING

Change-Id: I8bb0f4926a64cf12864bd2ec01fe6528bff9d40d
---
A COPYING
1 file changed, 339 insertions(+), 0 deletions(-)

Approvals:
  Jalexander: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/COPYING b/COPYING
new file mode 100644
index 000..d159169
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,339 @@
+GNU GENERAL PUBLIC LICENSE
+   Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The Program, below,
+refers to any such program or work, and a work based on the Program
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term modification.)  Each licensee is addressed as you.
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License

[MediaWiki-commits] [Gerrit] Add elwikivoyage logo - change (operations/mediawiki-config)

2013-09-12 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/83989


Change subject: Add elwikivoyage logo
..

Add elwikivoyage logo

Change-Id: I63a3908d447db3b94b72cf747ddeea33534eec15
---
M wmf-config/InitialiseSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/89/83989/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 737edf5..16dec6d 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -914,6 +914,7 @@
// Wikivoyage
'hewikivoyage' = 
'//upload.wikimedia.org/wikipedia/commons/thumb/c/c0/Wikivoyage-Logo-v3-he.png/153px-Wikivoyage-Logo-v3-he.png',
'plwikivoyage' = 
'//upload.wikimedia.org/wikipedia/commons/f/f2/Wikivoyage-Logo-v3-small-pl.png',
+   'elwikivoyage' = 
'//upload.wikimedia.org/wikipedia/commons/f/fa/Wikivoyage-Logo-v3-small-el.png'
 
// Chapter wikis
'arwikimedia' = 
'//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikimedia_Argentina_logo.svg/135px-Wikimedia_Argentina_logo.svg.png',

-- 
To view, visit https://gerrit.wikimedia.org/r/83989
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I63a3908d447db3b94b72cf747ddeea33534eec15
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Change Wikivoyage Logo and favicon - change (operations/mediawiki-config)

2013-09-01 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/82119


Change subject: Change Wikivoyage Logo and favicon
..

Change Wikivoyage Logo and favicon

Changing Wikivoyage logo per vote on meta and request. Adding favicon as well.

bug: 53653
Change-Id: Ie26673d6a843ee3eb1f257335c0a4f17db096101
---
M docroot/bits/favicon/wikivoyage.ico
M wmf-config/InitialiseSettings.php
2 files changed, 1 insertion(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/19/82119/1

diff --git a/docroot/bits/favicon/wikivoyage.ico 
b/docroot/bits/favicon/wikivoyage.ico
index cf9a019..db3f271 100644
--- a/docroot/bits/favicon/wikivoyage.ico
+++ b/docroot/bits/favicon/wikivoyage.ico
Binary files differ
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 6d5867d..01bf29d 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -363,7 +363,7 @@
'wikisource'= 
'//upload.wikimedia.org/wikipedia/sources/b/bc/Wiki.png',
'wikiversity'   = '$stdlogo',
'wiktionary'= 
'//upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Wiktionary-logo.svg/135px-Wiktionary-logo.svg.png',
-   'wikivoyage'= 
'//upload.wikimedia.org/wikipedia/commons/d/da/WikivoyageLogoSmall.png',
+   'wikivoyage'= 
'//upload.wikimedia.org/wikipedia/commons/2/2e/Wikivoyage-Logo-v3-small-en.png',
 //updated bug 53653
 
# Wikis (alphabetical by DB name)
'abwiki'= 
'//upload.wikimedia.org/wikipedia/commons/5/5a/Wikipedia-logo-v2-ab.png', // 
bug 46589
@@ -494,7 +494,6 @@
'elwikinews'= 
'//upload.wikimedia.org/wikipedia/commons/0/0e/WikiNews-Logo-el.png',
'elwikiquote'   = '$stdlogo',
'elwikisource'  = '$stdlogo',
-   'elwikivoyage'  = 
'//upload.wikimedia.org/wikivoyage/el/5/58/Wikivoyage-el.png', // Bug 48763
'elwiktionary'  = '$stdlogo',
'enwiki'= '$stdlogo',
'enwikibooks'   = 
'//upload.wikimedia.org/wikibooks/en/b/bc/Wiki.png',
@@ -508,7 +507,6 @@
'eswiki'= 
'//upload.wikimedia.org/wikipedia/commons/8/8c/Wikipedia-logo-v2-es.png',
'eswikibooks'   = 
'//upload.wikimedia.org/wikipedia/commons/0/05/Wikibooks-logo-es.png',
'eswikinews'= 
'//upload.wikimedia.org/wikipedia/commons/e/ed/Wikinews-logo-es-peq.png',
-   'eswikivoyage'  = 
'//upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Wikivoyage-logo-es.svg/135px-Wikivoyage-logo-es.svg.png',
'eswiktionary'  = 
'//upload.wikimedia.org/wikipedia/commons/thumb/c/c3/WiktionaryEs.svg/135px-WiktionaryEs.svg.png',
'etwiki'= 
'//upload.wikimedia.org/wikipedia/commons/4/41/Wikipedia-logo-v2-et.png',
'etwikibooks'   = 
'//upload.wikimedia.org/wikibooks/et/b/bc/Wiki.png',
@@ -569,7 +567,6 @@
'hewikibooks'   = '$stdlogo',
'hewikiquote'   = '$stdlogo',
'hewikisource'  = '$stdlogo',
-   'hewikivoyage'  = 
'//upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Wikivoyage-logo-he.png/135px-Wikivoyage-logo-he.png',
'hewiktionary'  = '$stdlogo',
'hifwiki'   = '$stdlogo', # 27361
'hiwiki'= '$stdlogo',
@@ -764,7 +761,6 @@
'plwikimedia'   = '$stdlogo',
'plwikiquote'   = '$stdlogo',
'plwikisource'  = '$stdlogo',
-   'plwikivoyage'  = 
'//upload.wikimedia.org/wikipedia/commons/3/39/Wikivoyage-logo-pl.png',
'plwiktionary'  = '$stdlogo',
'pmswiki'   = 
'//upload.wikimedia.org/wikipedia/commons/b/b8/Wikipedia-logo-v2-pms.png',
'pnbwiki'   = 
'//upload.wikimedia.org/wikipedia/commons/9/9d/Wikipedia-logo-v2-pnb.png', // 
bug 48397
@@ -913,7 +909,6 @@
'ukwikibooks'   = '$stdlogo',
'ukwikimedia'   = '$stdlogo',
'ukwikiquote'   = 
'//upload.wikimedia.org/wikipedia/commons/9/95/Wikiquote-logo-uk.png',
-   'ukwikivoyage'  = 
'//upload.wikimedia.org/wikipedia/commons/d/dc/Wikivoyage-logo-uk.png',
'ukwiktionary'  = '$stdlogo',
'urwiki'= 
'//upload.wikimedia.org/wikipedia/commons/3/3d/Wikipedia-logo-v2-ur.png', // 
bug 46589
'urwiktionary'  = 
'//upload.wikimedia.org/wikipedia/commons/thumb/9/95/Wiktionary-logo-ur.png/135px-Wiktionary-logo-ur.png',
 // bug 43240

-- 
To view, visit https://gerrit.wikimedia.org/r/82119
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie26673d6a843ee3eb1f257335c0a4f17db096101
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander 

[MediaWiki-commits] [Gerrit] Replace public key for jamesofur - change (operations/puppet)

2013-08-15 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/79304


Change subject: Replace public key for jamesofur
..

Replace public key for jamesofur

Change-Id: I9cdcdde0c4de3eaace065fb75e6944db04de0d11
---
M manifests/admins.pp
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/04/79304/1

diff --git a/manifests/admins.pp b/manifests/admins.pp
index 20e1816..b6ee56a 100644
--- a/manifests/admins.pp
+++ b/manifests/admins.pp
@@ -433,7 +433,7 @@
 ensure  = present,
 user= $username,
 type= ssh-rsa,
-key = 
B3NzaC1yc2EBJQAAAIBt7ePL3ps6MVHEAMGdNHVd/lO2L3Yc0szq/M5gSino+bNmn7yOmNMk7QxVHHwsPOBPbEuBhKEUj5LC/K5oxMT4jOW5lH/PTGntsHNK+42nLsrbkTV20MVZerf5JUw7y/IL12RYzrzk6/uvA5LqBLGucha2yi2llcrWCzbvlnxTUw==;
+key = 
B3NzaC1yc2EDAQABAAABAQC+bZ1KKVo3jL93NYN/9++YVvbJobz5onNLMhQz37Ec8UZnb+m22R16JN0Fl++HfHy19RkI2H9Ex1vg5mqQHD+8BGpbRfl5VEJSmXB1zcbr+yJgk/b3G51EDCulJuuqQpcieI2Z4D8ds4q8NVl3cI3kH3hbjrIT4bojWz+GB0WzG2aNdkgwMUZynvLjQb+VrxcTd6fnWQsjEIVdtXXsp1croF3+lDPwrC3DFq0svPsDLu8jaFPM45VQ5VdxVZNYBGBAy+IzMeLCnLph/lBW0vS9jhAR+r0QYzzNHOiEnOISnoiw8ECtwOTAQjTaGdkv3enFme9/KXbdk6YWByapygrL;
 }
 }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/79304
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9cdcdde0c4de3eaace065fb75e6944db04de0d11
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] enable translate extension on collabwiki - change (operations/mediawiki-config)

2013-07-30 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/76746


Change subject: enable translate extension on collabwiki
..

enable translate extension on collabwiki

Change-Id: I28ccdd8722e50359bc7594ee336203a45687e249
---
M wmf-config/InitialiseSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/46/76746/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 1feb644..ad8d67d 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -11790,6 +11790,7 @@
'wikimania2012wiki' = true, // bug 34120
'wikimania2013wiki' = true, // bug 36477
'wikimania2014wiki' = true,
+   'collabwiki' = true,
 ),
 'wmgTranslateWorkflowStates' = array(
'default' = false,

-- 
To view, visit https://gerrit.wikimedia.org/r/76746
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I28ccdd8722e50359bc7594ee336203a45687e249
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Make FlaggedRev rights available to global groups - change (operations/mediawiki-config)

2013-07-22 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/75070


Change subject: Make FlaggedRev rights available to global groups
..

Make FlaggedRev rights available to global groups

Adding a couple flaggedrev rights to wgAvailableRights so that they are 
available for the global group options.

Change-Id: I6b68b0395eb787a0812baca236f2450b55be52f4
---
M wmf-config/CommonSettings.php
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/70/75070/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 782bd5d..0afde09 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -596,6 +596,12 @@
 if ( $wmgUseFlaggedRevs ) {
include( $wmfConfigDir/flaggedrevs.php );
 }
+#Adding Flaggedrevs rights so that they are available for globalgroups/staff 
rights - JRA 2013-07-22
+$wgAvailableRights[] = 'stablesettings';
+$wgAvailableRights[] = 'review';
+$wgAvailableRights[] = 'unreviewedpages';
+$wgAvailableRights[] = 'movestable';
+$wgAvailableRights[] = 'validate';
 
 $wgUseAjax = true;
 $wgCategoryTreeDynamicTag = true;

-- 
To view, visit https://gerrit.wikimedia.org/r/75070
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b68b0395eb787a0812baca236f2450b55be52f4
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] PlanetWikimedia changes fr and en - change (operations/puppet)

2013-07-13 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/73564


Change subject: PlanetWikimedia changes fr and en
..

PlanetWikimedia changes fr and en

Long overdue changes request on [[m:Planet_Wikimedia]] 1 removal 2 additions

Change-Id: I7c543509a9fe85a0fe429e210fcc6d1023dcc30b
---
M templates/planet/en_config.erb
M templates/planet/fr_config.erb
2 files changed, 8 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/64/73564/1

diff --git a/templates/planet/en_config.erb b/templates/planet/en_config.erb
index a98df1c..1b0f0ce 100644
--- a/templates/planet/en_config.erb
+++ b/templates/planet/en_config.erb
@@ -541,4 +541,11 @@
 name=Not Confusing (Max Klein)
 
 [http://twkozlowski.net/feed/]
-name=Tomasz W. Kozlowski
\ No newline at end of file
+name=Tomasz W. Kozlowski
+
+[http://moriel.smarterthanthat.com/tag/mediawiki/feed/]
+name=Moriel Schottlender (User:Mooeypoo)
+
+[http://www.mollywhite.net/blog/?cat=wikimediafeed=rss2]
+name=Molly White (User:GorillaWarfare)
+
diff --git a/templates/planet/fr_config.erb b/templates/planet/fr_config.erb
index 3cde704..dba1153 100644
--- a/templates/planet/fr_config.erb
+++ b/templates/planet/fr_config.erb
@@ -185,9 +185,6 @@
 [http://juraastro.wordpress.com/category/wikimedia/feed/]
 name= User:Juraastro
 
-[http://ainsi-va-wikipedia.blogspot.com/feeds/posts/default?alt=rss]
-name=Ainsi va Wikipédia
- 
 [http://www.dereckson.be/blog/category/wikimedia-fr/feed/]
 name=Dereckson
 

-- 
To view, visit https://gerrit.wikimedia.org/r/73564
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c543509a9fe85a0fe429e210fcc6d1023dcc30b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] wmf favicon for votewiki - change (operations/mediawiki-config)

2013-06-06 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/67327


Change subject: wmf favicon for votewiki
..

wmf favicon for votewiki

lower priority but helpful/cleaner to have this

Change-Id: I58160ab22e6e8657ae59ddd47ddec8491c3fa979
---
M wmf-config/InitialiseSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/27/67327/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 4c54621..34e28dd 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -9484,6 +9484,7 @@
'testwiki'  = 
'//bits.wikimedia.org/favicon/black-globe.ico',
'transitionteamwiki'= 
'//bits.wikimedia.org/favicon/wmf.ico',
'usabilitywiki' = 
'//bits.wikimedia.org/favicon/usability.ico',
+   'votewiki'  = 
'//bits.wikimedia.org/favicon/wmf.ico',
'wikidata'  = 
'//bits.wikimedia.org/favicon/wikidata.ico',
'wikimania' = 
'//bits.wikimedia.org/favicon/wikimania.ico',
'wikimaniateamwiki' = 
'//bits.wikimedia.org/favicon/wikimania.ico',

-- 
To view, visit https://gerrit.wikimedia.org/r/67327
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I58160ab22e6e8657ae59ddd47ddec8491c3fa979
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Enable SecurePoll globally and VoteWiki logo - change (operations/mediawiki-config)

2013-06-05 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/67227


Change subject: Enable SecurePoll globally and VoteWiki logo
..

Enable SecurePoll globally and VoteWiki logo

Enable SecurePoll globally for board elections  and WMF Logo for VoteWiki

Change-Id: Ie36f2b8334cbaf7f8487032c059702682545a5b3
---
M wmf-config/InitialiseSettings.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/27/67227/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 3c385b7..3346ab9 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -905,6 +905,7 @@
'viwikisource'  = '$stdlogo',
'viwiktionary'  = 
'//upload.wikimedia.org/wikipedia/commons/thumb/7/74/Wiktionary-logo-vi.svg/135px-Wiktionary-logo-vi.svg.png',
 // bug 43240
'vlswiki'   = 
'//upload.wikimedia.org/wikipedia/commons/2/25/Wikipedia-logo-v2-vls.png', // 
bug 40285
+   'votewiki'  = 
'//upload.wikimedia.org/wikipedia/foundation/9/9a/Wikimediafoundation-logo.png',
'vowiki'= '/images/wiki-$lang.png',
'vowiktionary'  = '$stdlogo',
'wawiki'= 
'//upload.wikimedia.org/wikipedia/commons/e/e6/Wikipedia-logo-v2-wa.png', // 
bug 40285
@@ -12525,7 +12526,7 @@
 ),
 
 'wmgUseSecurePoll' = array(
-   'default' = false,
+   'default' = true, // can be left on, doesn't hurt and needed for board 
elections
'enwiki' = true,
'metawiki' = true,
'testwiki' = true,

-- 
To view, visit https://gerrit.wikimedia.org/r/67227
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie36f2b8334cbaf7f8487032c059702682545a5b3
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add bot flag to edit query - change (mediawiki...TranslationNotifications)

2013-06-02 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/66374


Change subject: Add bot flag to edit query
..

Add bot flag to edit query

Adding bot=1 to edits by Translation Notification Bot so that edits will be 
hidden from recent changes if the bot flag is set on wiki.

bug: 41637
Change-Id: I27e988d8a71b2f9d769d7d987a95705c20dd6414
---
M TranslationNotificationJob.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TranslationNotifications 
refs/changes/74/66374/1

diff --git a/TranslationNotificationJob.php b/TranslationNotificationJob.php
index 177b18c..dcecc46 100644
--- a/TranslationNotificationJob.php
+++ b/TranslationNotificationJob.php
@@ -179,6 +179,7 @@
$editUrl = wfAppendQuery( $otherWikiBaseUrl, array(
'action' = 'edit',
'format' = 'json',
+   'bot' = '1',
) );
$editRequest = MWHttpRequest::factory(
$editUrl,

-- 
To view, visit https://gerrit.wikimedia.org/r/66374
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I27e988d8a71b2f9d769d7d987a95705c20dd6414
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TranslationNotifications
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Replace wmf favicon for blog - change (wikimedia...WP-Victor)

2013-03-19 Thread Jalexander (Code Review)
Jalexander has submitted this change and it was merged.

Change subject: Replace wmf favicon for blog
..


Replace wmf favicon for blog

Bug: 46256
Change-Id: I898a1a475909c93c8bab401ac611814b24b6a631
---
M favicon.ico
1 file changed, 0 insertions(+), 0 deletions(-)

Approvals:
  Demon: Looks good to me, but someone else must approve
  Jalexander: Verified; Looks good to me, approved



diff --git a/favicon.ico b/favicon.ico
index 81b8096..bde61ef 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ

-- 
To view, visit https://gerrit.wikimedia.org/r/54488
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I898a1a475909c93c8bab401ac611814b24b6a631
Gerrit-PatchSet: 2
Gerrit-Project: wikimedia/communications/WP-Victor
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org
Gerrit-Reviewer: Demon ch...@wikimedia.org
Gerrit-Reviewer: Guillom gpaum...@wikimedia.org
Gerrit-Reviewer: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] (bug: 46256 ) replace wmf favicon for blog - change (wikimedia...WP-Victor)

2013-03-18 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/54488


Change subject: (bug: 46256 ) replace wmf favicon for blog
..

(bug: 46256 ) replace wmf favicon for blog

Change-Id: I898a1a475909c93c8bab401ac611814b24b6a631
---
M favicon.ico
1 file changed, 0 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/communications/WP-Victor 
refs/changes/88/54488/1

diff --git a/favicon.ico b/favicon.ico
index 81b8096..bde61ef 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ

-- 
To view, visit https://gerrit.wikimedia.org/r/54488
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I898a1a475909c93c8bab401ac611814b24b6a631
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/communications/WP-Victor
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] (Bug 45270) Add messages for new user group - change (mediawiki...WikimediaMessages)

2013-02-22 Thread Jalexander (Code Review)
Jalexander has submitted this change and it was merged.

Change subject: (Bug 45270) Add messages for new user group
..


(Bug 45270) Add messages for new user group

Introduced with https://gerrit.wikimedia.org/r/#/c/50196/

Change-Id: If1b609626e929839e8f32fc3ceac173bac7cfa1f
---
M WikimediaMessages.i18n.php
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Jalexander: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/WikimediaMessages.i18n.php b/WikimediaMessages.i18n.php
index 3b5284e..8f15bf8 100644
--- a/WikimediaMessages.i18n.php
+++ b/WikimediaMessages.i18n.php
@@ -199,6 +199,11 @@
'group-translationadmin-member' = '{{GENDER:$1|translation 
administrator}}',
'grouppage-translationadmin'= '{{ns:project}}:Translation 
administrators', # only translate this message to other languages if you have 
to change it
 
+   # Bug 45270 due to https://gerrit.wikimedia.org/r/#/c/50196/
+   'group-centralnoticeadmin'= 'Central notice administrators',
+   'group-centralnoticeadmin-member' = '{{GENDER:$1|Central notice 
administrator}}',
+   'grouppage-centralnoticeadmin'= '{{ns:project}}:Central notice 
administrators',
+
# mediawiki.org specific user group
 
'group-coder'= 'Coders',

-- 
To view, visit https://gerrit.wikimedia.org/r/50356
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If1b609626e929839e8f32fc3ceac173bac7cfa1f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMessages
Gerrit-Branch: master
Gerrit-Owner: Raimond Spekking raimond.spekk...@gmail.com
Gerrit-Reviewer: Jalexander jalexan...@wikimedia.org
Gerrit-Reviewer: Siebrand siebr...@wikimedia.org
Gerrit-Reviewer: jenkins-bot

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Adding CentralNotice user right to meta and testwiki - change (operations/mediawiki-config)

2013-02-21 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/50196


Change subject: Adding CentralNotice user right to meta and testwiki
..

Adding CentralNotice user right to meta and testwiki

To allow central notice editing rights to be given to staff and community 
members without giving them the full local sysop package.

Change-Id: I4f96e9422c61ea56a309e5d8042ac4c08e42813c
---
M wmf-config/InitialiseSettings.php
1 file changed, 6 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/96/50196/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index f71f9c7..4155163 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -7322,6 +7322,7 @@
'steward' = array( 'userrights-interwiki' = true ), // new 
steward stuff, yay 2007-12-27
'flood' = array( 'bot' = true ),
'autopatrolled' = array( 'autopatrol' = true ),
+   'CentralNotice' = array( 'centralnotice-admin' = true, 
'editinterface' = true ), //adding to allow CN access without local sysop JRA 
2013-02-21
),
'mkwiki' = array(
'autopatrolled' = array( 'autopatrol' = true ),
@@ -7582,6 +7583,7 @@
),
'researcher' = array( 'browsearchive' = true, 
'deletedhistory' = true, 'apihighlimits' = true ),
'rollbacker' = array( 'rollback' = true ),
+   'CentralNotice' = array( 'centralnotice-admin' = true, 
'editinterface' = true ), //adding to allow CN access without local sysop JRA 
2013-02-21
),
'test2wiki' = array(
'user' = array(
@@ -7752,7 +7754,7 @@
'sysop' = array( 'ipblock-exempt' ),
),
'+testwiki' = array(
-   'bureaucrat' = array( 'researcher' ),
+   'bureaucrat' = array( 'researcher', 'CentralNotice' ),
'sysop' = array( 'filemover', 'rollbacker', 'accountcreator', 
'confirmed' ),
# 'user' = array( 'editor', 'reviewer' ),
),
@@ -7947,7 +7949,7 @@
'coder' = array( 'coder' ),
),
'+metawiki' = array(
-   'bureaucrat' = array( 'ipblock-exempt', ),
+   'bureaucrat' = array( 'ipblock-exempt', 'CentralNotice' ),
'checkuser'  = array( 'ipblock-exempt' ),
'sysop'  = array( 'autopatrolled' ),
),
@@ -8126,7 +8128,7 @@
'sysop' = array( 'ipblock-exempt' ),
),
'+testwiki' = array(
-   'bureaucrat' = array( 'sysop', 'researcher', 
'translationadmin' ),
+   'bureaucrat' = array( 'sysop', 'researcher', 
'translationadmin', 'CentralNotice' ),
'sysop' = array( 'filemover', 'rollbacker', 'accountcreator', 
'confirmed' ),
# 'user' = array( 'editor', 'reviewer' ),
),
@@ -8340,7 +8342,7 @@
'bureaucrat' = array( 'transwiki', 'import', 'coder', 
'svnadmins' ),
),
'+metawiki' = array(
-   'bureaucrat' = array( 'sysop', 'bureaucrat', 'ipblock-exempt', 
'flood', 'translationadmin' ), // 
https://bugzilla.wikimedia.org/show_bug.cgi?id=37198
+   'bureaucrat' = array( 'sysop', 'bureaucrat', 'ipblock-exempt', 
'flood', 'translationadmin', 'CentralNotice' ), // 
https://bugzilla.wikimedia.org/show_bug.cgi?id=37198
'checkuser'  = array( 'ipblock-exempt' ),
'sysop'  = array( 'autopatrolled' ),
),

-- 
To view, visit https://gerrit.wikimedia.org/r/50196
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f96e9422c61ea56a309e5d8042ac4c08e42813c
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add JP to Wikimedia Shop link config for sidebar - change (operations/mediawiki-config)

2013-02-07 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

Change subject: Add JP to Wikimedia Shop link config for sidebar
..

Add JP to Wikimedia Shop link config for sidebar

Change-Id: I960d99f4b63b2c17622b7491737078b1cc64339e
---
M wmf-config/CommonSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/38/48038/1
--
To view, visit https://gerrit.wikimedia.org/r/48038
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I960d99f4b63b2c17622b7491737078b1cc64339e
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] adding requested blogs to planet config, 1 de, 1 it, 1 cs, 4... - change (operations/puppet[production])

2013-01-24 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

Change subject: adding requested blogs to planet config, 1 de, 1 it, 1 cs, 4 
fr, 4 en
..

adding requested blogs to planet config, 1 de, 1 it, 1 cs, 4 fr, 4 en

Change-Id: I1aa6fbf489f086e0870a411e1c14e0766017d062
---
M templates/planet/cs_config.erb
M templates/planet/de_config.erb
M templates/planet/en_config.erb
M templates/planet/fr_config.erb
M templates/planet/it_config.erb
5 files changed, 33 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/76/45676/1
--
To view, visit https://gerrit.wikimedia.org/r/45676
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1aa6fbf489f086e0870a411e1c14e0766017d062
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Type hinting and use strict - change (mediawiki...WikimediaShopLink[master])

2012-09-28 Thread Jalexander (Code Review)
Jalexander has submitted this change and it was merged.

Change subject: Type hinting and use strict
..


Type hinting and use strict

Change-Id: Ibbc8fb74767cc4fb7f26d3cd66afd9a9ee133809
---
M WikimediaShopLink.hooks.php
M ext.wikimediaShopLink.core.js
2 files changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Jalexander: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/25614
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibbc8fb74767cc4fb7f26d3cd66afd9a9ee133809
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaShopLink
Gerrit-Branch: master
Gerrit-Owner: Siebrand siebr...@wikimedia.org
Gerrit-Reviewer: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Don't use Translate extension by default, and only load stuf... - change (mediawiki...CentralNotice[master])

2012-09-14 Thread Jalexander (Code Review)
Jalexander has submitted this change and it was merged.

Change subject: Don't use Translate extension by default, and only load stuff 
if needed
..


Don't use Translate extension by default, and only load stuff if needed

Setting $wgNoticeUseTranslateExtension to false by default so that
CentralNotice works out of the box, also moving some class and hook
loading into the section that is for stuff that only loads on the
admin interface wiki (meta). The Translate extension stuff isn't
needed on other wikis.

Change-Id: Iaef583d9f2ae9171846124e176862c8ebcbdb71c
---
M CentralNotice.php
1 file changed, 6 insertions(+), 5 deletions(-)

Approvals:
  Jalexander: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/23845
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iaef583d9f2ae9171846124e176862c8ebcbdb71c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Kaldari rkald...@wikimedia.org
Gerrit-Reviewer: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Fixing 401, 403 and 404 errors from update Some blogs remove... - change (operations/puppet[production])

2012-08-23 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

Change subject: Fixing 401, 403 and 404 errors from update Some blogs removed 
some updated
..

Fixing 401, 403 and 404 errors from update Some blogs removed some updated

Change-Id: Ie58d6bcfbb2597e6ef0a4a7d02ee5caead1920f7
---
M templates/planet/en_config.erb
1 file changed, 30 insertions(+), 21 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/83/21283/1
--
To view, visit https://gerrit.wikimedia.org/r/21283
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie58d6bcfbb2597e6ef0a4a7d02ee5caead1920f7
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Fix remaining en planet errors including 500s and no data. - change (operations/puppet[production])

2012-08-23 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

Change subject: Fix remaining en planet errors including 500s and no data.
..

Fix remaining en planet errors including 500s and no data.

Change-Id: I2e180c622919eebab5cfa76365ceedba25262f85
---
M templates/planet/en_config.erb
1 file changed, 47 insertions(+), 32 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/93/21293/1
--
To view, visit https://gerrit.wikimedia.org/r/21293
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e180c622919eebab5cfa76365ceedba25262f85
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Sync git config files with live SVN files (en and fr additio... - change (operations/puppet[production])

2012-08-09 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

Change subject: Sync git config files with live SVN files (en and fr 
additions/adjustments and ru deadlink removal )
..

Sync git config files with live SVN files (en and fr additions/adjustments and 
ru deadlink removal )

Change-Id: I6b4733ff92f5e6ea0eedfe1b23b1c8bfc3b2747b
---
M templates/planet/en_config.erb
M templates/planet/fr_config.erb
M templates/planet/ru_config.erb
3 files changed, 24 insertions(+), 49 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/40/18440/1
--
To view, visit https://gerrit.wikimedia.org/r/18440
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b4733ff92f5e6ea0eedfe1b23b1c8bfc3b2747b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Add Canada to Shop Link targets - change (operations/mediawiki-config[master])

2012-07-17 Thread Jalexander (Code Review)
Jalexander has uploaded a new change for review.

Change subject: Add Canada to Shop Link targets
..

Add Canada to Shop Link targets

Change-Id: I0b935a0a29ed7cefbcce97e706b228ece3254616
---
M wmf-config/CommonSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/19/15519/1
--
To view, visit https://gerrit.wikimedia.org/r/15519
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0b935a0a29ed7cefbcce97e706b228ece3254616
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jalexander jalexan...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Removing support for utm_key from CentralNotice. - change (mediawiki...CentralNotice[master])

2012-07-10 Thread Jalexander (Code Review)
Jalexander has submitted this change and it was merged.

Change subject: Removing support for utm_key from CentralNotice.
..


Removing support for utm_key from CentralNotice.

It was known, but as written it breaks caching on the landing pages.  Testing
proved that it was not sufficiently helpful to our analytics to justify the
loss of caching.

Change-Id: Ib5e4b57446e7f0168f321f8854b1892355594032
---
M special/SpecialBannerController.php
1 file changed, 0 insertions(+), 14 deletions(-)

Approvals:
  Jalexander: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/14088
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5e4b57446e7f0168f321f8854b1892355594032
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Pgehres pgeh...@wikimedia.org
Gerrit-Reviewer: Jalexander jalexan...@wikimedia.org
Gerrit-Reviewer: Pgehres pgeh...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits