[MediaWiki-commits] [Gerrit] Add documentation to clarify difference between save and upl... - change (mediawiki/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add documentation to clarify difference between save and upload 
message
..


Add documentation to clarify difference between save and upload message

Finnish translations use the same word for save and upload.

https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Upload-dialog-button-upload/fi

Change-Id: I3caf7b550b629c5c98bca0e0efd13aa864ce10e0
---
M languages/i18n/qqq.json
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  Nemo bis: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index dc2bd50..78f2c10 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -1598,8 +1598,8 @@
"upload-dialog-title": "Title of the upload dialog 
box\n{{Identical|Upload file}}",
"upload-dialog-button-cancel": "Button to cancel the 
dialog\n{{Identical|Cancel}}",
"upload-dialog-button-done": "Button to close the dialog once upload is 
complete\n{{Identical|Done}}",
-   "upload-dialog-button-save": "Button to save the 
file\n{{Identical|Save}}",
-   "upload-dialog-button-upload": "Button to initiate 
upload\n{{Identical|Upload}}",
+   "upload-dialog-button-save": "Button to save the file after upload 
finishes and metadata is filled out, part 2 of a multi-step upload 
form\n{{Identical|Save}}",
+   "upload-dialog-button-upload": "Button to initiate upload, part 1 of a 
multi-step upload form\n{{Identical|Upload}}",
"upload-form-label-select-file": "Label for the select file 
widget\n{{Identical|Select file}}",
"upload-form-label-infoform-title": "Title for the information 
form\n{{Identical|Detail}}",
"upload-form-label-infoform-name": "Label for the file name 
input\n{{Identical|Name}}",

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3caf7b550b629c5c98bca0e0efd13aa864ce10e0
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: MtDu 
Gerrit-Reviewer: Bartosz Dziewoński 
Gerrit-Reviewer: Nemo bis 
Gerrit-Reviewer: Siebrand 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Fixed preview caching polluting parser cache - change (mediawiki...Graph)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Fixed preview caching polluting parser cache
..


Fixed preview caching polluting parser cache

Bug: T119779
Change-Id: I00b45ed7c06f66241b4831613a9ac96776de63d7
---
M includes/Graph.body.php
1 file changed, 8 insertions(+), 4 deletions(-)

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



diff --git a/includes/Graph.body.php b/includes/Graph.body.php
index 051ca58..6cf80c6 100644
--- a/includes/Graph.body.php
+++ b/includes/Graph.body.php
@@ -40,8 +40,7 @@
}
 
public static function onParserAfterParse( Parser $parser ) {
-   self::finalizeParserOutput( $parser->getOutput(), 
$parser->getTitle(),
-   $parser->getOptions()->getIsPreview() );
+   self::finalizeParserOutput( $parser, $parser->getTitle(), 
$parser->getOutput() );
return true;
}
 
@@ -61,7 +60,7 @@
$parser->getOutput(), 
$parser->getOptions()->getIsPreview(), $args );
}
 
-   public static function finalizeParserOutput( ParserOutput $output, 
$title, $isPreview ) {
+   public static function finalizeParserOutput( Parser $parser, $title, 
ParserOutput $output ) {
if ( $output->getExtensionData( 'graph_specs_broken' ) ) {
$output->addTrackingCategory( 'graph-broken-category', 
$title );
}
@@ -86,6 +85,11 @@
 
$liveSpecs = $output->getExtensionData( 
'graph_live_specs' );
$interact = $output->getExtensionData( 'graph_interact' 
);
+
+   if ( $parser->getOptions()->getIsPreview() ) {
+   // Preview generates HTML that is different 
from normal
+   $parser->disableCache();
+   }
 
if ( $liveSpecs || $interact ) {
// TODO: these 3 js vars should be per domain 
if 'ext.graph' is added, not per page
@@ -266,6 +270,6 @@
$output->setText( $html );
 
// Since we invoke parser manually, the ParserAfterParse never 
gets called, do it manually
-   Singleton::finalizeParserOutput( $output, $title, 
$options->getIsPreview() );
+   Singleton::finalizeParserOutput( $parser, $title, $output );
}
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I00b45ed7c06f66241b4831613a9ac96776de63d7
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: master
Gerrit-Owner: Yurik 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Don't hardcode $wgStatsdMetricPrefix - change (mediawiki...ExtensionDistributor)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Don't hardcode $wgStatsdMetricPrefix
..


Don't hardcode $wgStatsdMetricPrefix

Change-Id: Ib5ec616f695a24afe267e3fe15df71cbd218c8f8
---
M includes/stats/ExtDistGraphiteStats.php
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/includes/stats/ExtDistGraphiteStats.php 
b/includes/stats/ExtDistGraphiteStats.php
index e37418a..820ce9f 100644
--- a/includes/stats/ExtDistGraphiteStats.php
+++ b/includes/stats/ExtDistGraphiteStats.php
@@ -34,7 +34,7 @@
 * @returns array|bool array of extensions in order of popularity or 
false on failure
 */
public function getPopularList( $type ) {
-   global $wgExtDistGraphiteRenderApi, $wgServerName;
+   global $wgExtDistGraphiteRenderApi, $wgServerName, 
$wgStatsdMetricPrefix;
if ( !$wgExtDistGraphiteRenderApi ) {
return false;
}
@@ -48,7 +48,7 @@
return $cachedValue;
}
 
-   $metric = "MediaWiki.extdist.$type.*.*.sum";
+   $metric = "$wgStatsdMetricPrefix.extdist.$type.*.*.sum";
$requestParams = array(
'target' => 'sortByMaxima(groupByNode(summarize(' . 
$metric . ',"4w","sum",true),3,"sum"))',
'format' => 'json',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5ec616f695a24afe267e3fe15df71cbd218c8f8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ExtensionDistributor
Gerrit-Branch: master
Gerrit-Owner: Legoktm 
Gerrit-Reviewer: Addshore 
Gerrit-Reviewer: Alex Monk 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Fixed preview caching polluting parser cache - change (mediawiki...Graph)

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

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

Change subject: Fixed preview caching polluting parser cache
..

Fixed preview caching polluting parser cache

Bug: T119779
Change-Id: I00b45ed7c06f66241b4831613a9ac96776de63d7
---
M includes/Graph.body.php
1 file changed, 8 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Graph 
refs/changes/39/263039/1

diff --git a/includes/Graph.body.php b/includes/Graph.body.php
index 051ca58..ed0e1aa 100644
--- a/includes/Graph.body.php
+++ b/includes/Graph.body.php
@@ -41,7 +41,7 @@
 
public static function onParserAfterParse( Parser $parser ) {
self::finalizeParserOutput( $parser->getOutput(), 
$parser->getTitle(),
-   $parser->getOptions()->getIsPreview() );
+   $parser->getOptions() );
return true;
}
 
@@ -61,7 +61,7 @@
$parser->getOutput(), 
$parser->getOptions()->getIsPreview(), $args );
}
 
-   public static function finalizeParserOutput( ParserOutput $output, 
$title, $isPreview ) {
+   public static function finalizeParserOutput( ParserOutput $output, 
$title, ParserOptions $options ) {
if ( $output->getExtensionData( 'graph_specs_broken' ) ) {
$output->addTrackingCategory( 'graph-broken-category', 
$title );
}
@@ -86,6 +86,11 @@
 
$liveSpecs = $output->getExtensionData( 
'graph_live_specs' );
$interact = $output->getExtensionData( 'graph_interact' 
);
+
+   if ( $options->getIsPreview() ) {
+   // Prevent parser cache pollution by varying on 
"isPreview"
+   $options->addExtraKey( 'graph-preview' );
+   }
 
if ( $liveSpecs || $interact ) {
// TODO: these 3 js vars should be per domain 
if 'ext.graph' is added, not per page
@@ -266,6 +271,6 @@
$output->setText( $html );
 
// Since we invoke parser manually, the ParserAfterParse never 
gets called, do it manually
-   Singleton::finalizeParserOutput( $output, $title, 
$options->getIsPreview() );
+   Singleton::finalizeParserOutput( $output, $title, $options );
}
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I00b45ed7c06f66241b4831613a9ac96776de63d7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: master
Gerrit-Owner: Yurik 

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


[MediaWiki-commits] [Gerrit] site.py: Support titles parameter in watch action - change (pywikibot/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: site.py: Support titles parameter in watch action
..


site.py: Support titles parameter in watch action

Deprecate 'watchpage' method and add 'watch' as replacement.

In the 'watch' method:
- Handle multiple pages.
- Use 'titles' instead of 'title' for mw 1.23+ API calls.
- Iterate over all pages for mw versions < 1.23.

Use the 'watch' method in BasePage().watch.

In the new implementation, an exception is raised if an unexpected
API response is received (instead of just showing a UI error as
'watchpage' does).

Changing the UI error to an exception could not be implemented in
the old 'watchpage' method without introducing a, although slight,
breaking change. See John Vandenberg's comment at T103736#1917344.

Other than that, 's.watch(pages)' feels more intuitive than
's.watchpage(pages)'.

Bug: T103736
Change-Id: I75621972f23509a7e6c843e69abad52025546526
---
M pywikibot/page.py
M pywikibot/site.py
2 files changed, 45 insertions(+), 3 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/page.py b/pywikibot/page.py
index 34f30b6..811bc46 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -1240,7 +1240,7 @@
 
 @return: bool; True if successful, False otherwise.
 """
-return self.site.watchpage(self, unwatch)
+return self.site.watch(self, unwatch)
 
 def purge(self, **kwargs):
 """Purge the server's cache for this page.
diff --git a/pywikibot/site.py b/pywikibot/site.py
index a7c0bd4..8cd2aa8 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -5387,16 +5387,58 @@
 return data
 
 @must_be(group='user')
+def watch(self, pages, unwatch=False):
+"""Add or remove pages from watchlist.
+
+@param pages: A single page or a sequence of pages.
+@type pages: A page object, a page-title string, or sequence of them.
+Also accepts a single pipe-separated string like 'title1|title2'.
+@param unwatch: If True, remove pages from watchlist;
+if False add them (default).
+@return: True if API returned expected response; False otherwise
+@rtype: bool
+
+"""
+parameters = {'action': 'watch',
+  'token': self.tokens['watch'],
+  'unwatch': unwatch}
+unwatch = 'unwatched' if unwatch else 'watched'
+if MediaWikiVersion(self.version()) >= MediaWikiVersion('1.23'):
+parameters['titles'] = pages
+req = self._simple_request(**parameters)
+results = req.submit()
+return all(unwatch in r for r in results['watch'])
+
+# MW version < 1.23
+if isinstance(pages, str):
+if '|' in pages:
+pages = pages.split('|')
+else:
+pages = (pages,)
+
+for page in pages:
+parameters['title'] = page
+req = self._simple_request(**parameters)
+result = req.submit()
+if unwatch not in result['watch']:
+return False
+return True
+
+@must_be(group='user')
+@deprecated('Site().watch')
 def watchpage(self, page, unwatch=False):
 """Add or remove page from watchlist.
 
+DEPRECATED: Use Site().watch() instead.
+
+@param page: A single page.
+@type page: A page object, a page-title string.
 @param unwatch: If True, remove page from watchlist; if False 
(default),
 add it.
 @return: True if API returned expected response; False otherwise
+@rtype: bool
 
 """
-# TODO: Separated parameters to allow easy conversion to 'watchpages'
-# as the API now allows 'titles'.
 parameters = {'action': 'watch',
   'title': page,
   'token': self.tokens['watch'],

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I75621972f23509a7e6c843e69abad52025546526
Gerrit-PatchSet: 23
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba 
Gerrit-Reviewer: Dalba 
Gerrit-Reviewer: John Vandenberg 
Gerrit-Reviewer: Ladsgroup 
Gerrit-Reviewer: Mpaa 
Gerrit-Reviewer: Xqt 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Don't hardcode $wgStatsdMetricPrefix - change (mediawiki...ExtensionDistributor)

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

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

Change subject: Don't hardcode $wgStatsdMetricPrefix
..

Don't hardcode $wgStatsdMetricPrefix

Change-Id: Ib5ec616f695a24afe267e3fe15df71cbd218c8f8
---
M includes/stats/ExtDistGraphiteStats.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ExtensionDistributor 
refs/changes/38/263038/1

diff --git a/includes/stats/ExtDistGraphiteStats.php 
b/includes/stats/ExtDistGraphiteStats.php
index e37418a..820ce9f 100644
--- a/includes/stats/ExtDistGraphiteStats.php
+++ b/includes/stats/ExtDistGraphiteStats.php
@@ -34,7 +34,7 @@
 * @returns array|bool array of extensions in order of popularity or 
false on failure
 */
public function getPopularList( $type ) {
-   global $wgExtDistGraphiteRenderApi, $wgServerName;
+   global $wgExtDistGraphiteRenderApi, $wgServerName, 
$wgStatsdMetricPrefix;
if ( !$wgExtDistGraphiteRenderApi ) {
return false;
}
@@ -48,7 +48,7 @@
return $cachedValue;
}
 
-   $metric = "MediaWiki.extdist.$type.*.*.sum";
+   $metric = "$wgStatsdMetricPrefix.extdist.$type.*.*.sum";
$requestParams = array(
'target' => 'sortByMaxima(groupByNode(summarize(' . 
$metric . ',"4w","sum",true),3,"sum"))',
'format' => 'json',

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5ec616f695a24afe267e3fe15df71cbd218c8f8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ExtensionDistributor
Gerrit-Branch: master
Gerrit-Owner: Legoktm 

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


[MediaWiki-commits] [Gerrit] renderer: Use NavigationPopups settings where available - change (mediawiki...Popups)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: renderer: Use NavigationPopups settings where available
..


renderer: Use NavigationPopups settings where available

Change-Id: I47e11d07561ebf710d39042c2a3bc4b213a821da
---
M resources/ext.popups.renderer.js
1 file changed, 16 insertions(+), 4 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  Thiemo Mättig (WMDE): Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/resources/ext.popups.renderer.js b/resources/ext.popups.renderer.js
index f477c2d..bd281ab 100644
--- a/resources/ext.popups.renderer.js
+++ b/resources/ext.popups.renderer.js
@@ -1,3 +1,5 @@
+/*global popupDelay: true, popupHideDelay: true*/
+
 ( function ( $, mw ) {
 
/**
@@ -7,16 +9,26 @@
mw.popups.render = {};
 
/**
-* Time to wait in ms before showing a popup on hover
+* Time to wait in ms before showing a popup on hover.
+* Use the navigation popup delay if it has been set by the user.
+* This isn't the official way of setting the delay
+* TODO: Add setting to change delay
 * @property POPUP_DELAY
 */
-   mw.popups.render.POPUP_DELAY = 500;
+   mw.popups.render.POPUP_DELAY = ( typeof popupDelay === 'undefined' ) ?
+   500 :
+   popupDelay * 1000;
 
/**
-* Time to wait in ms before closing a popup on de-hover
+* Time to wait in ms before closing a popup on de-hover.
+* Use the navigation popup delay if it has been set by the user
+* This isn't the official way of setting the delay
+* TODO: Add setting to change delay
 * @property POPUP_CLOSE_DELAY
 */
-   mw.popups.render.POPUP_CLOSE_DELAY = 300;
+   mw.popups.render.POPUP_CLOSE_DELAY = ( typeof popupHideDelay === 
'undefined' ) ?
+   300 :
+   popupHideDelay * 1000;
 
/**
 * Time to wait in ms before starting the API queries on hover, must be 
<= POPUP_DELAY

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I47e11d07561ebf710d39042c2a3bc4b213a821da
Gerrit-PatchSet: 8
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Prtksxna 
Gerrit-Reviewer: AndyRussG 
Gerrit-Reviewer: Jdlrobson 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: Prtksxna 
Gerrit-Reviewer: Spage 
Gerrit-Reviewer: Ssmith 
Gerrit-Reviewer: TheDJ 
Gerrit-Reviewer: Thiemo Mättig (WMDE) 
Gerrit-Reviewer: Werdna 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] renderer: Unregister mouseleave handler on mw.popups.$popus ... - change (mediawiki...Popups)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: renderer: Unregister mouseleave handler on mw.popups.$popus on 
closePopup
..


renderer: Unregister mouseleave handler on mw.popups.$popus on closePopup

Bug: T68315
Change-Id: I3da1b4629841a3059d585e424760b331570a3116
---
M resources/ext.popups.renderer.js
1 file changed, 1 insertion(+), 0 deletions(-)

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



diff --git a/resources/ext.popups.renderer.js b/resources/ext.popups.renderer.js
index f477c2d..bbb19c7 100644
--- a/resources/ext.popups.renderer.js
+++ b/resources/ext.popups.renderer.js
@@ -236,6 +236,7 @@
'mwe-popups-fade-out-up';
 
mw.popups.$popup
+   .off( 'mouseleave', mw.popups.render.leaveActive )
.removeClass( fadeInClass )
.addClass( fadeOutClass );
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3da1b4629841a3059d585e424760b331570a3116
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Prtksxna 
Gerrit-Reviewer: Jdlrobson 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] SpecialExpandTemplates: Fix false checkbox label for nowiki tag - change (mediawiki/core)

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

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

Change subject: SpecialExpandTemplates: Fix false checkbox label for nowiki tag
..

SpecialExpandTemplates: Fix false checkbox label for nowiki tag

Bug: T122907
Change-Id: I49f4209f2e91e08ad08ba79ab3f76a0cf0dbea02
---
M includes/specials/SpecialExpandTemplates.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/37/263037/1

diff --git a/includes/specials/SpecialExpandTemplates.php 
b/includes/specials/SpecialExpandTemplates.php
index 14d8675..e9f0b99 100644
--- a/includes/specials/SpecialExpandTemplates.php
+++ b/includes/specials/SpecialExpandTemplates.php
@@ -182,7 +182,7 @@
),
'removenowiki' => array(
'type' => 'check',
-   'label-message' => 
'expand_templates_remove_nowiki',
+   'label' => $this->msg( 
'expand_templates_remove_nowiki' )->text(),
'name' => 'wpRemoveNowiki',
'id' => 'removenowiki',
'default' => $this->removeNowiki,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I49f4209f2e91e08ad08ba79ab3f76a0cf0dbea02
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow 

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


[MediaWiki-commits] [Gerrit] build: Update most devDependencies to latest - change (oojs/ui)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: build: Update most devDependencies to latest
..


build: Update most devDependencies to latest

* grunt-contrib-clean: 0.6.0 → 0.7.0
* grunt-contrib-copy: 0.8.1 → 0.8.2
* grunt-contrib-less: 1.0.1 → 1.1.0
* grunt-contrib-uglify: 0.9.2 → 0.11.0
* grunt-jscs: 2.1.0 → 2.6.0
* karma: 0.13.10 → 0.13.19
* karma-coverage: 0.5.2 → 0.5.3
* karma-chrome-launcher: 0.2.0 → 0.2.2
* karma-firefox-launcher: 0.1.6 → 0.1.7

Change-Id: I50703777f6c213bea6257ee7cf216bd4ecd4cf63
---
M package.json
1 file changed, 9 insertions(+), 9 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/package.json b/package.json
index cdcad59..cdd90c5 100644
--- a/package.json
+++ b/package.json
@@ -29,30 +29,30 @@
 "grunt": "0.4.5",
 "grunt-banana-checker": "0.4.0",
 "grunt-cli": "0.1.13",
-"grunt-contrib-clean": "0.6.0",
+"grunt-contrib-clean": "0.7.0",
 "grunt-contrib-concat": "0.5.1",
-"grunt-contrib-copy": "0.8.1",
+"grunt-contrib-copy": "0.8.2",
 "grunt-contrib-csslint": "0.5.0",
 "grunt-contrib-cssmin": "0.14.0",
 "grunt-contrib-jshint": "0.11.3",
-"grunt-contrib-less": "1.0.1",
-"grunt-contrib-uglify": "0.9.2",
+"grunt-contrib-less": "1.1.0",
+"grunt-contrib-uglify": "0.11.0",
 "grunt-contrib-watch": "0.6.1",
 "grunt-csscomb": "3.1.0",
 "grunt-cssjanus": "0.2.4",
 "grunt-exec": "0.4.6",
 "grunt-file-exists": "0.1.3",
-"grunt-jscs": "2.1.0",
+"grunt-jscs": "2.6.0",
 "grunt-jsonlint": "1.0.7",
 "grunt-karma": "0.12.1",
 "grunt-promise-q": "0.1.1",
 "grunt-svg2png": 
"git://github.com/jdforrester/grunt-svg2png.git#8bf55ef0c1d4814a5dede5f3f50506cd8c1e89f6",
 "grunt-tyops": "0.1.0",
-"karma": "0.13.10",
-"karma-chrome-launcher": "0.2.0",
-"karma-coverage": "0.5.2",
-"karma-firefox-launcher": "0.1.6",
+"karma-chrome-launcher": "0.2.2",
+"karma-coverage": "0.5.3",
+"karma-firefox-launcher": "0.1.7",
 "karma-qunit": "0.1.5",
+"karma": "0.13.19",
 "q": "1.4.1",
 "qunitjs": "1.18.0"
   }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I50703777f6c213bea6257ee7cf216bd4ecd4cf63
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Jforrester 
Gerrit-Reviewer: Bartosz Dziewoński 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Add a composer.local.json-sample to MediaWiki core - change (mediawiki/core)

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

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

Change subject: Add a composer.local.json-sample to MediaWiki core
..

Add a composer.local.json-sample to MediaWiki core

Bug: T122968

Change-Id: Ib13417b0c29b6fd2b3aaea6808fde3f3c12393e6
---
A composer.local.json
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/36/263036/1

diff --git a/composer.local.json b/composer.local.json
new file mode 100644
index 000..5bde6d8
--- /dev/null
+++ b/composer.local.json
@@ -0,0 +1,11 @@
+{
+   "autoload":{
+
+   },
+   "require":{
+
+   },
+   "require-dev":{
+
+   }
+}
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib13417b0c29b6fd2b3aaea6808fde3f3c12393e6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ananay 

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


[MediaWiki-commits] [Gerrit] renderer: Unregister mouseleave handler on mw.popups.$popus ... - change (mediawiki...Popups)

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

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

Change subject: renderer: Unregister mouseleave handler on mw.popups.$popus on 
closePopup
..

renderer: Unregister mouseleave handler on mw.popups.$popus on closePopup

Bug: T68315
Change-Id: I3da1b4629841a3059d585e424760b331570a3116
---
M resources/ext.popups.renderer.js
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Popups 
refs/changes/35/263035/1

diff --git a/resources/ext.popups.renderer.js b/resources/ext.popups.renderer.js
index f477c2d..bbb19c7 100644
--- a/resources/ext.popups.renderer.js
+++ b/resources/ext.popups.renderer.js
@@ -236,6 +236,7 @@
'mwe-popups-fade-out-up';
 
mw.popups.$popup
+   .off( 'mouseleave', mw.popups.render.leaveActive )
.removeClass( fadeInClass )
.addClass( fadeOutClass );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3da1b4629841a3059d585e424760b331570a3116
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Prtksxna 

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


[MediaWiki-commits] [Gerrit] Reduce CAS errors due to concurrent web requests by a user - change (mediawiki...BetaFeatures)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Reduce CAS errors due to concurrent web requests by a user
..


Reduce CAS errors due to concurrent web requests by a user

Bug: T95839
Change-Id: If4013f34a39c451fe0a75b557a8f2c5316c57bdc
---
M BetaFeaturesHooks.php
1 file changed, 11 insertions(+), 4 deletions(-)

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



diff --git a/BetaFeaturesHooks.php b/BetaFeaturesHooks.php
index f3d1f8b..2f262d8 100644
--- a/BetaFeaturesHooks.php
+++ b/BetaFeaturesHooks.php
@@ -281,10 +281,17 @@
}
 
if ( $saveUser ) {
-   // Save the preferences to the DB post-send
-   DeferredUpdates::addCallableUpdate( function() use ( 
$user ) {
-   $user->saveSettings();
-   } );
+   $cache = ObjectCache::getLocalClusterInstance();
+   $key = $cache->makeKey( __CLASS__, 'prefs-update', 
$user->getId() );
+   // T95839: If concurrent requests pile on (e.g. 
multiple tabs), only let one
+   // thread bother doing these updates. This avoids 
pointless error log spam.
+   if ( $cache->lock( $key, 0, $cache::TTL_MINUTE ) ) {
+   // Save the preferences to the DB post-send
+   DeferredUpdates::addCallableUpdate( function() 
use ( $user, $cache, $key ) {
+   $user->saveSettings();
+   $cache->unlock( $key );
+   } );
+   }
}
 
return true;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If4013f34a39c451fe0a75b557a8f2c5316c57bdc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BetaFeatures
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz 
Gerrit-Reviewer: Catrope 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Assorted transaction logic cleanups - change (mediawiki...Renameuser)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Assorted transaction logic cleanups
..


Assorted transaction logic cleanups

* Replace DB begin()/commit() with startAtomic()/endAtomic() as needed.
* Avoid using rollback(), which generates warnings, and instead doing a
  SELECT FOR UPDATE and checking if the user exists instead of counting
  the affected rows of the subsequent UPDATE.
* Block rename jobs until the original transaction commits and abort
  jobs if the log row was not found. That row acts as a good proxy for
  whether the transaction committed or not. This is better than simply
  moving the job insertion to post-commit because that breaks if the job
  queue is down but not the DB.
* The User::invalidateCache() already defers to pre-commit with HOLDOFF_TTL
  in clearSharedCache(), so having two of the calls was redundant. The later
  call was removed.

Bug: T120791
Change-Id: I33f314fb93228b090c1b82c55b1621764e072028
---
M RenameUserJob.php
M RenameuserSQL.php
2 files changed, 84 insertions(+), 33 deletions(-)

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



diff --git a/RenameUserJob.php b/RenameUserJob.php
index e483733..bfe6d4a 100644
--- a/RenameUserJob.php
+++ b/RenameUserJob.php
@@ -9,6 +9,7 @@
  *   - oldname   : The old user name
  *   - newname   : The new user name
  *   - count : The expected number of rows to update in this batch
+ *   - logId : The ID of the logging table row expected to exist if the 
rename was committed
  *
  * Additionally, one of the following groups of parameters must be set:
  * a) The timestamp based rename paramaters:
@@ -55,8 +56,29 @@
}
$uniqueKey = isset( $this->params['uniqueKey'] ) ? 
$this->params['uniqueKey'] : null;
$keyId = isset( $this->params['keyId'] ) ? 
$this->params['keyId'] : null;
+   $logId = isset( $this->params['logId'] ) ? 
$this->params['logId'] : null;
 
$dbw = wfGetDB( DB_MASTER );
+   if ( $logId ) {
+   # Block until the transaction that inserted this job 
commits.
+   # The atomic section is for sanity as FOR UPDATE does 
not lock in auto-commit mode
+   # per 
http://dev.mysql.com/doc/refman/5.7/en/innodb-locking-reads.html.
+   $dbw->startAtomic( __METHOD__ );
+   $committed = $dbw->selectField( 'logging',
+   '1',
+   array( 'log_id' => $logId ),
+   __METHOD__,
+   array( 'FOR UPDATE' )
+   );
+   $dbw->endAtomic( __METHOD__ );
+   # If the transaction inserting this job was rolled 
back, detect that
+   if ( $committed === false ) { // rollback happened?
+   throw new LogicException( "Cannot run job if 
the account rename failed." );
+   }
+   }
+
+   # Flush any state snapshot data (and release the lock above)
+   $dbw->commit( __METHOD__, 'flush' );
 
# Conditions like "*_user_text = 'x'
$conds = array( $column => $oldname );
diff --git a/RenameuserSQL.php b/RenameuserSQL.php
index 9fbacda..57dad4e 100755
--- a/RenameuserSQL.php
+++ b/RenameuserSQL.php
@@ -165,12 +165,19 @@
$contribs = User::newFromId( $this->uid )->getEditCount();
 
$dbw = wfGetDB( DB_MASTER );
-   $dbw->begin();
+   $dbw->startAtomic( __METHOD__ );
+
Hooks::run( 'RenameUserPreRename', array( $this->uid, 
$this->old, $this->new ) );
 
-   // Rename and touch the user before re-attributing edits,
-   // this avoids users still being logged in and making new edits 
while
-   // being renamed, which leaves edits at the old name.
+   // Make sure the user exists if needed
+   if ( $this->checkIfUserExists && !self::lockUserAndGetId( 
$this->old ) ) {
+   $this->debug( "User {$this->old} does not exist, 
bailing out" );
+
+   return false;
+   }
+
+   // Rename and touch the user before re-attributing edits to 
avoid users still being
+   // logged in and making new edits (under the old name) while 
being renamed.
$this->debug( "Starting rename of {$this->old} to {$this->new}" 
);
$dbw->update( 'user',
array( 'user_name' => $this->new, 'user_touched' => 
$dbw->timestamp() ),
@@ -178,27 +185,21 @@
__METHOD__
);
 
-   if ( !$dbw->affectedRows() && $this->checkIfUserExists ) {
-   $dbw->rollback();
-

[MediaWiki-commits] [Gerrit] Minor cleanup - change (mediawiki...Kartographer)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Minor cleanup
..


Minor cleanup

Applied some cleanup from I9ff808430cd91125554a167071db4b25944f9f42

Change-Id: I8984605fc228acf5533c47eb3ec086b8739c2fd1
---
M Kartographer.hooks.php
1 file changed, 18 insertions(+), 15 deletions(-)

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



diff --git a/Kartographer.hooks.php b/Kartographer.hooks.php
index 7fa2abe..ccb5310 100644
--- a/Kartographer.hooks.php
+++ b/Kartographer.hooks.php
@@ -144,13 +144,16 @@
// Optional query value:  ? data = 
{title}|{group1}|{group2}|...
global $wgKartographerMapServer, 
$wgKartographerSrcsetScales;
 
-   $statParams = sprintf( 
'%s/img/%s,%s,%s,%s,%sx%s', $wgKartographerMapServer, $style,
-   $zoom, $lat, $lon, $width, 
$height );
-   $attrs = array(
-   'class' => 
'mw-kartographer-img',
-   'src' => $statParams . '.jpeg' 
. $dataParam,
-   'width' => $width,
-   'height' => $height,
+   $statParams = sprintf( 
'%s/img/%s,%s,%s,%s,%sx%s',
+   $wgKartographerMapServer, $style,
+   $zoom, $lat, $lon, $width, $height
+   );
+
+   $imgAttrs = array(
+   'class' => 'mw-kartographer-img',
+   'src' => $statParams . '.jpeg' . 
$dataParam,
+   'width' => $width,
+   'height' => $height,
);
if ( $wgKartographerSrcsetScales ) {
$srcSet = array();
@@ -158,21 +161,21 @@
$s = '@' . $scale . 'x';
$srcSet[$scale] = $statParams . 
$s . '.jpeg' . $dataParam;
}
-   $attrs['srcset'] = Html::srcSet( 
$srcSet );
+   $imgAttrs['srcset'] = Html::srcSet( 
$srcSet );
}
 
$output->addModules( 'ext.kartographer.static' 
);
-   $html = Html::rawElement( 'img', $attrs );
+   $html = Html::rawElement( 'img', $imgAttrs );
break;
 
case 'interactive':
$attrs = array(
-   'class' => 
'mw-kartographer-live',
-   'style' => 
"width:${width}px;height:${height}px",
-   'data-style' => $style,
-   'data-zoom' => $zoom,
-   'data-lat' => $lat,
-   'data-lon' => $lon,
+   'class' => 'mw-kartographer-live',
+   'style' => 
"width:${width}px;height:${height}px;",
+   'data-style' => $style,
+   'data-zoom' => $zoom,
+   'data-lat' => $lat,
+   'data-lon' => $lon,
);
if ( $groups ) {
$attrs['data-overlays'] = 
FormatJson::encode( $groups, false,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I8984605fc228acf5533c47eb3ec086b8739c2fd1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Kartographer
Gerrit-Branch: master
Gerrit-Owner: Yurik 
Gerrit-Reviewer: Yurik 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Minor cleanup - change (mediawiki...Kartographer)

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

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

Change subject: Minor cleanup
..

Minor cleanup

Applied some cleanup from I9ff808430cd91125554a167071db4b25944f9f42

Change-Id: I8984605fc228acf5533c47eb3ec086b8739c2fd1
---
M Kartographer.hooks.php
1 file changed, 18 insertions(+), 15 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Kartographer 
refs/changes/34/263034/1

diff --git a/Kartographer.hooks.php b/Kartographer.hooks.php
index 7fa2abe..ccb5310 100644
--- a/Kartographer.hooks.php
+++ b/Kartographer.hooks.php
@@ -144,13 +144,16 @@
// Optional query value:  ? data = 
{title}|{group1}|{group2}|...
global $wgKartographerMapServer, 
$wgKartographerSrcsetScales;
 
-   $statParams = sprintf( 
'%s/img/%s,%s,%s,%s,%sx%s', $wgKartographerMapServer, $style,
-   $zoom, $lat, $lon, $width, 
$height );
-   $attrs = array(
-   'class' => 
'mw-kartographer-img',
-   'src' => $statParams . '.jpeg' 
. $dataParam,
-   'width' => $width,
-   'height' => $height,
+   $statParams = sprintf( 
'%s/img/%s,%s,%s,%s,%sx%s',
+   $wgKartographerMapServer, $style,
+   $zoom, $lat, $lon, $width, $height
+   );
+
+   $imgAttrs = array(
+   'class' => 'mw-kartographer-img',
+   'src' => $statParams . '.jpeg' . 
$dataParam,
+   'width' => $width,
+   'height' => $height,
);
if ( $wgKartographerSrcsetScales ) {
$srcSet = array();
@@ -158,21 +161,21 @@
$s = '@' . $scale . 'x';
$srcSet[$scale] = $statParams . 
$s . '.jpeg' . $dataParam;
}
-   $attrs['srcset'] = Html::srcSet( 
$srcSet );
+   $imgAttrs['srcset'] = Html::srcSet( 
$srcSet );
}
 
$output->addModules( 'ext.kartographer.static' 
);
-   $html = Html::rawElement( 'img', $attrs );
+   $html = Html::rawElement( 'img', $imgAttrs );
break;
 
case 'interactive':
$attrs = array(
-   'class' => 
'mw-kartographer-live',
-   'style' => 
"width:${width}px;height:${height}px",
-   'data-style' => $style,
-   'data-zoom' => $zoom,
-   'data-lat' => $lat,
-   'data-lon' => $lon,
+   'class' => 'mw-kartographer-live',
+   'style' => 
"width:${width}px;height:${height}px;",
+   'data-style' => $style,
+   'data-zoom' => $zoom,
+   'data-lat' => $lat,
+   'data-lon' => $lon,
);
if ( $groups ) {
$attrs['data-overlays'] = 
FormatJson::encode( $groups, false,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8984605fc228acf5533c47eb3ec086b8739c2fd1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Kartographer
Gerrit-Branch: master
Gerrit-Owner: Yurik 

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


[MediaWiki-commits] [Gerrit] [WIP] Strip out jquery.validate - change (mediawiki/debian)

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

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

Change subject: [WIP] Strip out jquery.validate
..

[WIP] Strip out jquery.validate

Need to figure out whether we actually want to do this

Change-Id: I8251e5a07b9879d34d6fb1dafece03f7d407980f
---
M changelog
M copyright
A patches/remove_jquery_validate_definition.patch
M patches/series
M watch
5 files changed, 19 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/debian 
refs/changes/33/263033/1

diff --git a/changelog b/changelog
index 4b0aa5a..554beb2 100644
--- a/changelog
+++ b/changelog
@@ -1,4 +1,4 @@
-mediawiki (1:1.25.5-1) unstable; urgency=medium
+mediawiki (1:1.25.5+dfsg-1) unstable; urgency=medium
 
   * Upgraded to new upstream release
   * Remove unneeded patches
diff --git a/copyright b/copyright
index 7847968..e1bc31a 100644
--- a/copyright
+++ b/copyright
@@ -2,6 +2,7 @@
 Upstream-Name: MediaWiki
 Upstream-Contact: Kunal Mehta 
 Source: https://releases.wikimedia.org/mediawiki/
+Files-Excluded: resources/lib/jquery/jquery.validate.js
 
 Files: *
 Copyright: 2001-2015, MediaWiki developers
diff --git a/patches/remove_jquery_validate_definition.patch 
b/patches/remove_jquery_validate_definition.patch
new file mode 100644
index 000..ca1953b
--- /dev/null
+++ b/patches/remove_jquery_validate_definition.patch
@@ -0,0 +1,14 @@
+Index: mediawiki-1.25.5/resources/Resources.php
+===
+--- mediawiki-1.25.5.orig/resources/Resources.php  2015-12-20 
17:02:09.0 -0800
 mediawiki-1.25.5/resources/Resources.php   2016-01-07 16:17:03.573909964 
-0800
+@@ -316,9 +316,6 @@
+   'scripts' => 
'resources/lib/jquery/jquery.ba-throttle-debounce.js',
+   'targets' => array( 'desktop', 'mobile' ),
+   ),
+-  'jquery.validate' => array(
+-  'scripts' => 'resources/lib/jquery/jquery.validate.js',
+-  ),
+   'jquery.xmldom' => array(
+   'scripts' => 'resources/lib/jquery/jquery.xmldom.js',
+   ),
diff --git a/patches/series b/patches/series
index 44ab27c..1646ce2 100644
--- a/patches/series
+++ b/patches/series
@@ -1,2 +1,3 @@
+remove_jquery_validate_definition.patch
 mimetypes.patch
 debian_specific_config.patch
diff --git a/watch b/watch
index c448cf6..50e9689 100644
--- a/watch
+++ b/watch
@@ -1,4 +1,4 @@
 version=3
 
-opts="dversionmangle=s/^[0-9]+://;s/\+dfsg$//,pgpsigurlmangle=s/$/.sig/" \
-https://releases.wikimedia.org/mediawiki/1.25/ mediawiki-([0-9.]*).tar.gz \
+opts="dversionmangle=s/^[0-9]+://;s/\+dfsg$//,pgpsigurlmangle=s/$/.sig/,repacksuffix=+dfsg"
 \
+https://releases.wikimedia.org/mediawiki/1.25/ mediawiki-([0-9.]*).tar.gz

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8251e5a07b9879d34d6fb1dafece03f7d407980f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/debian
Gerrit-Branch: master
Gerrit-Owner: Legoktm 

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


[MediaWiki-commits] [Gerrit] Convert RelatedSites to use new extension registration - change (mediawiki...RelatedSites)

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

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

Change subject: Convert RelatedSites to use new extension registration
..

Convert RelatedSites to use new extension registration

Bug: T87966
Change-Id: I173ea9ce23a2794a1c8f2a048b8ca31e28a0bc2d
---
D RelatedSites.i18n.php
M RelatedSites.php
A extension.json
3 files changed, 46 insertions(+), 70 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RelatedSites 
refs/changes/32/263032/1

diff --git a/RelatedSites.i18n.php b/RelatedSites.i18n.php
deleted file mode 100644
index 2171e4f..000
--- a/RelatedSites.i18n.php
+++ /dev/null
@@ -1,35 +0,0 @@
-https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
- *
- * Beginning with MediaWiki 1.23, translation strings are stored in json files,
- * and the EXTENSION.i18n.php file only exists to provide compatibility with
- * older releases of MediaWiki. For more information about this migration, see:
- * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format
- *
- * This shim maintains compatibility back to MediaWiki 1.17.
- */
-$messages = array();
-if ( !function_exists( 'wfJsonI18nShim7e3db85f8026b315' ) ) {
-   function wfJsonI18nShim7e3db85f8026b315( $cache, $code, &$cachedData ) {
-   $codeSequence = array_merge( array( $code ), 
$cachedData['fallbackSequence'] );
-   foreach ( $codeSequence as $csCode ) {
-   $fileName = dirname( __FILE__ ) . "/i18n/$csCode.json";
-   if ( is_readable( $fileName ) ) {
-   $data = FormatJson::decode( file_get_contents( 
$fileName ), true );
-   foreach ( array_keys( $data ) as $key ) {
-   if ( $key === '' || $key[0] === '@' ) {
-   unset( $data[$key] );
-   }
-   }
-   $cachedData['messages'] = array_merge( $data, 
$cachedData['messages'] );
-   }
-
-   $cachedData['deps'][] = new FileDependency( $fileName );
-   }
-   return true;
-   }
-
-   $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 
'wfJsonI18nShim7e3db85f8026b315';
-}
diff --git a/RelatedSites.php b/RelatedSites.php
index cb6fd73..6f0f43d 100644
--- a/RelatedSites.php
+++ b/RelatedSites.php
@@ -1,37 +1,13 @@
 https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );*/
+   return;
+} else {
+   die( 'This version of the RelatedSites extension requires MediaWiki 
1.25+' );
 }
-
-// autoloader
-$wgAutoloadClasses['RelatedSites'] = __DIR__ . '/RelatedSites.class.php';
-
-// extension & magic words i18n
-$wgMessagesDirs['RelatedSites'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['RelatedSites'] = __DIR__ . '/RelatedSites.i18n.php';
-
-// hooks
-$wgRelatedSites = new RelatedSites;
-$wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgRelatedSites, 
'onSkinTemplateOutputPageBeforeExec' );
-$wgHooks['ParserBeforeTidy'][] = array( &$wgRelatedSites, 'onParserBeforeTidy' 
);
-
-// @TODO Add a global to control these, and then probably use 
wgExtensionFunctions hook
-// 2 same hooks, with different position though - enable what you want
-// the first one is a "clean" solution, but has its content inserted _before_ 
the toolbox
-//$wgHooks['SkinBuildSidebar'][] = array( &$wgRelatedSites, 
'onSkinBuildSidebar' );
-// the second one is nasty: echo'ing raw html _after_ the regular toolbox
-$wgHooks['SkinTemplateToolboxEnd'][] = array( &$wgRelatedSites, 
'onSkinTemplateToolboxEnd' );
-
-// credits
-$wgExtensionCredits['parserhook']['RelatedSites'] = array(
-   'path' => __FILE__,
-   'name' => 'RelatedSites',
-   'url' => '//www.mediawiki.org/wiki/Extension:RelatedSites',
-   'descriptionmsg' => 'relatedsites-desc',
-   'author' => array( 'Roland Unger', 'Hans Musil', 'Matthias Mullie' ),
-   'version' => '1.1'
-);
-
-// related interwiki prefixes that should show up on relatedsites sidebar
-$wgRelatedSitesPrefixes = array();
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..e1bc4a9
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,35 @@
+{
+   "name": "RelatedSites",
+   "url": "https://www.mediawiki.org/wiki/Extension:RelatedSites";,
+   "descriptionmsg": "relatedsites-desc",
+   "author": [
+   "Roland Unger",
+   "Hans Musil",
+   "Matthias Mullie"
+   ],
+   "version": "1.1",
+   "type": "RelatedSites",
+   "AutoloadClasses": {
+   "RelatedSites": "RelatedSites.class.php"
+   },
+   "MessageDirs": {
+   "RelatedSites": [
+   "i18n"
+   ]
+   },
+ 

[MediaWiki-commits] [Gerrit] Move a function to where it belongs - change (mediawiki...GeoData)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Move a function to where it belongs
..


Move a function to where it belongs

Change-Id: I2c95d824a5743dd24b426f625bce491639690743
---
M includes/api/ApiQueryGeoSearch.php
M includes/api/ApiQueryGeoSearchDb.php
M tests/MiscGeoDataTest.php
3 files changed, 29 insertions(+), 29 deletions(-)

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



diff --git a/includes/api/ApiQueryGeoSearch.php 
b/includes/api/ApiQueryGeoSearch.php
index 1677927..4688526 100644
--- a/includes/api/ApiQueryGeoSearch.php
+++ b/includes/api/ApiQueryGeoSearch.php
@@ -115,34 +115,6 @@
}
}
 
-   /**
-* Returns a range of tenths of degree
-*
-* @param float $start
-* @param float $end
-* @param int|null $granularity
-*
-* @return array
-*/
-   public static function intRange( $start, $end, $granularity = null ) {
-   global $wgGeoDataIndexGranularity;
-
-   if ( !$granularity ) {
-   $granularity = $wgGeoDataIndexGranularity;
-   }
-   $start = round( $start * $granularity );
-   $end = round( $end * $granularity );
-   // @todo: works only on Earth
-   if ( $start > $end ) {
-   return array_merge(
-   range( -180 * $granularity, $end ),
-   range( $start, 180 * $granularity )
-   );
-   } else {
-   return range( $start, $end );
-   }
-   }
-
public function getAllowedParams() {
global $wgMaxGeoSearchRadius, $wgDefaultGlobe, $wgGeoDataDebug;
$params = array (
diff --git a/includes/api/ApiQueryGeoSearchDb.php 
b/includes/api/ApiQueryGeoSearchDb.php
index dfa29f0..cccadf7 100644
--- a/includes/api/ApiQueryGeoSearchDb.php
+++ b/includes/api/ApiQueryGeoSearchDb.php
@@ -102,4 +102,32 @@
}
$this->addOption( 'USE INDEX', array( 'geo_tags' => 
'gt_spatial' ) );
}
+
+   /**
+* Returns a range of tenths of degree
+*
+* @param float $start
+* @param float $end
+* @param int|null $granularity
+*
+* @return array
+*/
+   public static function intRange( $start, $end, $granularity = null ) {
+   global $wgGeoDataIndexGranularity;
+
+   if ( !$granularity ) {
+   $granularity = $wgGeoDataIndexGranularity;
+   }
+   $start = round( $start * $granularity );
+   $end = round( $end * $granularity );
+   // @todo: works only on Earth
+   if ( $start > $end ) {
+   return array_merge(
+   range( -180 * $granularity, $end ),
+   range( $start, 180 * $granularity )
+   );
+   } else {
+   return range( $start, $end );
+   }
+   }
 }
diff --git a/tests/MiscGeoDataTest.php b/tests/MiscGeoDataTest.php
index 62a98c1..ee3b973 100644
--- a/tests/MiscGeoDataTest.php
+++ b/tests/MiscGeoDataTest.php
@@ -8,7 +8,7 @@
 * @dataProvider getIntRangeData
 */
public function testIntRange( $min, $max, $expected ) {
-   $this->assertEquals( $expected, ApiQueryGeoSearch::intRange( 
$min, $max ) );
+   $this->assertEquals( $expected, ApiQueryGeoSearchDb::intRange( 
$min, $max ) );
}
 
public function getIntRangeData() {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2c95d824a5743dd24b426f625bce491639690743
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/GeoData
Gerrit-Branch: master
Gerrit-Owner: MaxSem 
Gerrit-Reviewer: Yurik 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Improve docs, fix deprecated functons usage, rm unused method - change (mediawiki...GeoData)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Improve docs, fix deprecated functons usage, rm unused method
..


Improve docs, fix deprecated functons usage, rm unused method

Change-Id: Ic79ace426cb4dd377750966d7ce6722202c4c8b0
---
M includes/CoordinatesParserFunction.php
M includes/GeoData.body.php
M includes/GeoDataHooks.php
M includes/api/ApiQueryGeoSearchElastic.php
4 files changed, 23 insertions(+), 33 deletions(-)

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



diff --git a/includes/CoordinatesParserFunction.php 
b/includes/CoordinatesParserFunction.php
index 5f989f4..dfb4d8a 100644
--- a/includes/CoordinatesParserFunction.php
+++ b/includes/CoordinatesParserFunction.php
@@ -31,7 +31,7 @@
 *
 * @param Parser $parser
 * @param PPFrame $frame
-* @param Array $args
+* @param PPNode[] $args
 * @throws MWException
 * @return Mixed
 */
@@ -71,7 +71,7 @@
/**
 * Parses parser function input
 * @param PPFrame $frame
-* @param Array $args
+* @param PPNode[] $args
 */
private function parseArgs( $frame, $args ) {
$first = trim( $frame->expand( array_shift( $args ) ) );
@@ -89,7 +89,7 @@
 
/**
 * Add an unnamed parameter to the list, turining it into a named one 
if needed
-* @param String $value: Parameter
+* @param string $value Parameter
 */
private function addArg( $value ) {
$primary = MagicWord::get( 'primary' );
@@ -106,7 +106,7 @@
 * Applies a coordinate to parser output
 *
 * @param Coord $coord
-* @return Status: whether save went OK
+* @return Status whether save went OK
 */
private function applyCoord( Coord $coord ) {
global $wgMaxCoordinatesPerPage, $wgContLang;
@@ -228,7 +228,7 @@
 * Returns wikitext of status error message in content language
 *
 * @param Status $s
-* @return String
+* @return string
 */
private function errorText( Status $s ) {
$errors = array_merge( $s->getErrorsArray(), 
$s->getWarningsArray() );
diff --git a/includes/GeoData.body.php b/includes/GeoData.body.php
index 605be8f..5bee492 100644
--- a/includes/GeoData.body.php
+++ b/includes/GeoData.body.php
@@ -23,7 +23,7 @@
/**
 * Returns primary coordinates of the given page, if any
 * @param Title $title
-* @return Coord|bool: Coordinates or false
+* @return Coord|bool Coordinates or false
 */
public static function getPageCoordinates( Title $title ) {
$coords = self::getAllCoordinates( $title->getArticleID(), 
array( 'gt_primary' => 1 ) );
@@ -36,10 +36,10 @@
/**
 * Retrieves all coordinates for the given page id
 *
-* @param int $pageId: ID of the page
-* @param Array $conds: Conditions for Database::select()
-* @param int $dbType: Database to select from DM_MASTER or DB_SLAVE
-* @return Array: Array of Coord objects
+* @param int $pageId ID of the page
+* @param array $conds Conditions for Database::select()
+* @param int $dbType Database to select from DM_MASTER or DB_SLAVE
+* @return Coord[]
 */
public static function getAllCoordinates( $pageId, $conds = array(), 
$dbType = DB_SLAVE ) {
$db = wfGetDB( $dbType );
@@ -56,9 +56,9 @@
 * Parses coordinates
 * See https://en.wikipedia.org/wiki/Template:Coord for sample inputs
 *
-* @param Array $parts: Array of coordinate components
-* @param String $globe: Globe name
-* @return Status: Status object, in case of success its value is a 
Coord object.
+* @param array $parts Array of coordinate components
+* @param string $globe Globe name
+* @return Status Status object, in case of success its value is a 
Coord object.
 */
public static function parseCoordinates( $parts, $globe ) {
global $wgGlobes;
@@ -142,9 +142,9 @@
/**
 * Parses coordinate suffix such as N, S, E or W
 *
-* @param String $str: String to test
-* @param Array $coordInfo
-* @return int: Sign modifier or 0 if not a suffix
+* @param string $str String to test
+* @param array $coordInfo
+* @return int Sign modifier or 0 if not a suffix
 */
public static function parseSuffix( $str, $coordInfo ) {
global $wgContLang;
@@ -167,17 +167,5 @@
);
}
return $result;
-   }
-
-   /**
-* Given an array of non-normalised probabilities, this function will 
select
-* an element and return the appropria

[MediaWiki-commits] [Gerrit] Add release notes for 4a40a5d21729 - change (mediawiki/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add release notes for 4a40a5d21729
..


Add release notes for 4a40a5d21729

Change-Id: I38c7d710f489c54592876e7dbc16bf2871e77930
---
M RELEASE-NOTES-1.27
1 file changed, 1 insertion(+), 0 deletions(-)

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



diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 4723220..32f2939 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -238,6 +238,7 @@
 * Language::armourMath() was removed (deprecated since 1.22).
 * LanguageConverter::armourMath() was removed (deprecated since 1.22).
 * FakeConverter::armourMath() was removed (deprecated since 1.22).
+* The unused jquery.validate ResourceLoader module was removed.
 
 == Compatibility ==
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I38c7d710f489c54592876e7dbc16bf2871e77930
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Add release notes for 4a40a5d21729 - change (mediawiki/core)

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

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

Change subject: Add release notes for 4a40a5d21729
..

Add release notes for 4a40a5d21729

Change-Id: I38c7d710f489c54592876e7dbc16bf2871e77930
---
M RELEASE-NOTES-1.27
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/31/263031/1

diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 4723220..32f2939 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -238,6 +238,7 @@
 * Language::armourMath() was removed (deprecated since 1.22).
 * LanguageConverter::armourMath() was removed (deprecated since 1.22).
 * FakeConverter::armourMath() was removed (deprecated since 1.22).
+* The unused jquery.validate ResourceLoader module was removed.
 
 == Compatibility ==
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I38c7d710f489c54592876e7dbc16bf2871e77930
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm 

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


[MediaWiki-commits] [Gerrit] Add docstring for cosmetic_changes.CosmeticChangesToolkit.cl... - change (pywikibot/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add docstring for 
cosmetic_changes.CosmeticChangesToolkit.cleanUpLinks
..


Add docstring for cosmetic_changes.CosmeticChangesToolkit.cleanUpLinks

Bug: T118423
Change-Id: I1b655412a4dfaf4c287658d5a012d3bbb46de7e7
---
M pywikibot/cosmetic_changes.py
1 file changed, 20 insertions(+), 0 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index 8aabc09..f466b89 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -467,6 +467,26 @@
 return text
 
 def cleanUpLinks(self, text):
+"""Tidy up wikilinks found in a string.
+
+This function will:
+* Replace underscores with spaces
+
+* Move leading and trailing spaces out of the wikilink and into the
+  surrounding text
+
+* Convert URL-encoded characters into Unicode-encoded characters
+
+* Move trailing characters out of the link and make the link without
+  using a pipe, if possible
+
+* Capitalize the article title of the link, if appropriate
+
+@param text: string to perform the clean-up on
+@type text: str
+@return: text with tidied wikilinks
+@rtype: str
+"""
 # helper function which works on one link and either returns it
 # unmodified, or returns a replacement.
 def handleOneLink(match):

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1b655412a4dfaf4c287658d5a012d3bbb46de7e7
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Sn1per 
Gerrit-Reviewer: John Vandenberg 
Gerrit-Reviewer: Ladsgroup 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Remove some uses of $wgTitle in core - change (mediawiki/core)

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

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

Change subject: Remove some uses of $wgTitle in core
..

Remove some uses of $wgTitle in core

- EditPage no longer uses $wgTitle. It now always uses the $this->mTitle
  member variable.

  In core, the code that read $wgTitle was only used by action=edit itself.
  As far as I can tell, $wgTitle and $this->mTitle always point to the same
  title in this scenario.

  No extensions in Git are affected.

- Linker::makeExternalLink no longer uses $wgTitle. This means that if
  the optional $title parameter is not passed in, the value of
  $wgNoFollowNsExceptions will not be checked when deciding whether or not
  to add rel="nofollow" to the link. Arguably $title should be made a
  mandatory parameter, but its place in the argument list makes this
  problematic.

  Uses of this function in core are updated to take account of this change.

  Extensions using this function are doing so from a special page
  or other non-user-content context, so do not require any change.

- Parser::transformMsg no longer uses $wgTitle if the $title parameter is
  null, instead using the $mTitle member variable.

  This doesn't affect core, but does affect the SemanticForms and
  Intersection extensions. (SemanticForms is still using $wgParser, so I'm
  not going to bother patching it. They can figure it out themselves.)

  Patch for Intersection is I17cb16fc3f9912cff1832d7eec09c4d9048f146c

Bug: T25307
Change-Id: I69ae09dabfcadafc1f964e2770ee184e2b34116e
---
M RELEASE-NOTES-1.27
M includes/EditPage.php
M includes/Linker.php
M includes/api/ApiEditPage.php
M includes/api/ApiParse.php
M includes/parser/Parser.php
6 files changed, 36 insertions(+), 21 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/30/263030/1

diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 9b12b72..329db8e 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -61,6 +61,7 @@
   $wgSharedDB and $wgSharedTables are properly set even on the "central" wiki
   that all others are sharing from and that $wgLocalDatabases is set to the
   full list of sharing wikis on all those wikis.
+* Adding NS_SPECIAL (-1) to $wgNoFollowNsExceptions no longer has any effect.
 
 === New features in 1.27 ===
 * $wgDataCenterId and $wgDataCenterRoles where added, which will serve as
diff --git a/includes/EditPage.php b/includes/EditPage.php
index 47912cb..c3c23b3 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -436,15 +436,12 @@
 
/**
 * Get the context title object.
-* If not set, $wgTitle will be returned. This behavior might change in
-* the future to return $this->mTitle instead.
 *
 * @return Title
 */
public function getContextTitle() {
if ( is_null( $this->mContextTitle ) ) {
-   global $wgTitle;
-   return $wgTitle;
+   return $this->mTitle;
} else {
return $this->mContextTitle;
}
diff --git a/includes/Linker.php b/includes/Linker.php
index 80e4c62..6df37c9 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -1038,13 +1038,14 @@
 * @param bool $escape Do we escape the link text?
 * @param string $linktype Type of external link. Gets added to the 
classes
 * @param array $attribs Array of extra attributes to 
-* @param Title|null $title Title object used for title specific link 
attributes
+* @param Title|null $title Title object used for title specific link
+* attributes. This parameter is only relevant when the external link is
+* in page content, and should be left null for links in the UI
 * @return string
 */
public static function makeExternalLink( $url, $text, $escape = true,
$linktype = '', $attribs = array(), $title = null
) {
-   global $wgTitle;
$class = "external";
if ( $linktype ) {
$class .= " $linktype";
@@ -1058,9 +1059,6 @@
$text = htmlspecialchars( $text );
}
 
-   if ( !$title ) {
-   $title = $wgTitle;
-   }
$attribs['rel'] = Parser::getExternalLinkRel( $url, $title );
$link = '';
$success = Hooks::run( 'LinkerMakeExternalLink',
@@ -1509,7 +1507,10 @@
$title->getFragment()
),
$text,
-   /* escape = */ false // Already escaped
+   /* escape = */ false, // Already escaped
+   /* linktype = */ '',
+   /* attribs = */ array(),
+

[MediaWiki-commits] [Gerrit] DynamicPageListHooks: Set parser context title - change (mediawiki...intersection)

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

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

Change subject: DynamicPageListHooks: Set parser context title
..

DynamicPageListHooks: Set parser context title

This avoids the use of $wgTitle inside the Parser class.

Bug: T25307
Change-Id: I17cb16fc3f9912cff1832d7eec09c4d9048f146c
---
M DynamicPageList.hooks.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/intersection 
refs/changes/29/263029/1

diff --git a/DynamicPageList.hooks.php b/DynamicPageList.hooks.php
index 7abe1ae..38bb697 100644
--- a/DynamicPageList.hooks.php
+++ b/DynamicPageList.hooks.php
@@ -69,6 +69,7 @@
$parameters = explode( "\n", $input );
 
$parser = new Parser;
+   $parser->setTitle( $mwParser->getTitle() );
$poptions = new ParserOptions;
 
foreach ( $parameters as $parameter ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I17cb16fc3f9912cff1832d7eec09c4d9048f146c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/intersection
Gerrit-Branch: master
Gerrit-Owner: TTO 

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


[MediaWiki-commits] [Gerrit] [WIP] Convert VipsScaler to use new extension registration - change (mediawiki...VipsScaler)

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

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

Change subject: [WIP] Convert VipsScaler to use new extension registration
..

[WIP] Convert VipsScaler to use new extension registration

Bug: T87991
Change-Id: Ie3c98c5f41c5ddfe98b8ff2af1e138fa062719d3
---
A VipsScaler.hooks.php
D VipsScaler.i18n.php
M VipsScaler.php
A extension.json
4 files changed, 119 insertions(+), 132 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VipsScaler 
refs/changes/28/263028/1

diff --git a/VipsScaler.hooks.php b/VipsScaler.hooks.php
new file mode 100644
index 000..812f3c8
--- /dev/null
+++ b/VipsScaler.hooks.php
@@ -0,0 +1,11 @@
+https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
- *
- * Beginning with MediaWiki 1.23, translation strings are stored in json files,
- * and the EXTENSION.i18n.php file only exists to provide compatibility with
- * older releases of MediaWiki. For more information about this migration, see:
- * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format
- *
- * This shim maintains compatibility back to MediaWiki 1.17.
- */
-$messages = array();
-if ( !function_exists( 'wfJsonI18nShim516b4d3ef6cda813' ) ) {
-   function wfJsonI18nShim516b4d3ef6cda813( $cache, $code, &$cachedData ) {
-   $codeSequence = array_merge( array( $code ), 
$cachedData['fallbackSequence'] );
-   foreach ( $codeSequence as $csCode ) {
-   $fileName = dirname( __FILE__ ) . "/i18n/$csCode.json";
-   if ( is_readable( $fileName ) ) {
-   $data = FormatJson::decode( file_get_contents( 
$fileName ), true );
-   foreach ( array_keys( $data ) as $key ) {
-   if ( $key === '' || $key[0] === '@' ) {
-   unset( $data[$key] );
-   }
-   }
-   $cachedData['messages'] = array_merge( $data, 
$cachedData['messages'] );
-   }
-
-   $cachedData['deps'][] = new FileDependency( $fileName );
-   }
-   return true;
-   }
-
-   $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 
'wfJsonI18nShim516b4d3ef6cda813';
-}
diff --git a/VipsScaler.php b/VipsScaler.php
index 7d62ca5..6bf063d 100644
--- a/VipsScaler.php
+++ b/VipsScaler.php
@@ -20,101 +20,16 @@
  * @file
  */
 
-$wgExtensionCredits['media'][] = array(
-   'path' => __FILE__,
-   'name' => 'VipsScaler',
-   'author' => array( 'Bryan Tong Minh' ),
-   'descriptionmsg' => 'vipsscaler-desc',
-   'url' => '//www.mediawiki.org/wiki/Extension:VipsScaler',
-   'license-name' => 'GPL-2.0+',
-);
-
-$dir = __DIR__;
-
-$wgAutoloadClasses['VipsScaler']  = "$dir/VipsScaler_body.php";
-$wgAutoloadClasses['VipsCommand'] = "$dir/VipsScaler_body.php";
-$wgAutoloadClasses['VipsConvolution'] = "$dir/VipsScaler_body.php";
-
-$wgMessagesDirs['VipsScaler'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['VipsScaler'] = "$dir/VipsScaler.i18n.php";
-
-$wgHooks['BitmapHandlerTransform'][] = 'VipsScaler::onTransform';
-$wgHooks['BitmapHandlerCheckImageArea'][] = 
'VipsScaler::onBitmapHandlerCheckImageArea';
-
-# Download vips from http://www.vips.ecs.soton.ac.uk/
-$wgVipsCommand = 'vips';
-
-/**
- * Options and conditions for images to be scaled with this scaler.
- * Set to an array of arrays. The inner array contains a condition array, which
- * contains a list of conditions that the image should pass for it to be scaled
- * with vips. Conditions are mimeType, minArea, maxArea, minShrinkFactor,
- * maxShrinkFactor. The other items in the array are options. Options available
- * are:
- * - sharpen: Set to an array with keys 'radius' and 'sigma', which are
- *   parameters to gaussian sharpen matrix.
- * - preconvert: Convert the file to a .v file first, which costs some space,
- *   but saves memory on the actual downsize
- * - bilinear: Use im_resize_linear instead of im_shrink
- * - convolution: Apply specified convolution matrix
- * - setcomment: Add an exif comment specifying the source of the file.
- *   Requires $wgExiv2Command to be set properly.
- */
-$wgVipsOptions = array(
-   # Sharpen jpeg files which are shrunk more than 1.2
-   array(
-   'conditions' => array(
-   'mimeType' => 'image/jpeg',
-   'minShrinkFactor' => 1.2,
-   ),
-   'sharpen' => array( 'radius' => 0, 'sigma' => 0.8 ),
-   ),
-   # Other jpeg files
-   array(
-   'conditions' => array(
-   'mimeType' => 'image/jpeg',
-   ),
-   'sharpen' => false,
-   'bilinear' => true,
-   ),
-   # Do

[MediaWiki-commits] [Gerrit] Improve sentry plugin - change (operations...plugins)

2016-01-07 Thread Code Review
Gergő Tisza has uploaded a new change for review.

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

Change subject: Improve sentry plugin
..

Improve sentry plugin

Clean up whitespace + make parameters less cumbersome

Bug: T85239
Change-Id: I74e63e6b41af13389ba7be888f25286b3a508ec2
---
M logstash/outputs/sentry.rb
1 file changed, 37 insertions(+), 50 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/operations/software/logstash/plugins 
refs/changes/27/263027/1

diff --git a/logstash/outputs/sentry.rb b/logstash/outputs/sentry.rb
index 584918b..e3e673f 100644
--- a/logstash/outputs/sentry.rb
+++ b/logstash/outputs/sentry.rb
@@ -9,44 +9,33 @@
 # Sentry is a modern error logging and aggregation platform.
 # * https://getsentry.com/
 #
-# It’s important to note that Sentry should not be thought of as a log stream, 
but as an aggregator. 
+# It’s important to note that Sentry should not be thought of as a log stream, 
but as an aggregator.
 # It fits somewhere in-between a simple metrics solution (such as Graphite) 
and a full-on log stream aggregator (like Logstash).
 #
 # Generate and inform your client key (Settings -> Client key)
-# The client key has this form  * https://[key]:[secret]@[host]/[project_id] *
 #
-# More informations : 
+# More informations :
 # * https://sentry.readthedocs.org/en/latest/
 
 
 class LogStash::Outputs::Sentry < LogStash::Outputs::Base
- 
+
   config_name 'sentry'
-  
-  
-  # The key of the client key 
-  config :key, :validate => :string, :required => true
-  
-  # The secret  of the client key
-  config :secret, :validate => :string, :required => true
-  
-  # The project id of the client key
-  config :project_id, :validate => :string, :required => true
-  
-  # The Sentry host 
-  config :host, :validate => :string, :default => "https://app.getsentry.com";, 
:required => false 
-  
+
+  # The Sentry DSN
+  config :dsn, :validate => :string, :required => true
+
   # This sets the message value in Sentry (the title of your event)
   config :msg, :validate => :string, :default => "Message from logstash", 
:required => false
-  
+
   # This sets the level value in Sentry (the level tag)
   config :level_tag, :validate => :string, :default => "error", :required => 
false
-  
-  # Is the protocole https ? By default yes (host is 
"https://app.getsentry.com";) 
-  # If you have installed Sentry in your own machine, maybe you do use http, 
-  # so you have to disable ssl ( "use_ssl" => false ) 
-  config :use_ssl, :validate => :boolean, :default => true, :required => false 
-  
+
+  # Is the protocole https ? By default yes (host is 
"https://app.getsentry.com";)
+  # If you have installed Sentry in your own machine, maybe you do use http,
+  # so you have to disable ssl ( "use_ssl" => false )
+  config :use_ssl, :validate => :boolean, :default => true, :required => false
+
   # If set to true automatically map all logstash defined fields to Sentry 
extra fields.
   # As an example, the logstash event:
   # [source,ruby]
@@ -69,67 +58,65 @@
   #  "nested_field": {
   #"key": "value"
   #  }
-  #}   
+  #}
   config :fields_to_tags, :validate => :boolean, :default => false, :required 
=> false
- 
+
   public
   def register
 require 'net/https'
 require 'uri'
-
-@url = "#{host}/api/#{project_id}/store/"
-@uri = URI.parse(@url)
+
+@uri = URI.parse(@sentry_dsn)
 
 @client = Net::HTTP.new(@uri.host, @uri.port)
-@client.use_ssl = use_ssl
+@client.use_ssl = @uri.scheme.downcase === 'https'
 @client.verify_mode = OpenSSL::SSL::VERIFY_NONE
- 
-   @logger.debug("Client", :client => @client.inspect)
+
+@logger.debug("Client", :client => @client.inspect)
   end
- 
+
   public
   def receive(event)
 return unless output?(event)
- 
+
 require 'securerandom'
- 
+
 packet = {
   :event_id => SecureRandom.uuid.gsub('-', ''),
   :timestamp => event['@timestamp'],
   :message => event["#{msg}"] || "#{msg}"
}
 
-packet[:level] = "#{level_tag}" 
+packet[:level] = "#{level_tag}"
 packet[:platform] = 'logstash'
-packet[:server_name] = event['host']
-packet[:extra] = event.to_hash   
-   
+packet[:server_name] = event['host']
+packet[:extra] = event.to_hash
+
 if fields_to_tags == true 
packet[:tags] = event.to_hash
-end 
+end
 
 @logger.debug("Sentry packet", :sentry_packet => packet)
- 
+
 auth_header = "Sentry sentry_version=5," +
   "sentry_client=raven_logstash/1.0," +
   "sentry_timestamp=#{event['@timestamp'].to_i}," +
-  "sentry_key=#{@key}," +
-  "sentry_secret=#{@secret}"
- 
+  "sentry_key=#{@uri.user}," +
+  "sentry_secret=#{@uri.password}"
+
 request = Net::HTTP::Post.new(@uri.path)
- 
+
 begin
   request.body = packet.to_json
   request.add_field('X-Sentry-Auth', auth_header)
- 
+
   respons

[MediaWiki-commits] [Gerrit] Optimize imports in SpecialConstraintReport.php - change (mediawiki...WikibaseQualityConstraints)

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

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

Change subject: Optimize imports in SpecialConstraintReport.php
..

Optimize imports in SpecialConstraintReport.php

Change-Id: Id84de6d834aad1499a78fcde3474471c80fb8952
---
M specials/SpecialConstraintReport.php
1 file changed, 22 insertions(+), 23 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints
 refs/changes/25/263025/1

diff --git a/specials/SpecialConstraintReport.php 
b/specials/SpecialConstraintReport.php
index 6495c54..7d43083 100644
--- a/specials/SpecialConstraintReport.php
+++ b/specials/SpecialConstraintReport.php
@@ -2,37 +2,36 @@
 
 namespace WikibaseQuality\ConstraintReport\Specials;
 
-use UnexpectedValueException;
-use InvalidArgumentException;
-use SpecialPage;
-use ValueFormatters\FormatterOptions;
-use ValueFormatters\ValueFormatter;
-use Wikibase\DataModel\Services\EntityId\EntityIdFormatter;
-use HTMLForm;
-use Wikibase\DataModel\Services\Lookup\EntityLookup;
-use Wikibase\Lib\OutputFormatValueFormatterFactory;
-use Wikibase\Lib\SnakFormatter;
 use DataValues;
 use DataValues\DataValue;
+use HTMLForm;
 use Html;
-use Wikibase\DataModel\Entity\Entity;
-use Wikibase\DataModel\Entity\EntityId;
-use Wikibase\DataModel\Entity\EntityIdParser;
-use Wikibase\DataModel\Entity\EntityIdParsingException;
-use Wikibase\DataModel\Entity\EntityIdValue;
-use Wikibase\DataModel;
-use Wikibase\DataModel\Entity\ItemId;
-use Wikibase\DataModel\Entity\PropertyId;
-use Wikibase\Lib\Store\EntityTitleLookup;
-use Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookupFactory;
-use Wikibase\Repo\EntityIdHtmlLinkFormatterFactory;
-use Wikibase\Repo\EntityIdLabelFormatterFactory;
-use Wikibase\Repo\WikibaseRepo;
+use InvalidArgumentException;
+use SpecialPage;
+use UnexpectedValueException;
+use ValueFormatters\FormatterOptions;
+use ValueFormatters\ValueFormatter;
 use 
WikibaseQuality\ConstraintReport\ConstraintCheck\DelegatingConstraintChecker;
 use WikibaseQuality\ConstraintReport\ConstraintReportFactory;
 use WikibaseQuality\Html\HtmlTableBuilder;
 use WikibaseQuality\Html\HtmlTableCellBuilder;
 use WikibaseQuality\Html\HtmlTableHeaderBuilder;
+use Wikibase\DataModel\Entity\Entity;
+use Wikibase\DataModel\Entity\EntityId;
+use Wikibase\DataModel\Entity\EntityIdParser;
+use Wikibase\DataModel\Entity\EntityIdParsingException;
+use Wikibase\DataModel\Entity\EntityIdValue;
+use Wikibase\DataModel\Entity\ItemId;
+use Wikibase\DataModel\Entity\PropertyId;
+use Wikibase\DataModel\Services\EntityId\EntityIdFormatter;
+use Wikibase\DataModel\Services\Lookup\EntityLookup;
+use Wikibase\Lib\OutputFormatValueFormatterFactory;
+use Wikibase\Lib\SnakFormatter;
+use Wikibase\Lib\Store\EntityTitleLookup;
+use Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookupFactory;
+use Wikibase\Repo\EntityIdHtmlLinkFormatterFactory;
+use Wikibase\Repo\EntityIdLabelFormatterFactory;
+use Wikibase\Repo\WikibaseRepo;
 
 /**
  * Class SpecialConstraintReport

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id84de6d834aad1499a78fcde3474471c80fb8952
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Aude 

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


[MediaWiki-commits] [Gerrit] Remove reference to no longer existing class - change (mediawiki...WikibaseQualityConstraints)

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

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

Change subject: Remove reference to no longer existing class
..

Remove reference to no longer existing class

was removed in I52356dd

Change-Id: Ibfd44615b12e4ec987d18672578b7c65035b1824
---
M specials/SpecialConstraintReport.php
1 file changed, 0 insertions(+), 6 deletions(-)


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

diff --git a/specials/SpecialConstraintReport.php 
b/specials/SpecialConstraintReport.php
index 7d43083..64cbd0c 100644
--- a/specials/SpecialConstraintReport.php
+++ b/specials/SpecialConstraintReport.php
@@ -318,8 +318,6 @@
}
 
/**
-* @see SpecialCheckResultPage::executeCheck
-*
 * @param Entity $entity
 *
 * @return CheckResult[]
@@ -329,8 +327,6 @@
}
 
/**
-* @see SpecialCheckResultPage::buildResultTable
-*
 * @param EntityId $entityId
 * @param array $results
 *
@@ -715,8 +711,6 @@
}
 
/**
-* @see SpecialCheckResultPage::getStatusMapping
-*
 * @return array
 */
private function getStatusMapping() {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibfd44615b12e4ec987d18672578b7c65035b1824
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Aude 

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


[MediaWiki-commits] [Gerrit] Add maintenance script importTextFiles.php - change (mediawiki/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add maintenance script importTextFiles.php
..


Add maintenance script importTextFiles.php

importTextFiles.php can be used to import pages from text files
containing wikitext.

Also, added $userObj to WikiRevision so that it can accept a User
object instead of just a username.

This is a GCI task.

Change-Id: I20eaf2005bdd3d041f55d8c0b108f001c064d638
---
M autoload.php
M includes/import/WikiRevision.php
A maintenance/importTextFiles.php
3 files changed, 154 insertions(+), 6 deletions(-)

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



diff --git a/autoload.php b/autoload.php
index 5ee73a5..1f8c93a 100644
--- a/autoload.php
+++ b/autoload.php
@@ -575,6 +575,7 @@
'ImportSource' => __DIR__ . '/includes/import/ImportSource.php',
'ImportStreamSource' => __DIR__ . 
'/includes/import/ImportStreamSource.php',
'ImportStringSource' => __DIR__ . 
'/includes/import/ImportStringSource.php',
+   'ImportTextFiles' => __DIR__ . '/maintenance/importTextFiles.php',
'ImportTitleFactory' => __DIR__ . 
'/includes/title/ImportTitleFactory.php',
'IncludableSpecialPage' => __DIR__ . 
'/includes/specialpage/IncludableSpecialPage.php',
'IndexPager' => __DIR__ . '/includes/pager/IndexPager.php',
diff --git a/includes/import/WikiRevision.php b/includes/import/WikiRevision.php
index 8705bb0..d2cf7f6 100644
--- a/includes/import/WikiRevision.php
+++ b/includes/import/WikiRevision.php
@@ -51,6 +51,9 @@
/** @var string */
public $user_text = "";
 
+   /** @var User */
+   public $userObj = null;
+
/** @var string */
public $model = null;
 
@@ -152,6 +155,13 @@
 */
function setUsername( $user ) {
$this->user_text = $user;
+   }
+
+   /**
+* @param User $user
+*/
+   function setUserObj( $user ) {
+   $this->userObj = $user;
}
 
/**
@@ -294,6 +304,13 @@
 */
function getUser() {
return $this->user_text;
+   }
+
+   /**
+* @return User
+*/
+   function getUserObj() {
+   return $this->userObj;
}
 
/**
@@ -446,15 +463,14 @@
$dbw = wfGetDB( DB_MASTER );
 
# Sneak a single revision into place
-   $user = User::newFromName( $this->getUser() );
+   $user = $this->getUserObj() ?: User::newFromName( 
$this->getUser() );
if ( $user ) {
$userId = intval( $user->getId() );
$userText = $user->getName();
-   $userObj = $user;
} else {
$userId = 0;
$userText = $this->getUser();
-   $userObj = new User;
+   $user = new User;
}
 
// avoid memory leak...?
@@ -534,7 +550,7 @@
// countable/oldcountable stuff is handled in 
WikiImporter::finishImportPage
$page->doEditUpdates(
$revision,
-   $userObj,
+   $user,
array( 'created' => $created, 'oldcountable' => 
'no-change' )
);
}
@@ -545,7 +561,7 @@
function importLogItem() {
$dbw = wfGetDB( DB_MASTER );
 
-   $user = User::newFromName( $this->getUser() );
+   $user = $this->getUserObj() ?: User::newFromName( 
$this->getUser() );
if ( $user ) {
$userId = intval( $user->getId() );
$userText = $user->getName();
@@ -644,7 +660,7 @@
return false;
}
 
-   $user = User::newFromName( $this->user_text );
+   $user = $this->getUserObj() ?: User::newFromName( 
$this->getUser() );
 
# Do the actual upload
if ( $archiveName ) {
diff --git a/maintenance/importTextFiles.php b/maintenance/importTextFiles.php
new file mode 100644
index 000..b26eaa5
--- /dev/null
+++ b/maintenance/importTextFiles.php
@@ -0,0 +1,131 @@
+http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @ingroup Maintenance
+ */
+
+require_once __DIR__ . '/Maintenance.php';
+
+/**
+ * Maintenance script which reads in text files
+ * and imports their content to a page of the wiki.
+ *
+ * @ingroup Maintenance
+ */
+class ImportTextFiles extends Maintenance {
+   public function __construct() {
+   parent::__construct();
+   $this->mDescription = "Reads in text files and imports their 
content to pages of the wiki";
+   $this->addOption( 'user', 'Username to which edits should be 
attributed. ' .
+  

[MediaWiki-commits] [Gerrit] logstash: add sentry output plugin - change (operations/puppet)

2016-01-07 Thread Code Review
Gergő Tisza has uploaded a new change for review.

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

Change subject: logstash: add sentry output plugin
..

logstash: add sentry output plugin

Bug: T85239
Change-Id: I6b328e9606a9051ca914ea7df150a6ca0f7221fa
---
A modules/logstash/manifests/output/sentry.pp
A modules/logstash/templates/output/sentry.erb
2 files changed, 64 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/24/263024/1

diff --git a/modules/logstash/manifests/output/sentry.pp 
b/modules/logstash/manifests/output/sentry.pp
new file mode 100644
index 000..5298c5c
--- /dev/null
+++ b/modules/logstash/manifests/output/sentry.pp
@@ -0,0 +1,46 @@
+# == Define: logstash::output::sentry
+#
+# Configure logstash to output to Sentry.
+#
+# You can find the required parameters in the Sentry DSN, which looks like
+# http(s)://:@/
+#
+# == Parameters:
+# - $ensure: Whether the config should exist. Default present.
+# - $host: Sentry server.
+# - $key: Sentry key.
+# - $secret: Sentry secret.
+# - $project_id: Sentry project ID.
+# - $use_ssl: Whether to use HTTPS (defaults to true).
+# - $msg: Sentry event title (defaults to "Message from logstash").
+# - $level_tag: Sentry severity level (defaults to 'error').
+# - $fields_to_tags: Whether to set logstash fields as extra fields
+#   in Sentry (defaults to true).
+#
+# == Sample usage:
+#
+#   logstash::output::sentry { 'sentry':
+#   host   => 'sentry-beta.wmflabs.org',
+#   key=> 'd047f51cfe7f413398762d25093936bc',
+#   secret => '0f39f34792d04ef6b8da025f07a3bac1'
+#   project_id => '2',
+#   }
+#
+define logstash::output::sentry(
+$ensure = present,
+$host,
+$key,
+$secret,
+$project_id,
+$use_ssl= true,
+$msg= undef,
+$level_tag  = undef,
+$fields_to_tags = true,
+) {
+logstash::conf { "output-sentry-${title}":
+ensure   => $ensure,
+content  => template('logstash/output/sentry.erb'),
+priority => $priority,
+}
+}
+# vim:sw=4 ts=4 sts=4 et:
diff --git a/modules/logstash/templates/output/sentry.erb 
b/modules/logstash/templates/output/sentry.erb
new file mode 100644
index 000..ec95a07
--- /dev/null
+++ b/modules/logstash/templates/output/sentry.erb
@@ -0,0 +1,18 @@
+output {
+sentry {
+host   => "<%= @host %>"
+key=> "<%= @key %>"
+secret => "<%= @secret %>"
+project_id => "<%= @project_id %>"
+use_ssl=>  <%= @use_ssl %>
+<% if @msg %>
+msg=> "<%= @msg %>"
+<% end %>
+<% if @level_tag %>
+level_tag  => "<%= @level_tag %>"
+<% end %>
+<% if @fields_to_tags %>
+fields_to_tags =>  <%= @fields_to_tags %>
+<% end %>
+}
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b328e9606a9051ca914ea7df150a6ca0f7221fa
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gergő Tisza 

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


[MediaWiki-commits] [Gerrit] Remove jquery.validate.js, and assorted changes - change (mediawiki/debian)

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

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

Change subject: Remove jquery.validate.js, and assorted changes
..

Remove jquery.validate.js, and assorted changes

* Remove jquery.validate.js due to lintian missing source warnings. It
  has also been removed upstream in 4a40a5d21729008e.
* The version is now +dfsg, and the uscan repack code will add that
  suffix.
* Remove outdated $Id lines from SVN
* Properly suppress lintian false positive for an oojs-ui file

Change-Id: I6cde512dbcf2c33ea2adbcb326ef4cba071f8312
---
M changelog
M copyright
M mediawiki.lintian-overrides
M mediawiki.prerm
A patches/remove_jquery_validate_definition.patch
M patches/series
A source/lintian-overrides
M watch
8 files changed, 21 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/debian 
refs/changes/23/263023/1

diff --git a/changelog b/changelog
index 4b0aa5a..554beb2 100644
--- a/changelog
+++ b/changelog
@@ -1,4 +1,4 @@
-mediawiki (1:1.25.5-1) unstable; urgency=medium
+mediawiki (1:1.25.5+dfsg-1) unstable; urgency=medium
 
   * Upgraded to new upstream release
   * Remove unneeded patches
diff --git a/copyright b/copyright
index 7847968..e1bc31a 100644
--- a/copyright
+++ b/copyright
@@ -2,6 +2,7 @@
 Upstream-Name: MediaWiki
 Upstream-Contact: Kunal Mehta 
 Source: https://releases.wikimedia.org/mediawiki/
+Files-Excluded: resources/lib/jquery/jquery.validate.js
 
 Files: *
 Copyright: 2001-2015, MediaWiki developers
diff --git a/mediawiki.lintian-overrides b/mediawiki.lintian-overrides
index 7959408..6d8ac94 100644
--- a/mediawiki.lintian-overrides
+++ b/mediawiki.lintian-overrides
@@ -1,6 +1,3 @@
-# $Id: mediawiki.lintian-overrides 554 2014-06-26 07:57:33Z tg $
-#-
-
 # this is ok, a Conflicts is not needed
 mediawiki: breaks-without-version mediawiki-extensions-fckeditor
 
@@ -36,6 +33,3 @@
 # MediaWiki has local patches and a newer version
 mediawiki: embedded-php-library 
usr/share/mediawiki/extensions-core/SyntaxHighlight_GeSHi/geshi/geshi.php 
please use php-geshi
 
-# These files are fine
-mediawiki: source-is-missing resources/lib/jquery/jquery.validate.js
-mediawiki: source-is-missing vendor/oojs/oojs-ui/demos/pages/dialogs.js
diff --git a/mediawiki.prerm b/mediawiki.prerm
index 535bcd2..051c146 100644
--- a/mediawiki.prerm
+++ b/mediawiki.prerm
@@ -1,5 +1,4 @@
 #!/bin/sh
-# $Id: mediawiki.prerm 522 2014-03-24 09:00:57Z tg $
 # From MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.prerm,v 1.4 2011/09/06 
20:07:39 tg Exp $
 
 set -e
diff --git a/patches/remove_jquery_validate_definition.patch 
b/patches/remove_jquery_validate_definition.patch
new file mode 100644
index 000..ca1953b
--- /dev/null
+++ b/patches/remove_jquery_validate_definition.patch
@@ -0,0 +1,14 @@
+Index: mediawiki-1.25.5/resources/Resources.php
+===
+--- mediawiki-1.25.5.orig/resources/Resources.php  2015-12-20 
17:02:09.0 -0800
 mediawiki-1.25.5/resources/Resources.php   2016-01-07 16:17:03.573909964 
-0800
+@@ -316,9 +316,6 @@
+   'scripts' => 
'resources/lib/jquery/jquery.ba-throttle-debounce.js',
+   'targets' => array( 'desktop', 'mobile' ),
+   ),
+-  'jquery.validate' => array(
+-  'scripts' => 'resources/lib/jquery/jquery.validate.js',
+-  ),
+   'jquery.xmldom' => array(
+   'scripts' => 'resources/lib/jquery/jquery.xmldom.js',
+   ),
diff --git a/patches/series b/patches/series
index 44ab27c..1646ce2 100644
--- a/patches/series
+++ b/patches/series
@@ -1,2 +1,3 @@
+remove_jquery_validate_definition.patch
 mimetypes.patch
 debian_specific_config.patch
diff --git a/source/lintian-overrides b/source/lintian-overrides
new file mode 100644
index 000..65284de
--- /dev/null
+++ b/source/lintian-overrides
@@ -0,0 +1,2 @@
+# lintian bug
+mediawiki: source-is-missing vendor/oojs/oojs-ui/demos/pages/dialogs.js
diff --git a/watch b/watch
index c448cf6..50e9689 100644
--- a/watch
+++ b/watch
@@ -1,4 +1,4 @@
 version=3
 
-opts="dversionmangle=s/^[0-9]+://;s/\+dfsg$//,pgpsigurlmangle=s/$/.sig/" \
-https://releases.wikimedia.org/mediawiki/1.25/ mediawiki-([0-9.]*).tar.gz \
+opts="dversionmangle=s/^[0-9]+://;s/\+dfsg$//,pgpsigurlmangle=s/$/.sig/,repacksuffix=+dfsg"
 \
+https://releases.wikimedia.org/mediawiki/1.25/ mediawiki-([0-9.]*).tar.gz

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6cde512dbcf2c33ea2adbcb326ef4cba071f8312
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/debian
Gerrit-Branch: master
Gerrit-Owner: Legoktm 

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


[MediaWiki-commits] [Gerrit] etcd.py: remove unused local variable 'e' - change (operations...pybal)

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

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

Change subject: etcd.py: remove unused local variable 'e'
..

etcd.py: remove unused local variable 'e'

Change-Id: I838d047f2e37bc65113c511bb5a0cdddbf544369
---
M pybal/etcd.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/debs/pybal 
refs/changes/22/263022/1

diff --git a/pybal/etcd.py b/pybal/etcd.py
index eee4896..c0f3f20 100644
--- a/pybal/etcd.py
+++ b/pybal/etcd.py
@@ -65,7 +65,7 @@
 else:
 try:
 config = json.loads(response)
-except Exception as e:
+except Exception:
 self.factory.onFailure(failure.Failure())
 else:
 self.factory.onUpdate(config, self.etcdIndex)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I838d047f2e37bc65113c511bb5a0cdddbf544369
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/pybal
Gerrit-Branch: master
Gerrit-Owner: Ema 

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


[MediaWiki-commits] [Gerrit] Remove stray commemts - change (mediawiki/debian)

2016-01-07 Thread Legoktm (Code Review)
Legoktm has submitted this change and it was merged.

Change subject: Remove stray commemts
..


Remove stray commemts

This script has nothing to do with dh_installdeb

Change-Id: I4f92ee3ea6fab3da739af032439c58316ae5c6d0
---
M mediawiki.postinst
1 file changed, 0 insertions(+), 6 deletions(-)

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



diff --git a/mediawiki.postinst b/mediawiki.postinst
index 87cab30..0e7db8a 100644
--- a/mediawiki.postinst
+++ b/mediawiki.postinst
@@ -1,7 +1,4 @@
 #! /bin/sh
-# postinst script for mediawiki
-#
-# see: dh_installdeb(1)
 
 set -e
 
@@ -23,9 +20,6 @@
 exit 1
 ;;
 esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
 
 #DEBHELPER#
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4f92ee3ea6fab3da739af032439c58316ae5c6d0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/debian
Gerrit-Branch: master
Gerrit-Owner: Muehlenhoff 
Gerrit-Reviewer: Legoktm 

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


[MediaWiki-commits] [Gerrit] Remove obsolete preinst - change (mediawiki/debian)

2016-01-07 Thread Legoktm (Code Review)
Legoktm has submitted this change and it was merged.

Change subject: Remove obsolete preinst
..


Remove obsolete preinst

It provides transition code for a very old version (even Debian oldstable
has 1.19.20), so it can be removed.

Change-Id: I4b5053e60266884261e5ce3208c4377a5e3fcbb8
---
D mediawiki.preinst
1 file changed, 0 insertions(+), 45 deletions(-)

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



diff --git a/mediawiki.preinst b/mediawiki.preinst
deleted file mode 100644
index b7774ff..000
--- a/mediawiki.preinst
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-# $Id: mediawiki.preinst 494 2013-12-31 10:36:29Z tg $
-# From MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.preinst,v 1.5 2011/10/06 
08:59:57 tg Exp $
-
-set -e
-
-# This maintainer script can be called the following ways:
-#
-# * new-preinst "install" [$old_version]
-# * new-preinst "upgrade" [$old_version]
-# * old-preinst "abort-upgrade" $new_version
-# Essential packages and Pre-Depends are available. Pre-Depends have
-# been configured once, but may be unpacked or Half-Configured only,
-# or, for "abort-upgrade", Half-Installed if their upgrade failed.
-
-case $1 in
-install|upgrade)
-   # move directories to symlinks (once)
-   if test -z "$2" || \
-   dpkg --compare-versions "$2" lt '1:1.19.9'; then
-   rm -rf /var/lib/mediawiki/extensions/ConfirmEdit
-   rm -rf /var/lib/mediawiki/extensions/Gadgets
-   rm -rf /var/lib/mediawiki/extensions/Nuke
-   rm -rf /var/lib/mediawiki/extensions/ParserFunctions
-   rm -rf /var/lib/mediawiki/extensions/Renameuser
-   rm -rf /var/lib/mediawiki/extensions/Vector
-   rm -rf /var/lib/mediawiki/extensions/WikiEditor
-   fi
-   ;;
-
-abort-upgrade)
-   ;;
-
-*)
-   echo >&2 "preinst called with unknown subcommand '$1'"
-   exit 1
-   ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4b5053e60266884261e5ce3208c4377a5e3fcbb8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/debian
Gerrit-Branch: master
Gerrit-Owner: Muehlenhoff 
Gerrit-Reviewer: Legoktm 

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


[MediaWiki-commits] [Gerrit] Handle the apache config using dh_apache2 - change (mediawiki/debian)

2016-01-07 Thread Legoktm (Code Review)
Legoktm has submitted this change and it was merged.

Change subject: Handle the apache config using dh_apache2
..


Handle the apache config using dh_apache2

The /etc/apache2/conf-available/mediawiki.conf was added, but not enabled
(i.e. symlinked to /etc/apache2/conf-enabled/mediawiki.conf). As a consequence
the mw-setup is not immediately available w/o manual setup steps.

This patch uses the debhelper addon dh_apache2 to manage this automatically,
so a lot of custom postinst code can be dropped.

Change-Id: I803288865978ee5b8e59560598bedab980e9b40d
---
M control
R etc/mediawiki.conf
M mediawiki.postinst
M mediawiki.postrm
M rules
5 files changed, 3 insertions(+), 24 deletions(-)

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



diff --git a/control b/control
index 02430df..15af506 100644
--- a/control
+++ b/control
@@ -4,7 +4,7 @@
 Maintainer: Kunal Mehta 
 Build-Depends: debhelper (>= 9),
  dh-buildinfo,
- xsltproc, docbook-xml, docbook-xsl
+ xsltproc, docbook-xml, docbook-xsl, apache2-dev
 Homepage: https://www.mediawiki.org/
 Standards-Version: 3.9.6
 Vcs-Git: https://gerrit.wikimedia.org/r/mediawiki/debian.git
diff --git a/etc/apache.conf b/etc/mediawiki.conf
similarity index 100%
rename from etc/apache.conf
rename to etc/mediawiki.conf
diff --git a/mediawiki.postinst b/mediawiki.postinst
index 6098f57..87cab30 100644
--- a/mediawiki.postinst
+++ b/mediawiki.postinst
@@ -10,25 +10,6 @@
 
php5enmod mediawiki
 
-   dst=/etc/apache2/conf-available
-   if [ ! -d $dst/ ]; then
-   install -d -m755 $dst/
-   fi
-   if [ -e /etc/$i/conf.d/mediawiki.conf ]; then
-   mv /etc/$i/conf.d/mediawiki.conf $dst/
-   fi
-   if [ ! -e $dst/mediawiki.conf ]; then
-   ln -s /etc/mediawiki/apache.conf \
-   $dst/mediawiki.conf
-   if [ -f /etc/init.d/$i ]; then
-   if which invoke-rc.d >/dev/null 2>&1; then
-   invoke-rc.d $i reload
-   else
-   /etc/init.d/$i reload
-   fi
-   fi
-   fi
-
 chown -R www-data:www-data /var/lib/mediawiki/cache 
/var/lib/mediawiki/images
 chmod 700 /var/lib/mediawiki/cache /var/lib/mediawiki/images
 
diff --git a/mediawiki.postrm b/mediawiki.postrm
index 8e547dc..41b9e7f 100644
--- a/mediawiki.postrm
+++ b/mediawiki.postrm
@@ -7,9 +7,7 @@
 
 case "$1" in
 purge)
-   rm -rf /etc/mediawiki /var/lib/mediawiki \
-   /etc/apache*/conf.d/mediawiki.conf \
-   /etc/apache2/conf-available/mediawiki.conf
+   rm -rf /etc/mediawiki /var/lib/mediawiki
 ;;
 *)
 ;;
diff --git a/rules b/rules
index 6b4e79a..667ce50 100755
--- a/rules
+++ b/rules
@@ -50,4 +50,4 @@
dh_installdeb
 
 %:
-   dh $@
+   dh $@ --with apache2

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I803288865978ee5b8e59560598bedab980e9b40d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/debian
Gerrit-Branch: master
Gerrit-Owner: Muehlenhoff 
Gerrit-Reviewer: Legoktm 

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


[MediaWiki-commits] [Gerrit] network: add sandbox "realm" - change (operations/puppet)

2016-01-07 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has submitted this change and it was merged.

Change subject: network: add sandbox "realm"
..


network: add sandbox "realm"

This is the sandbox "realm", for third-party servers, segregated from
production/frack/labs.

Change-Id: I2c79eb5a2784eedb9d21ae9701d16443f7897b69
---
M manifests/network.pp
1 file changed, 26 insertions(+), 0 deletions(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/manifests/network.pp b/manifests/network.pp
index fe12b77..564b22d 100644
--- a/manifests/network.pp
+++ b/manifests/network.pp
@@ -291,6 +291,32 @@
 },
 },
 },
+'sandbox' => {
+'eqiad' => {
+'public' => {
+'sandbox1-b-eqiad' => {
+'ipv4' => '208.80.155.64/28',
+'ipv6' => '2620:0:861:202::/64',
+},
+},
+},
+'codfw' => {
+'public' => {
+'sandbox1-a-codfw' => {
+'ipv4' => '208.80.152.240/28',
+'ipv6' => '2620:0:860:201::/64',
+},
+},
+},
+'ulsfo' => {
+'public' => {
+'sandbox1-ulsfo' => {
+'ipv4' => '198.35.26.240/28',
+'ipv6' => '2620:0:863:201::/64',
+},
+},
+},
+},
 }
 
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2c79eb5a2784eedb9d21ae9701d16443f7897b69
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis 
Gerrit-Reviewer: Alexandros Kosiaris 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Remove obsolete preinst - change (mediawiki/debian)

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

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

Change subject: Remove obsolete preinst
..

Remove obsolete preinst

It provides transition code for a very old version (even Debian oldstable
has 1.19.20), so it can be removed.

Change-Id: I4b5053e60266884261e5ce3208c4377a5e3fcbb8
---
D mediawiki.preinst
1 file changed, 0 insertions(+), 45 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/debian 
refs/changes/20/263020/1

diff --git a/mediawiki.preinst b/mediawiki.preinst
deleted file mode 100644
index b7774ff..000
--- a/mediawiki.preinst
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-# $Id: mediawiki.preinst 494 2013-12-31 10:36:29Z tg $
-# From MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.preinst,v 1.5 2011/10/06 
08:59:57 tg Exp $
-
-set -e
-
-# This maintainer script can be called the following ways:
-#
-# * new-preinst "install" [$old_version]
-# * new-preinst "upgrade" [$old_version]
-# * old-preinst "abort-upgrade" $new_version
-# Essential packages and Pre-Depends are available. Pre-Depends have
-# been configured once, but may be unpacked or Half-Configured only,
-# or, for "abort-upgrade", Half-Installed if their upgrade failed.
-
-case $1 in
-install|upgrade)
-   # move directories to symlinks (once)
-   if test -z "$2" || \
-   dpkg --compare-versions "$2" lt '1:1.19.9'; then
-   rm -rf /var/lib/mediawiki/extensions/ConfirmEdit
-   rm -rf /var/lib/mediawiki/extensions/Gadgets
-   rm -rf /var/lib/mediawiki/extensions/Nuke
-   rm -rf /var/lib/mediawiki/extensions/ParserFunctions
-   rm -rf /var/lib/mediawiki/extensions/Renameuser
-   rm -rf /var/lib/mediawiki/extensions/Vector
-   rm -rf /var/lib/mediawiki/extensions/WikiEditor
-   fi
-   ;;
-
-abort-upgrade)
-   ;;
-
-*)
-   echo >&2 "preinst called with unknown subcommand '$1'"
-   exit 1
-   ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b5053e60266884261e5ce3208c4377a5e3fcbb8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/debian
Gerrit-Branch: master
Gerrit-Owner: Muehlenhoff 

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


[MediaWiki-commits] [Gerrit] Remove stray commemts - change (mediawiki/debian)

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

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

Change subject: Remove stray commemts
..

Remove stray commemts

This script has nothing to do with dh_installdeb

Change-Id: I4f92ee3ea6fab3da739af032439c58316ae5c6d0
---
M mediawiki.postinst
1 file changed, 0 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/debian 
refs/changes/21/263021/1

diff --git a/mediawiki.postinst b/mediawiki.postinst
index 87cab30..0e7db8a 100644
--- a/mediawiki.postinst
+++ b/mediawiki.postinst
@@ -1,7 +1,4 @@
 #! /bin/sh
-# postinst script for mediawiki
-#
-# see: dh_installdeb(1)
 
 set -e
 
@@ -23,9 +20,6 @@
 exit 1
 ;;
 esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
 
 #DEBHELPER#
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f92ee3ea6fab3da739af032439c58316ae5c6d0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/debian
Gerrit-Branch: master
Gerrit-Owner: Muehlenhoff 

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


[MediaWiki-commits] [Gerrit] Allow setting local email/realname from remote wiki - change (mediawiki...OAuthAuthentication)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Allow setting local email/realname from remote wiki
..


Allow setting local email/realname from remote wiki

Change-Id: I9b34be7b49b5d12919f7c7b59b0e70bdca9bd079
---
M OAuthAuthentication.php
M handlers/AuthenticationHandler.php
M i18n/en.json
M i18n/qqq.json
M specials/SpecialOAuthLogin.php
M tests/OAuthAuthConfigTest.php
M tests/OAuthAuthDBTest.php
M tests/OAuthAuthExternalUserTest.php
M tests/OAuthAuthHooksTest.php
M utils/Hooks.php
M utils/OAuthExternalUser.php
11 files changed, 88 insertions(+), 17 deletions(-)

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



diff --git a/OAuthAuthentication.php b/OAuthAuthentication.php
index 2af6352..4cbbe4e 100644
--- a/OAuthAuthentication.php
+++ b/OAuthAuthentication.php
@@ -96,6 +96,7 @@
 $wgAutoloadClasses['MediaWiki\Extensions\OAuthAuthentication\OAuth1Handler'] = 
"$dir/handlers/OAuth1Handler.php";
 $wgAutoloadClasses['MediaWiki\Extensions\OAuthAuthentication\SessionStore'] = 
"$dir/store/SessionStore.php";
 $wgAutoloadClasses['MediaWiki\Extensions\OAuthAuthentication\PhpSessionStore'] 
= "$dir/store/PhpSessionStore.php";
+$wgAutoloadClasses['MediaWiki\Extensions\OAuthAuthentication\OAuthAuthDBTest'] 
= "$dir/tests/OAuthAuthDBTest.php";
 
 ## i18n
 $wgMessagesDirs['OAuthAuthentication'] = "$dir/i18n";
diff --git a/handlers/AuthenticationHandler.php 
b/handlers/AuthenticationHandler.php
index ddedfb1..a497736 100644
--- a/handlers/AuthenticationHandler.php
+++ b/handlers/AuthenticationHandler.php
@@ -12,6 +12,12 @@
wfGetDB( DB_MASTER )  #TODO: don't do this
);
$exUser->setAccessToken( $accessToken );
+   if ( isset( $identity->realname ) ) {
+   $exUser->setRealname( $identity->realname );
+   }
+   if ( isset( $identity->email ) ) {
+   $exUser->setEmail( $identity->email );
+   }
$exUser->setIdentifyTS( new \MWTimestamp() );
 
if ( $exUser->attached() ) {
@@ -57,9 +63,9 @@
return $status;
}
 
-   /* TODO: Set email, realname, and language, once we can 
get them via /identify
$u->setEmail( $exUser->getEmail() );
-   $u->setRealName( $exUser->getRealName() );
+   $u->setRealName( $exUser->getRealname() );
+   /*
$u->setOption( 'language', $exUser->getLanguage() );
*/
 
@@ -100,9 +106,27 @@
__METHOD__ . ": Associated user is Anon. 
Aborting." );
return \Status::newFatal( 
'oauthauth-login-usernotexists' );
}
-wfDebugLog( "OAA", __METHOD__ . " updating exuser: " . print_r( $exUser, true 
) );
$exUser->updateInDatabase( wfGetDB( DB_MASTER ) );
 
+   $changed = false;
+   // update private data if needed
+   if ( $u->getEmail() !== $exUser->getEmail() ) {
+   if ( $exUser->getEmail() ) {
+   $u->setEmail( $exUser->getEmail() );
+   $u->confirmEmail();
+   } else {
+   $u->invalidateEmail();
+   }
+   $changed = true;
+   }
+   if ( $u->getRealName() !== $exUser->getRealname() ) {
+   $u->setRealName( $exUser->getRealname() );
+   $changed = true;
+   }
+
+   if ( $changed ) {
+   $u->saveSettings();
+   }
$u->invalidateCache();
 
if ( !$wgSecureLogin ) {
diff --git a/i18n/en.json b/i18n/en.json
index f48bd79..eff0b85 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -17,5 +17,7 @@
"oauthauth-login-usernotexists": "The OAuth user is listed as 
connected, but the user does not exist on this wiki.",
"oauthauth-nologin-policy": "This wiki's policy will not let you 
login.",
"oauthauth-localuser-not-allowed": "Local account creation is disabled 
on this wiki. \"$1\" creates an account with OAuth.",
-   "oauthauth-loggout-policy": "You have been logged out because the site 
policy no longer allows you to be logged in."
+   "oauthauth-loggout-policy": "You have been logged out because the site 
policy no longer allows you to be logged in.",
+   "oauthauth-set-email": "Your attached account did not have an email 
address the last time you logged in. Set an email address on $1 to set your 
email address here.",
+   "oauthauth-email-set": "$1. Update your email address on $2 to change 
it."
 }
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 6e7060e..6a6d3ce 1006

[MediaWiki-commits] [Gerrit] network: split frack into its proper subnets - change (operations/puppet)

2016-01-07 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has submitted this change and it was merged.

Change subject: network: split frack into its proper subnets
..


network: split frack into its proper subnets

Change-Id: I352e6bf8c89a5400dc52066ff51bd83011fb94b0
---
M manifests/network.pp
M modules/icinga/manifests/nsca/firewall.pp
2 files changed, 52 insertions(+), 12 deletions(-)

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



diff --git a/manifests/network.pp b/manifests/network.pp
index ed4f96e..fe12b77 100644
--- a/manifests/network.pp
+++ b/manifests/network.pp
@@ -238,25 +238,55 @@
 'frack' => {
 'eqiad' => {
 'public' => {
-'public-frack-eqiad' => {
+'frack-external1-c-eqiad' => {
 'ipv4' => '208.80.155.0/27',
 },
 },
 'private' => {
-'private-frack-eqiad' => {
-'ipv4' => '10.64.40.0/24',
+'frack-payments1-c-eqiad' => {
+'ipv4' => '10.64.40.0/27',
+},
+'frack-bastion1-c-eqiad' => {
+'ipv4' => '10.64.40.32/27',
+},
+'frack-administration1-c-eqiad' => {
+'ipv4' => '10.64.40.64/27',
+},
+'frack-fundraising1-c-eqiad' => {
+'ipv4' => '10.64.40.96/27',
+},
+'frack-DMZ1-c-eqiad' => {
+'ipv4' => '10.64.40.128/27',
+},
+'frack-listenerdmz1-c-eqiad' => {
+'ipv4' => '10.64.40.160/27',
 },
 },
 },
 'codfw' => {
 'public' => {
-'public-frack-codfw' => {
+'frack-external-codfw' => {
 'ipv4' => '208.80.152.224/28',
 },
 },
 'private' => {
-'private-frack-codfw' => {
-'ipv4' => '10.195.0.0/25',
+'frack-payments-codfw' => {
+'ipv4' => '10.195.0.0/27',
+},
+'frack-bastion-codfw' => {
+'ipv4' => '10.195.0.64/29',
+},
+'frack-administration-codfw' => {
+'ipv4' => '10.195.0.72/29',
+},
+'frack-fundraising-codfw' => {
+'ipv4' => '10.195.0.32/27',
+},
+'frack-listenerdmz-codfw' => {
+'ipv4' => '10.195.0.80/29',
+},
+'frack-management-codfw' => {
+'ipv4' => '10.195.0.96/27',
 },
 },
 },
diff --git a/modules/icinga/manifests/nsca/firewall.pp 
b/modules/icinga/manifests/nsca/firewall.pp
index 1ef6621..4bfac9a 100644
--- a/modules/icinga/manifests/nsca/firewall.pp
+++ b/modules/icinga/manifests/nsca/firewall.pp
@@ -6,8 +6,6 @@
 # NSCA on port 5667
 ferm::rule { 'ncsa_allowed':
 rule => 'saddr (127.0.0.1 \
-  $CODFW_PRIVATE_PRIVATE_FRACK_CODFW \
-  $CODFW_PUBLIC_PUBLIC_FRACK_CODFW \
   $EQIAD_PRIVATE_ANALYTICS1_A_EQIAD \
   $EQIAD_PRIVATE_ANALYTICS1_B_EQIAD \
   $EQIAD_PRIVATE_ANALYTICS1_C_EQIAD \
@@ -20,16 +18,28 @@
   $EQIAD_PRIVATE_PRIVATE1_B_EQIAD \
   $EQIAD_PRIVATE_PRIVATE1_C_EQIAD \
   $EQIAD_PRIVATE_PRIVATE1_D_EQIAD \
-  $EQIAD_PRIVATE_PRIVATE_FRACK_EQIAD \
   $EQIAD_PUBLIC_PUBLIC1_A_EQIAD \
   $EQIAD_PUBLIC_PUBLIC1_B_EQIAD \
   $EQIAD_PUBLIC_PUBLIC1_C_EQIAD \
   $EQIAD_PUBLIC_PUBLIC1_D_EQIAD \
-  $EQIAD_PUBLIC_PUBLIC_FRACK_EQIAD \
   $ESAMS_PRIVATE_PRIVATE1_ESAMS \
   $ESAMS_PUBLIC_PUBLIC1_ESAMS \
   $ULSFO_PRIVATE_PRIVATE1_ULSFO \
-  $ULSFO_PUBLIC_PUBLIC1_ULSFO) \
-  proto tcp dport 5667 ACCEPT;'
+  $ULSFO_PUBLIC_PUBLIC1_ULSFO \
+  $EQIAD_PUBLIC_FRACK_EXTERNAL1_C_EQIAD \
+  $EQIAD_PRIVATE_FRACK_PAYMENTS1_C_EQIAD \
+  $EQIAD_PRIVATE_FRACK_BASTION1_C_EQIAD \
+  $EQIAD_PRIVATE_FRACK_ADMINISTRATION1_C_EQIAD \
+  $EQIAD_PRIVATE_FRACK_FUNDRAISING1_C_EQIAD \
+  $EQIAD_PRIVATE_FRACK_DMZ1_C_EQIAD \
+  $EQIAD_PRIVATE_FRACK_LISTENERDMZ1_C_EQIAD \
+  $CODFW_PUBLIC_FRACK_EXTERNAL_CODFW \
+  $CODFW_PRIVATE_FRACK_PAYMENTS_CODFW \
+  $CODFW_PRIVATE_FRACK_BASTION_CODFW \
+  $CODFW_PRIVATE_FRACK_ADMINISTRATION_CODFW \
+  $CODFW_PRIVATE_FRACK_FUNDRAISING_CODFW \
+  $CODFW_PRIVATE_FRACK_LIST

[MediaWiki-commits] [Gerrit] Sentry: really create group - change (operations/puppet)

2016-01-07 Thread Code Review
Gergő Tisza has uploaded a new change for review.

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

Change subject: Sentry: really create group
..

Sentry: really create group

Apparently groups do not default to 'present'.

Bug: T85239
Change-Id: Ic8824667a74de2ae15ad7e7c58b6795ce202e625
---
M modules/sentry/manifests/init.pp
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/19/263019/1

diff --git a/modules/sentry/manifests/init.pp b/modules/sentry/manifests/init.pp
index a2d1647..91d99fb 100644
--- a/modules/sentry/manifests/init.pp
+++ b/modules/sentry/manifests/init.pp
@@ -46,6 +46,7 @@
 }
 
 group { 'sentry':
+ensure => present,
 system => true,
 }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic8824667a74de2ae15ad7e7c58b6795ce202e625
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gergő Tisza 

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


[MediaWiki-commits] [Gerrit] Handle the apache config using dh_apache2 - change (mediawiki/debian)

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

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

Change subject: Handle the apache config using dh_apache2
..

Handle the apache config using dh_apache2

The /etc/apache2/conf-available/mediawiki.conf was added, but not enabled
(i.e. symlinked to /etc/apache2/conf-enabled/mediawiki.conf). As a consequence
the mw-setup is not immediately available w/o manual setup steps.

This patch uses the debhelper addon dh_apache2 to manage this automatically,
so a lot of custom postinst code can be dropped.

Change-Id: I803288865978ee5b8e59560598bedab980e9b40d
---
M control
R etc/mediawiki.conf
M mediawiki.postinst
M mediawiki.postrm
M rules
5 files changed, 3 insertions(+), 24 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/debian 
refs/changes/18/263018/1

diff --git a/control b/control
index 02430df..15af506 100644
--- a/control
+++ b/control
@@ -4,7 +4,7 @@
 Maintainer: Kunal Mehta 
 Build-Depends: debhelper (>= 9),
  dh-buildinfo,
- xsltproc, docbook-xml, docbook-xsl
+ xsltproc, docbook-xml, docbook-xsl, apache2-dev
 Homepage: https://www.mediawiki.org/
 Standards-Version: 3.9.6
 Vcs-Git: https://gerrit.wikimedia.org/r/mediawiki/debian.git
diff --git a/etc/apache.conf b/etc/mediawiki.conf
similarity index 100%
rename from etc/apache.conf
rename to etc/mediawiki.conf
diff --git a/mediawiki.postinst b/mediawiki.postinst
index 6098f57..87cab30 100644
--- a/mediawiki.postinst
+++ b/mediawiki.postinst
@@ -10,25 +10,6 @@
 
php5enmod mediawiki
 
-   dst=/etc/apache2/conf-available
-   if [ ! -d $dst/ ]; then
-   install -d -m755 $dst/
-   fi
-   if [ -e /etc/$i/conf.d/mediawiki.conf ]; then
-   mv /etc/$i/conf.d/mediawiki.conf $dst/
-   fi
-   if [ ! -e $dst/mediawiki.conf ]; then
-   ln -s /etc/mediawiki/apache.conf \
-   $dst/mediawiki.conf
-   if [ -f /etc/init.d/$i ]; then
-   if which invoke-rc.d >/dev/null 2>&1; then
-   invoke-rc.d $i reload
-   else
-   /etc/init.d/$i reload
-   fi
-   fi
-   fi
-
 chown -R www-data:www-data /var/lib/mediawiki/cache 
/var/lib/mediawiki/images
 chmod 700 /var/lib/mediawiki/cache /var/lib/mediawiki/images
 
diff --git a/mediawiki.postrm b/mediawiki.postrm
index 8e547dc..41b9e7f 100644
--- a/mediawiki.postrm
+++ b/mediawiki.postrm
@@ -7,9 +7,7 @@
 
 case "$1" in
 purge)
-   rm -rf /etc/mediawiki /var/lib/mediawiki \
-   /etc/apache*/conf.d/mediawiki.conf \
-   /etc/apache2/conf-available/mediawiki.conf
+   rm -rf /etc/mediawiki /var/lib/mediawiki
 ;;
 *)
 ;;
diff --git a/rules b/rules
index 6b4e79a..667ce50 100755
--- a/rules
+++ b/rules
@@ -50,4 +50,4 @@
dh_installdeb
 
 %:
-   dh $@
+   dh $@ --with apache2

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I803288865978ee5b8e59560598bedab980e9b40d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/debian
Gerrit-Branch: master
Gerrit-Owner: Muehlenhoff 

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


[MediaWiki-commits] [Gerrit] Fixed viewer only displaying every nth image after reopening - change (mediawiki...MultimediaViewer)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Fixed viewer only displaying every nth image after reopening
..


Fixed viewer only displaying every nth image after reopening

Added code to detach emit calls when the interface is closed.

Bug: T122785
Change-Id: Ifd97aebe7aa01a152817100f301a80a9b6ac83a3
---
M resources/mmv/mmv.lightboxinterface.js
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Gergő Tisza: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/mmv/mmv.lightboxinterface.js 
b/resources/mmv/mmv.lightboxinterface.js
index 18b0474..d866d1e 100644
--- a/resources/mmv/mmv.lightboxinterface.js
+++ b/resources/mmv/mmv.lightboxinterface.js
@@ -276,6 +276,11 @@
 
this.clearEvents();
 
+   this.buttons.disconnect( this, {
+   'next': [ 'emit', 'next' ],
+   'prev': [ 'emit', 'prev' ]
+   } );
+
// We trigger this event on the document because unattach() can 
run
// when the interface is unattached
$( document ).trigger( $.Event( 'mmv-close' ) )

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifd97aebe7aa01a152817100f301a80a9b6ac83a3
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/extensions/MultimediaViewer
Gerrit-Branch: master
Gerrit-Owner: Mhutti1 
Gerrit-Reviewer: Gergő Tisza 
Gerrit-Reviewer: Mhutti1 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] extdist: Unbreak - change (operations/puppet)

2016-01-07 Thread Yuvipanda (Code Review)
Yuvipanda has submitted this change and it was merged.

Change subject: extdist: Unbreak
..


extdist: Unbreak

After c127ad9f2819a, $log_path is no longer defined.

And ensure $log_dir is a directory.

Bug: T123090
Change-Id: I543771522ea0ecf27e3463768600b9849fd8e46d
---
M modules/extdist/manifests/init.pp
1 file changed, 2 insertions(+), 8 deletions(-)

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



diff --git a/modules/extdist/manifests/init.pp 
b/modules/extdist/manifests/init.pp
index a3c6249..88fd225 100644
--- a/modules/extdist/manifests/init.pp
+++ b/modules/extdist/manifests/init.pp
@@ -44,14 +44,8 @@
 require => User['extdist']
 }
 
-file { $log_path:
-ensure  => present,
-owner   => 'extdist',
-group   => 'www-data',
-require => User['extdist']
-}
-
-file { [$dist_dir, $clone_dir, $src_path, $pid_folder, $composer_dir]:
+file { [$dist_dir, $clone_dir, $src_path,
+$pid_folder, $composer_dir, $log_dir]:
 ensure => directory,
 owner  => 'extdist',
 group  => 'www-data',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I543771522ea0ecf27e3463768600b9849fd8e46d
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Legoktm 
Gerrit-Reviewer: Yuvipanda 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Hygiene: refer to interfaces not implementations - change (apps...java-mwapi)

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

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

Change subject: Hygiene: refer to interfaces not implementations
..

Hygiene: refer to interfaces not implementations

No functional changes intended. Prefer interfaces to concrete
implementations for APIs and reference holding.

Change-Id: I1c564fa24cafe9ec68a96e263dfa3568a7c4509a
---
M lib/src/main/java/org/mediawiki/api/json/Api.java
M lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java
M lib/src/test/java/org/mediawiki/json/ApiTest.java
3 files changed, 7 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/java-mwapi 
refs/changes/17/263017/1

diff --git a/lib/src/main/java/org/mediawiki/api/json/Api.java 
b/lib/src/main/java/org/mediawiki/api/json/Api.java
index 0dcff38..a53863c 100644
--- a/lib/src/main/java/org/mediawiki/api/json/Api.java
+++ b/lib/src/main/java/org/mediawiki/api/json/Api.java
@@ -34,7 +34,7 @@
 /**
  * Any custom headers, if specified by the appropriate constructor
  */
-private HashMap customHeaders;
+private Map customHeaders;
 
 /**
  * Default API endpoint
@@ -78,7 +78,7 @@
  * @param userAgent Custom User-Agent to simplify identification of 
consuming application
  * @param customHeaders Any extra headers to send with each request, e.g. 
User-Agent.
  */
-public Api(final String domain, final String userAgent, HashMap customHeaders) {
+public Api(final String domain, final String userAgent, Map customHeaders) {
 this(domain, true, DEFAULT_ENDPOINT, customHeaders);
 this.customHeaders.put("User-Agent", userAgent);
 }
@@ -92,7 +92,7 @@
  * @param domain Domain name of the MediaWiki API to connect to
  * @param customHeaders Any extra headers to send with each request, e.g. 
User-Agent.
  */
-public Api(final String domain, HashMap customHeaders) {
+public Api(final String domain, Map customHeaders) {
 this(domain, true, DEFAULT_ENDPOINT, customHeaders);
 }
 
@@ -130,7 +130,7 @@
  * @param endpointPath Path to the api.php file. Require preceding slash.
  * @param customHeaders Any extra headers to send with each request, e.g. 
User-Agent.
  */
-public Api(final String domain, final boolean useSecure, final String 
endpointPath, HashMap customHeaders) {
+public Api(final String domain, final boolean useSecure, final String 
endpointPath, Map customHeaders) {
 String protocol;
 if (useSecure) {
 protocol = "https";
diff --git a/lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java 
b/lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java
index 5b9adba..4abe105 100644
--- a/lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java
+++ b/lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java
@@ -4,6 +4,7 @@
 
 import org.junit.Test;
 import java.util.HashMap;
+import java.util.Map;
 
 /**
  * Tests for different ways to construct the Api object.
@@ -31,7 +32,7 @@
 "https://test.wikipedia.org/w/api.php";,
 new Api("test.wikipedia.org", 
"java-mwapi-UA").getApiUrl().toString()
 );
-HashMap additionalHeaders = new java.util.HashMap<>();
+Map additionalHeaders = new java.util.HashMap<>();
 additionalHeaders.put("X-Java-Mwapi-UnitTest", "java-mwapi-UA");
 assertEquals(
 "https://test.wikipedia.org/w/api.php";,
diff --git a/lib/src/test/java/org/mediawiki/json/ApiTest.java 
b/lib/src/test/java/org/mediawiki/json/ApiTest.java
index 37f715e..67dff50 100644
--- a/lib/src/test/java/org/mediawiki/json/ApiTest.java
+++ b/lib/src/test/java/org/mediawiki/json/ApiTest.java
@@ -167,7 +167,7 @@
  * @return API with test-friendly construction
  */
 public Api getApi() {
-HashMap getApi = new HashMap<>();
+Map getApi = new HashMap<>();
 getApi.put("X-Java-Mwapi-UnitTest", "java-mwapi-UA");
 return new Api("test.wikipedia.org", "java-mwapi-UA", getApi);
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1c564fa24cafe9ec68a96e263dfa3568a7c4509a
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/java-mwapi
Gerrit-Branch: master
Gerrit-Owner: Niedzielski 

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


[MediaWiki-commits] [Gerrit] Hygiene: refer to interfaces not implementations - change (apps...java-mwapi)

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

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

Change subject: Hygiene: refer to interfaces not implementations
..

Hygiene: refer to interfaces not implementations

No functional changes intended. Prefer interfaces to concrete
implementations for APIs and reference holding.

Change-Id: I7faac58f84eba251ac00db0f38f190f2b2d1e483
---
M lib/src/main/java/org/mediawiki/api/json/Api.java
M lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java
M lib/src/test/java/org/mediawiki/json/ApiTest.java
3 files changed, 7 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/java-mwapi 
refs/changes/16/263016/1

diff --git a/lib/src/main/java/org/mediawiki/api/json/Api.java 
b/lib/src/main/java/org/mediawiki/api/json/Api.java
index 0dcff38..a53863c 100644
--- a/lib/src/main/java/org/mediawiki/api/json/Api.java
+++ b/lib/src/main/java/org/mediawiki/api/json/Api.java
@@ -34,7 +34,7 @@
 /**
  * Any custom headers, if specified by the appropriate constructor
  */
-private HashMap customHeaders;
+private Map customHeaders;
 
 /**
  * Default API endpoint
@@ -78,7 +78,7 @@
  * @param userAgent Custom User-Agent to simplify identification of 
consuming application
  * @param customHeaders Any extra headers to send with each request, e.g. 
User-Agent.
  */
-public Api(final String domain, final String userAgent, HashMap customHeaders) {
+public Api(final String domain, final String userAgent, Map customHeaders) {
 this(domain, true, DEFAULT_ENDPOINT, customHeaders);
 this.customHeaders.put("User-Agent", userAgent);
 }
@@ -92,7 +92,7 @@
  * @param domain Domain name of the MediaWiki API to connect to
  * @param customHeaders Any extra headers to send with each request, e.g. 
User-Agent.
  */
-public Api(final String domain, HashMap customHeaders) {
+public Api(final String domain, Map customHeaders) {
 this(domain, true, DEFAULT_ENDPOINT, customHeaders);
 }
 
@@ -130,7 +130,7 @@
  * @param endpointPath Path to the api.php file. Require preceding slash.
  * @param customHeaders Any extra headers to send with each request, e.g. 
User-Agent.
  */
-public Api(final String domain, final boolean useSecure, final String 
endpointPath, HashMap customHeaders) {
+public Api(final String domain, final boolean useSecure, final String 
endpointPath, Map customHeaders) {
 String protocol;
 if (useSecure) {
 protocol = "https";
diff --git a/lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java 
b/lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java
index 5b9adba..4abe105 100644
--- a/lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java
+++ b/lib/src/test/java/org/mediawiki/json/ApiConstructionTest.java
@@ -4,6 +4,7 @@
 
 import org.junit.Test;
 import java.util.HashMap;
+import java.util.Map;
 
 /**
  * Tests for different ways to construct the Api object.
@@ -31,7 +32,7 @@
 "https://test.wikipedia.org/w/api.php";,
 new Api("test.wikipedia.org", 
"java-mwapi-UA").getApiUrl().toString()
 );
-HashMap additionalHeaders = new java.util.HashMap<>();
+Map additionalHeaders = new java.util.HashMap<>();
 additionalHeaders.put("X-Java-Mwapi-UnitTest", "java-mwapi-UA");
 assertEquals(
 "https://test.wikipedia.org/w/api.php";,
diff --git a/lib/src/test/java/org/mediawiki/json/ApiTest.java 
b/lib/src/test/java/org/mediawiki/json/ApiTest.java
index 37f715e..67dff50 100644
--- a/lib/src/test/java/org/mediawiki/json/ApiTest.java
+++ b/lib/src/test/java/org/mediawiki/json/ApiTest.java
@@ -167,7 +167,7 @@
  * @return API with test-friendly construction
  */
 public Api getApi() {
-HashMap getApi = new HashMap<>();
+Map getApi = new HashMap<>();
 getApi.put("X-Java-Mwapi-UnitTest", "java-mwapi-UA");
 return new Api("test.wikipedia.org", "java-mwapi-UA", getApi);
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7faac58f84eba251ac00db0f38f190f2b2d1e483
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/java-mwapi
Gerrit-Branch: master
Gerrit-Owner: Sniedzielski 

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


[MediaWiki-commits] [Gerrit] Apply the mathoid role on scb - change (operations/puppet)

2016-01-07 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has submitted this change and it was merged.

Change subject: Apply the mathoid role on scb
..


Apply the mathoid role on scb

apply the mathoid role on scb in order to migrate it from sca
Amend the conftool data as well

Change-Id: I16e73a0bff037011fd6092a860b6e1ebe4cea1e0
---
M conftool-data/nodes/eqiad.yaml
M manifests/role/scb.pp
2 files changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/conftool-data/nodes/eqiad.yaml b/conftool-data/nodes/eqiad.yaml
index ab5c00f..28f5ba1 100644
--- a/conftool-data/nodes/eqiad.yaml
+++ b/conftool-data/nodes/eqiad.yaml
@@ -260,8 +260,8 @@
   sca1001.eqiad.wmnet: [citoid, cxserver, graphoid, mathoid, zotero]
   sca1002.eqiad.wmnet: [citoid, cxserver, graphoid, mathoid, zotero]
 scb:
-  scb1001.eqiad.wmnet: []
-  scb1002.eqiad.wmnet: []
+  scb1001.eqiad.wmnet: [mathoid]
+  scb1002.eqiad.wmnet: [mathoid]
 dns:
   chromium.wikimedia.org: [pdns_recursor]
   hydrogen.wikimedia.org: [pdns_recursor]
diff --git a/manifests/role/scb.pp b/manifests/role/scb.pp
index 1a49d51..c4e2286 100644
--- a/manifests/role/scb.pp
+++ b/manifests/role/scb.pp
@@ -2,6 +2,7 @@
 # This class is an intermediate step to better design
 class role::scb {
 include role::mobileapps
+include role::mathoid
 
 include standard
 include base::firewall

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I16e73a0bff037011fd6092a860b6e1ebe4cea1e0
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris 
Gerrit-Reviewer: Alexandros Kosiaris 

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


[MediaWiki-commits] [Gerrit] Apply the mathoid role on scb - change (operations/puppet)

2016-01-07 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has uploaded a new change for review.

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

Change subject: Apply the mathoid role on scb
..

Apply the mathoid role on scb

apply the mathoid role on scb in order to migrate it from sca
Amend the conftool data as well

Change-Id: I16e73a0bff037011fd6092a860b6e1ebe4cea1e0
---
M conftool-data/nodes/eqiad.yaml
M manifests/role/scb.pp
2 files changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/15/263015/1

diff --git a/conftool-data/nodes/eqiad.yaml b/conftool-data/nodes/eqiad.yaml
index ab5c00f..28f5ba1 100644
--- a/conftool-data/nodes/eqiad.yaml
+++ b/conftool-data/nodes/eqiad.yaml
@@ -260,8 +260,8 @@
   sca1001.eqiad.wmnet: [citoid, cxserver, graphoid, mathoid, zotero]
   sca1002.eqiad.wmnet: [citoid, cxserver, graphoid, mathoid, zotero]
 scb:
-  scb1001.eqiad.wmnet: []
-  scb1002.eqiad.wmnet: []
+  scb1001.eqiad.wmnet: [mathoid]
+  scb1002.eqiad.wmnet: [mathoid]
 dns:
   chromium.wikimedia.org: [pdns_recursor]
   hydrogen.wikimedia.org: [pdns_recursor]
diff --git a/manifests/role/scb.pp b/manifests/role/scb.pp
index 1a49d51..c4e2286 100644
--- a/manifests/role/scb.pp
+++ b/manifests/role/scb.pp
@@ -2,6 +2,7 @@
 # This class is an intermediate step to better design
 class role::scb {
 include role::mobileapps
+include role::mathoid
 
 include standard
 include base::firewall

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I16e73a0bff037011fd6092a860b6e1ebe4cea1e0
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris 

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


[MediaWiki-commits] [Gerrit] Remove unused jquery.validate module - change (mediawiki/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Remove unused jquery.validate module
..


Remove unused jquery.validate module

jquery.validate was added in r99929, presumably for Gadgets 3.0 work.
However it's entirely unused in core, extensions in Gerrit, and on
Wikimedia sites. Even if Gadgets 3.0 were to require it, it should
probably live in the Gadgets extension rather than core.

Change-Id: Iebe09e853a6eb67af4a06b296606a8193df18d34
---
M resources/Resources.php
D resources/lib/jquery/jquery.validate.js
2 files changed, 0 insertions(+), 1,169 deletions(-)

Approvals:
  Anomie: Looks good to me, approved
  LFaraone: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/resources/Resources.php b/resources/Resources.php
index e8cb843..bbcf8b5 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -355,9 +355,6 @@
'scripts' => 
'resources/lib/jquery/jquery.ba-throttle-debounce.js',
'targets' => array( 'desktop', 'mobile' ),
),
-   'jquery.validate' => array(
-   'scripts' => 'resources/lib/jquery/jquery.validate.js',
-   ),
'jquery.xmldom' => array(
'scripts' => 'resources/lib/jquery/jquery.xmldom.js',
),
diff --git a/resources/lib/jquery/jquery.validate.js 
b/resources/lib/jquery/jquery.validate.js
deleted file mode 100644
index 72296a6..000
--- a/resources/lib/jquery/jquery.validate.js
+++ /dev/null
@@ -1,1166 +0,0 @@
-/**
- * jQuery Validation Plugin 1.8.1
- *
- * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
- * http://docs.jquery.com/Plugins/Validation
- *
- * Copyright (c) 2006 - 2011 Jörn Zaefferer
- *
- * Dual licensed under the MIT and GPL licenses:
- *   http://www.opensource.org/licenses/mit-license.php
- *   http://www.gnu.org/licenses/gpl.html
- */
-
-(function($) {
-
-$.extend($.fn, {
-   // http://docs.jquery.com/Plugins/Validation/validate
-   validate: function( options ) {
-
-   // if nothing is selected, return nothing; can't chain anyway
-   if (!this.length) {
-   options && options.debug && window.console && 
console.warn( "nothing selected, can't validate, returning nothing" );
-   return;
-   }
-
-   // check if a validator for this form was already created
-   var validator = $.data(this[0], 'validator');
-   if ( validator ) {
-   return validator;
-   }
-
-   validator = new $.validator( options, this[0] );
-   $.data(this[0], 'validator', validator);
-
-   if ( validator.settings.onsubmit ) {
-
-   // allow suppresing validation by adding a cancel class 
to the submit button
-   this.find("input, 
button").filter(".cancel").click(function() {
-   validator.cancelSubmit = true;
-   });
-
-   // when a submitHandler is used, capture the submitting 
button
-   if (validator.settings.submitHandler) {
-   this.find("input, 
button").filter(":submit").click(function() {
-   validator.submitButton = this;
-   });
-   }
-
-   // validate the form on submit
-   this.submit( function( event ) {
-   if ( validator.settings.debug )
-   // prevent form submit to be able to 
see console output
-   event.preventDefault();
-
-   function handle() {
-   if ( validator.settings.submitHandler ) 
{
-   if (validator.submitButton) {
-   // insert a hidden 
input as a replacement for the missing submit button
-   var hidden = $("").attr("name", 
validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);
-   }
-   
validator.settings.submitHandler.call( validator, validator.currentForm );
-   if (validator.submitButton) {
-   // and clean up 
afterwards; thanks to no-block-scope, hidden can be referenced
-   hidden.remove();
-   }
-   return false;
-   }
-   

[MediaWiki-commits] [Gerrit] Release 0.4.0 - change (mediawiki...mathoid)

2016-01-07 Thread Mobrovac (Code Review)
Mobrovac has submitted this change and it was merged.

Change subject: Release 0.4.0
..


Release 0.4.0

Change-Id: Iec0eec54ffd38d0d3a5972d7599af1281c6e9364
---
M package.json
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/package.json b/package.json
index a12c9bb..a1094c0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "mathoid",
-  "version": "0.3.1",
+  "version": "0.4.0",
   "description": "Render TeX to SVG and MathML using MathJax. Based on 
svgtex.",
   "main": "./app.js",
   "scripts": {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iec0eec54ffd38d0d3a5972d7599af1281c6e9364
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mathoid
Gerrit-Branch: master
Gerrit-Owner: Mobrovac 
Gerrit-Reviewer: Mobrovac 
Gerrit-Reviewer: Physikerwelt 

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


[MediaWiki-commits] [Gerrit] Release 0.4.0 - change (mediawiki...mathoid)

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

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

Change subject: Release 0.4.0
..

Release 0.4.0

Change-Id: Iec0eec54ffd38d0d3a5972d7599af1281c6e9364
---
M package.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mathoid 
refs/changes/14/263014/1

diff --git a/package.json b/package.json
index a12c9bb..a1094c0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "mathoid",
-  "version": "0.3.1",
+  "version": "0.4.0",
   "description": "Render TeX to SVG and MathML using MathJax. Based on 
svgtex.",
   "main": "./app.js",
   "scripts": {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iec0eec54ffd38d0d3a5972d7599af1281c6e9364
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mathoid
Gerrit-Branch: master
Gerrit-Owner: Mobrovac 

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


[MediaWiki-commits] [Gerrit] Update mathoid to 2a62d79 - change (mediawiki...deploy)

2016-01-07 Thread Mobrovac (Code Review)
Mobrovac has submitted this change and it was merged.

Change subject: Update mathoid to 2a62d79
..


Update mathoid to 2a62d79

List of changes:
a93b408 Release v0.3.0
64bdc08 Release v0.3.1
2a62d79 Switch to Node 4.2 and Jessie
xxx Update node module dependencies

Change-Id: I0c97f56a0a9ff9b5bac6782056438d2a618e976a
---
A node_modules/.bin/esparse
A node_modules/.bin/esvalidate
A node_modules/ansi-regex/license
M node_modules/ansi-regex/package.json
M node_modules/bluebird/package.json
M node_modules/body-parser/node_modules/bytes/package.json
M node_modules/body-parser/node_modules/depd/package.json
M node_modules/body-parser/node_modules/iconv-lite/package.json
M node_modules/body-parser/node_modules/qs/package.json
M node_modules/body-parser/node_modules/raw-body/package.json
M node_modules/body-parser/package.json
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/.dntrc
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/appveyor.yml
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/doc/.build.sh
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/include_dirs.js
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_callbacks.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_callbacks_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_callbacks_pre_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_converters.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_converters_43_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_converters_pre_43_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_implementation_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_implementation_pre_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_maybe_43_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_maybe_pre_43_inl.h
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_new.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_object_wrap.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_persistent_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_persistent_pre_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_string_bytes.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_typedarray_contents.h
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_weak.h
A node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/package.json
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/tools/1to2.js
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/tools/package.json
M node_modules/bunyan/node_modules/dtrace-provider/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/mkdirp/node_modules/minimist/package.json
M node_modules/bunyan/node_modules/mv/node_modules/mkdirp/package.json
M node_modules/bunyan/node_modules/mv/node_modules/ncp/package.json
A 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/LICENSE
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/common.js
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json
A 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/LICENSE
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json
A 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/once/LICENSE
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/once/package.json
A 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/license
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/wrappy/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_m

[MediaWiki-commits] [Gerrit] Update mathoid to 2a62d79 - change (mediawiki...deploy)

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

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

Change subject: Update mathoid to 2a62d79
..

Update mathoid to 2a62d79

List of changes:
a93b408 Release v0.3.0
64bdc08 Release v0.3.1
2a62d79 Switch to Node 4.2 and Jessie
xxx Update node module dependencies

Change-Id: I0c97f56a0a9ff9b5bac6782056438d2a618e976a
---
A node_modules/.bin/esparse
A node_modules/.bin/esvalidate
A node_modules/ansi-regex/license
M node_modules/ansi-regex/package.json
M node_modules/bluebird/package.json
M node_modules/body-parser/node_modules/bytes/package.json
M node_modules/body-parser/node_modules/depd/package.json
M node_modules/body-parser/node_modules/iconv-lite/package.json
M node_modules/body-parser/node_modules/qs/package.json
M node_modules/body-parser/node_modules/raw-body/package.json
M node_modules/body-parser/package.json
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/.dntrc
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/appveyor.yml
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/doc/.build.sh
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/include_dirs.js
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_callbacks.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_callbacks_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_callbacks_pre_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_converters.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_converters_43_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_converters_pre_43_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_implementation_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_implementation_pre_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_maybe_43_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_maybe_pre_43_inl.h
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_new.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_object_wrap.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_persistent_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_persistent_pre_12_inl.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_string_bytes.h
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_typedarray_contents.h
R node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/nan_weak.h
A node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/package.json
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/tools/1to2.js
R 
node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/tools/package.json
M node_modules/bunyan/node_modules/dtrace-provider/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/mkdirp/node_modules/minimist/package.json
M node_modules/bunyan/node_modules/mv/node_modules/mkdirp/package.json
M node_modules/bunyan/node_modules/mv/node_modules/ncp/package.json
A 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/LICENSE
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/common.js
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json
A 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/LICENSE
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json
A 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/once/LICENSE
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/once/package.json
A 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/license
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json
M 
node_modules/bunyan/node_modules/mv/node_modules/rimraf/node_modules/glob/node_modules/wrappy/package.json
M 
node_modules/bunyan/node_modu

[MediaWiki-commits] [Gerrit] Add Sentry hiera rules to deployment-prep - change (operations/puppet)

2016-01-07 Thread Code Review
Gergő Tisza has uploaded a new change for review.

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

Change subject: Add Sentry hiera rules to deployment-prep
..

Add Sentry hiera rules to deployment-prep

Bug: T85239
Change-Id: Idb985b03d8c6f23ec641b353efeb642bcfec6bb6
---
A hieradata/labs/deployment-prep/host/deployment-sentry01.yaml
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/12/263012/1

diff --git a/hieradata/labs/deployment-prep/host/deployment-sentry01.yaml 
b/hieradata/labs/deployment-prep/host/deployment-sentry01.yaml
new file mode 100644
index 000..2939e4d
--- /dev/null
+++ b/hieradata/labs/deployment-prep/host/deployment-sentry01.yaml
@@ -0,0 +1,3 @@
+sentry::server_name: "sentry-beta.wmflabs.org"
+sentry::admin_email: 'gti...@wikimedia.org'
+

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb985b03d8c6f23ec641b353efeb642bcfec6bb6
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gergő Tisza 

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


[MediaWiki-commits] [Gerrit] Switch to Node 4.2 and Jessie - change (mediawiki...mathoid)

2016-01-07 Thread Mobrovac (Code Review)
Mobrovac has submitted this change and it was merged.

Change subject: Switch to Node 4.2 and Jessie
..


Switch to Node 4.2 and Jessie

Change-Id: I7cd9f8d39948176f11ba27f77065dd615a4ae7d1
---
M package.json
1 file changed, 3 insertions(+), 2 deletions(-)

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



diff --git a/package.json b/package.json
index d6767df..a12c9bb 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
 "js-yaml": "^3.4.3",
 "preq": "^0.4.4",
 "service-runner": "^0.3.5",
-"mathoid-mathjax-node": "0.4.4-wmf",
+"mathoid-mathjax-node": "0.4.4",
 "texvcinfo": "^0.3.3"
   },
   "devDependencies": {
@@ -58,7 +58,8 @@
 "swagger-router": "^0.2.0"
   },
   "deploy": {
-"target": "ubuntu",
+"node": "4.2",
+"target": "debian",
 "dependencies": {
   "_all": ["openjdk-7-jre-headless"]
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7cd9f8d39948176f11ba27f77065dd615a4ae7d1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mathoid
Gerrit-Branch: master
Gerrit-Owner: Mobrovac 
Gerrit-Reviewer: Mobrovac 
Gerrit-Reviewer: Physikerwelt 

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


[MediaWiki-commits] [Gerrit] [WIP] - change (mediawiki...Math)

2016-01-07 Thread Tim Landscheidt (Code Review)
Tim Landscheidt has uploaded a new change for review.

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

Change subject: [WIP]
..

[WIP]

Change-Id: I2e15c8fd3c786c3f3fd160fdebe05d173217ce59
---
M tests/ParserTest.json
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math 
refs/changes/11/263011/1

diff --git a/tests/ParserTest.json b/tests/ParserTest.json
index 168496b..a58be2b 100644
--- a/tests/ParserTest.json
+++ b/tests/ParserTest.json
@@ -1794,5 +1794,9 @@
 [
 " ",
 "Failed to parse (PNG conversion 
failed; check for correct installation of latex and dvipng (or dvips + gs + 
convert)):  <\/strong>\n"
+],
+[
+"\\begin{equation} \\label{squ} \\D := \\vcenter{\\xymatrix @=3pc {S 
\\ar @<1ex> [r] ^{s^1} \\ar @<-1ex> [r] _{t^1} \\ar @<1ex> [d]^{\\, t_2} \\ar 
@<-1ex> [d]_{s_2} & H \\ar[l] \\ar @<1ex> [d]^{\\,t} \\ar @<-1ex> [d]_s  V 
\\ar [u] \\ar @<1ex> [r] ^s \\ar @<-1ex> [r] _t & M \\ar [l] \\ar[u]}}, 
\\end{equation}",
+"WIP"
 ]
 ]
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e15c8fd3c786c3f3fd160fdebe05d173217ce59
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Tim Landscheidt 

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


[MediaWiki-commits] [Gerrit] Switch to Node 4.2 and Jessie - change (mediawiki...mathoid)

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

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

Change subject: Switch to Node 4.2 and Jessie
..

Switch to Node 4.2 and Jessie

Change-Id: I7cd9f8d39948176f11ba27f77065dd615a4ae7d1
---
M package.json
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mathoid 
refs/changes/10/263010/1

diff --git a/package.json b/package.json
index d6767df..a12c9bb 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
 "js-yaml": "^3.4.3",
 "preq": "^0.4.4",
 "service-runner": "^0.3.5",
-"mathoid-mathjax-node": "0.4.4-wmf",
+"mathoid-mathjax-node": "0.4.4",
 "texvcinfo": "^0.3.3"
   },
   "devDependencies": {
@@ -58,7 +58,8 @@
 "swagger-router": "^0.2.0"
   },
   "deploy": {
-"target": "ubuntu",
+"node": "4.2",
+"target": "debian",
 "dependencies": {
   "_all": ["openjdk-7-jre-headless"]
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7cd9f8d39948176f11ba27f77065dd615a4ae7d1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mathoid
Gerrit-Branch: master
Gerrit-Owner: Mobrovac 

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


[MediaWiki-commits] [Gerrit] Only emit shared prefix bullets for the right parents - change (mediawiki...parsoid)

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

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

Change subject: Only emit shared prefix bullets for the right parents
..

Only emit shared prefix bullets for the right parents

 * In the other cases (ie. when this child doesn't match expectations),
   we'll have already emitted bullets for the parent node, which is why
   we're seeing duplicates.

 * Fixes a regression introduced in e7e1cf2dc8c5b7683b9207b268dea10d7dfd53f5

 * Identified in rt https://gerrit.wikimedia.org/r/#/c/262723/

Change-Id: Iae4dc35fdfd3058ae3bb12bc950f57e416398cb2
---
M lib/html2wt/DOMHandlers.js
1 file changed, 16 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid 
refs/changes/09/263009/1

diff --git a/lib/html2wt/DOMHandlers.js b/lib/html2wt/DOMHandlers.js
index ca66f51..beef6b9 100644
--- a/lib/html2wt/DOMHandlers.js
+++ b/lib/html2wt/DOMHandlers.js
@@ -1287,9 +1287,24 @@
},
 });
 
+var parentMap = {
+   LI: { UL: 1, OL: 1},
+   DT: { DL: 1 },
+   DD: { DL: 1 },
+};
+
+// FIXME: parentNode here should probably skip builder inserted elements,
+// as in `isBuilderInsertedElt`.
+function bulletsHaventAlreadyBeenEmitted(node) {
+   return (DU.isList(node) && DU.isListItem(node.parentNode)) ||
+   (DU.isListItem(node) &&
+   node.parentNode.nodeName in parentMap[node.nodeName]);
+}
+
 function handleListPrefix(node, state) {
var bullets = '';
-   if (DU.isListOrListItem(node) && !DU.previousNonSepSibling(node) &&
+   if (bulletsHaventAlreadyBeenEmitted(node) &&
+   !DU.previousNonSepSibling(node) &&
isTplListWithoutSharedPrefix(node) &&
// Nothing to do for definition list rows,
// since we're emitting for the parent node.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iae4dc35fdfd3058ae3bb12bc950f57e416398cb2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra 

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


[MediaWiki-commits] [Gerrit] Remove category entry from config in mobile skin (Wikimedia) - change (mediawiki...MobileFrontend)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Remove category entry from config in mobile skin (Wikimedia)
..


Remove category entry from config in mobile skin (Wikimedia)

Bug: T121791
Change-Id: Id4516eaf9a2221abeb29532d23ba72eb8e4bd445
---
M MobileFrontend.php
M includes/MobileFrontend.hooks.php
2 files changed, 15 insertions(+), 0 deletions(-)

Approvals:
  Florianschmidtwelzow: Looks good to me, but someone else must approve
  Jdlrobson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/MobileFrontend.php b/MobileFrontend.php
index 2f4cd0f..184e602 100644
--- a/MobileFrontend.php
+++ b/MobileFrontend.php
@@ -152,6 +152,7 @@
 $wgHooks['ImageBeforeProduceHTML'][] = 
'MobileFrontendHooks::onImageBeforeProduceHTML';
 $wgHooks['PageRenderingHash'][] = 'MobileFrontendHooks::onPageRenderingHash';
 $wgHooks['AfterBuildFeedLinks'][] = 
'MobileFrontendHooks::onAfterBuildFeedLinks';
+$wgHooks['MakeGlobalVariablesScript'][] = 
'MobileFrontendHooks::onMakeGlobalVariablesScript';
 
 $wgSpecialPages += array(
'History' => 'SpecialMobileHistory',
diff --git a/includes/MobileFrontend.hooks.php 
b/includes/MobileFrontend.hooks.php
index 0599fbf..9ab887c 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -1188,4 +1188,18 @@
)
);
}
+   /**
+* Handler for MakeGlobalVariablesScript hook.
+* @see 
http://www.mediawiki.org/wiki/Manual:Hooks/MakeGlobalVariablesScript
+* @param &$vars array Variables to be added into the output
+* @param $outputPage OutputPage instance calling the hook
+* @return bool true in all cases
+*/
+   public static function onMakeGlobalVariablesScript( array &$vars, 
OutputPage $out ) {
+   // If the device is a mobile, Remove the category entry.
+   if ( MobileContext::singleton()->shouldDisplayMobileView() ){
+   unset( $vars['wgCategories'] );
+   }
+   return true;
+   }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id4516eaf9a2221abeb29532d23ba72eb8e4bd445
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Ananay 
Gerrit-Reviewer: Ananay 
Gerrit-Reviewer: Florianschmidtwelzow 
Gerrit-Reviewer: Jdlrobson 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Convert WikibaseQualityConstraints to use new extension regi... - change (mediawiki...WikibaseQualityConstraints)

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

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

Change subject: Convert WikibaseQualityConstraints to use new extension 
registration
..

Convert WikibaseQualityConstraints to use new extension registration

Bug: T106104
Change-Id: If56b88ff30f2fa121d1d81eb36bd986c4ddef55a
---
M WikibaseQualityConstraints.php
A extension.json
2 files changed, 55 insertions(+), 42 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints
 refs/changes/08/263008/1

diff --git a/WikibaseQualityConstraints.php b/WikibaseQualityConstraints.php
index e539c35..328963d 100644
--- a/WikibaseQualityConstraints.php
+++ b/WikibaseQualityConstraints.php
@@ -1,44 +1,14 @@
 https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );*/
+   return;
+} else {
+   die( 'This version of the WikibaseQualityConstraints extension requires 
MediaWiki 1.25+' );
 }
-
-call_user_func( function() {
-   // Set credits
-   $GLOBALS['wgExtensionCredits']['wikibase'][] = array(
-   'path' => __FILE__,
-   'name' => 'WikibaseQualityConstraints',
-   'author' => 'BP2014N1',
-   'url' => 
'https://www.mediawiki.org/wiki/Extension:WikibaseQualityConstraints',
-   'descriptionmsg' => 'wbqc-desc',
-   'version' => '1.0.0'
-   );
-
-   // Initialize localization and aliases
-   $GLOBALS['wgMessagesDirs']['WikibaseQualityConstraints'] = __DIR__ . 
'/i18n';
-   $GLOBALS['wgExtensionMessagesFiles']['WikibaseQualityConstraintsAlias'] 
= __DIR__ . '/WikibaseQualityConstraints.alias.php';
-
-   // Initalize hooks for creating database tables
-   $GLOBALS['wgHooks']['LoadExtensionSchemaUpdates'][] = 
'WikibaseQualityConstraintsHooks::onCreateSchema';
-
-   // Register hooks for Unit Tests
-   $GLOBALS['wgHooks']['UnitTestsList'][] = 
'WikibaseQualityConstraintsHooks::onUnitTestsList';
-
-   // Initialize special pages
-   $GLOBALS['wgSpecialPages']['ConstraintReport'] = 
'WikibaseQuality\ConstraintReport\Specials\SpecialConstraintReport::newFromGlobalState';
-
-   // Define modules
-$remoteExtPathParts = explode(
-DIRECTORY_SEPARATOR . 'extensions' . DIRECTORY_SEPARATOR, __DIR__, 2
-);
-   $GLOBALS['wgResourceModules']['SpecialConstraintReportPage'] = array (
-'styles' => '/modules/SpecialConstraintReportPage.css',
-'scripts' => '/modules/SpecialConstraintReportPage.js',
-   'localBasePath' => __DIR__,
-   'remoteExtPath' => $remoteExtPathParts[1]
-   );
-
-   // Define database table names
-   define( 'CONSTRAINT_TABLE', 'wbqc_constraints' );
-} );
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..91b7d63
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,43 @@
+{
+   "load_composer_autoloader": true,
+   "name": "WikibaseQualityConstraints",
+   "author": "BP2014N1",
+   "url": 
"https://www.mediawiki.org/wiki/Extension:WikibaseQualityConstraints";,
+   "descriptionmsg": "wbqc-desc",
+   "version": "1.0.0",
+   "type": "wikibase",
+   "MessageDirs": {
+   "WikibaseQualityConstraints": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "WikibaseQualityConstraintsAlias": 
"WikibaseQualityConstraints.alias.php"
+   },
+   "Hooks": {
+   "LoadExtensionSchemaUpdates": [
+   "WikibaseQualityConstraintsHooks::onCreateSchema"
+   ],
+   "UnitTestsList": [
+   "WikibaseQualityConstraintsHooks::onUnitTestsList"
+   ]
+   },
+   "SpecialPages": {
+   "ConstraintReport": 
"WikibaseQuality\\ConstraintReport\\Specials\\SpecialConstraintReport::newFromGlobalState"
+   },
+   "ResourceFileModulePaths": {
+   "localBasePath": "",
+   "remoteExtPath": "WikibaseQualityConstraints"
+   },
+   "ResourceModules": {
+   "SpecialConstraintReportPage": {
+   "styles": "modules/SpecialConstraintReportPage.css",
+   "scripts": "modules/SpecialConstraintReportPage.js"
+   }
+   },
+   "config": {
+   "_prefix": "",
+   "CONSTRAINT_TABLE": "wbqc_constraints"
+   },
+   "manifest_version": 1 
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If56b88ff30f2fa121d1d81eb36bd986c4ddef55a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: MtDu 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikime

[MediaWiki-commits] [Gerrit] Remove unused jquery.validate module - change (mediawiki/core)

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

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

Change subject: Remove unused jquery.validate module
..

Remove unused jquery.validate module

jquery.validate was added in r99929, presumably for Gadgets 3.0 work.
However it's entirely unused in core, extensions in Gerrit, and on
Wikimedia sites. Even if Gadgets 3.0 were to require it, it should
probably live in the Gadgets extension rather than core.

Change-Id: Iebe09e853a6eb67af4a06b296606a8193df18d34
---
M resources/Resources.php
D resources/lib/jquery/jquery.validate.js
2 files changed, 0 insertions(+), 1,169 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/07/263007/1

diff --git a/resources/Resources.php b/resources/Resources.php
index e8cb843..bbcf8b5 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -355,9 +355,6 @@
'scripts' => 
'resources/lib/jquery/jquery.ba-throttle-debounce.js',
'targets' => array( 'desktop', 'mobile' ),
),
-   'jquery.validate' => array(
-   'scripts' => 'resources/lib/jquery/jquery.validate.js',
-   ),
'jquery.xmldom' => array(
'scripts' => 'resources/lib/jquery/jquery.xmldom.js',
),
diff --git a/resources/lib/jquery/jquery.validate.js 
b/resources/lib/jquery/jquery.validate.js
deleted file mode 100644
index 72296a6..000
--- a/resources/lib/jquery/jquery.validate.js
+++ /dev/null
@@ -1,1166 +0,0 @@
-/**
- * jQuery Validation Plugin 1.8.1
- *
- * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
- * http://docs.jquery.com/Plugins/Validation
- *
- * Copyright (c) 2006 - 2011 Jörn Zaefferer
- *
- * Dual licensed under the MIT and GPL licenses:
- *   http://www.opensource.org/licenses/mit-license.php
- *   http://www.gnu.org/licenses/gpl.html
- */
-
-(function($) {
-
-$.extend($.fn, {
-   // http://docs.jquery.com/Plugins/Validation/validate
-   validate: function( options ) {
-
-   // if nothing is selected, return nothing; can't chain anyway
-   if (!this.length) {
-   options && options.debug && window.console && 
console.warn( "nothing selected, can't validate, returning nothing" );
-   return;
-   }
-
-   // check if a validator for this form was already created
-   var validator = $.data(this[0], 'validator');
-   if ( validator ) {
-   return validator;
-   }
-
-   validator = new $.validator( options, this[0] );
-   $.data(this[0], 'validator', validator);
-
-   if ( validator.settings.onsubmit ) {
-
-   // allow suppresing validation by adding a cancel class 
to the submit button
-   this.find("input, 
button").filter(".cancel").click(function() {
-   validator.cancelSubmit = true;
-   });
-
-   // when a submitHandler is used, capture the submitting 
button
-   if (validator.settings.submitHandler) {
-   this.find("input, 
button").filter(":submit").click(function() {
-   validator.submitButton = this;
-   });
-   }
-
-   // validate the form on submit
-   this.submit( function( event ) {
-   if ( validator.settings.debug )
-   // prevent form submit to be able to 
see console output
-   event.preventDefault();
-
-   function handle() {
-   if ( validator.settings.submitHandler ) 
{
-   if (validator.submitButton) {
-   // insert a hidden 
input as a replacement for the missing submit button
-   var hidden = $("").attr("name", 
validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);
-   }
-   
validator.settings.submitHandler.call( validator, validator.currentForm );
-   if (validator.submitButton) {
-   // and clean up 
afterwards; thanks to no-block-scope, hidden can be referenced
-   hidden.remove();
-   }
-   return false;
-   }
-   return true;
- 

[MediaWiki-commits] [Gerrit] installer: Say "APCu" for PHP >= 5.5 - change (mediawiki/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: installer: Say "APCu" for PHP >= 5.5
..


installer: Say "APCu" for PHP >= 5.5

Pre-PHP 5.5 the extension was called "APC", and provided opcode caching
and userland object caching. In 5.5, the opcode caching was built-in to
PHP, and the userland object caching was moved into an extension named
"APCu".

Bug: T61998
Change-Id: Id6f4a87bfdb59b2592a56aea9450611238e313ad
---
M includes/installer/Installer.php
M includes/installer/i18n/en.json
M includes/installer/i18n/qqq.json
3 files changed, 9 insertions(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  Brian Wolff: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php
index b863adc..ea700c7 100644
--- a/includes/installer/Installer.php
+++ b/includes/installer/Installer.php
@@ -883,7 +883,13 @@
}
 
if ( !$caches ) {
-   $this->showMessage( 'config-no-cache' );
+   $key = 'config-no-cache';
+   // PHP >=5.5 is called APCu, earlier versions use APC 
(T61998).
+   if ( !wfIsHHVM() && version_compare( PHP_VERSION, 
'5.5', '>=' ) ) {
+   // config-no-cache-apcu
+   $key .= '-apcu';
+   }
+   $this->showMessage( $key );
}
 
$this->setVar( '_Caches', $caches );
diff --git a/includes/installer/i18n/en.json b/includes/installer/i18n/en.json
index ac3178f..f2ec7a7 100644
--- a/includes/installer/i18n/en.json
+++ b/includes/installer/i18n/en.json
@@ -69,6 +69,7 @@
"config-apc": "[http://www.php.net/apc APC] is installed",
"config-wincache": "[http://www.iis.net/download/WinCacheForPhp 
WinCache] is installed",
"config-no-cache": "Warning: Could not find 
[http://www.php.net/apc APC], [http://xcache.lighttpd.net/ XCache] or 
[http://www.iis.net/download/WinCacheForPhp WinCache].\nObject caching is not 
enabled.",
+   "config-no-cache-apcu": "Warning: Could not find 
[http://www.php.net/apcu APCu], [http://xcache.lighttpd.net/ XCache] or 
[http://www.iis.net/download/WinCacheForPhp WinCache].\nObject caching is not 
enabled.",
"config-mod-security": "Warning: Your web server has 
[http://modsecurity.org/ mod_security]/mod_security2 enabled. Many common 
configurations of this will cause problems for MediaWiki and other software 
that allows users to post arbitrary content.\nIf possible, this should be 
disabled. Otherwise, refer to [http://modsecurity.org/documentation/ 
mod_security documentation] or contact your host's support if you encounter 
random errors.",
"config-diff3-bad": "GNU diff3 not found.",
"config-git": "Found the Git version control software: 
$1.",
diff --git a/includes/installer/i18n/qqq.json b/includes/installer/i18n/qqq.json
index bb42d88..372b228 100644
--- a/includes/installer/i18n/qqq.json
+++ b/includes/installer/i18n/qqq.json
@@ -87,6 +87,7 @@
"config-apc": "Message indicates if this program is available",
"config-wincache": "Message indicates if this program is available",
"config-no-cache": "Status message in the MediaWiki installer 
environment checks.",
+   "config-no-cache-apcu": "Status message in the MediaWiki installer 
environment checks.",
"config-mod-security": "Status message in the MediaWiki installer 
environment checks.",
"config-diff3-bad": "Status message in the MediaWiki installer 
environment checks.",
"config-git": "Message if Git version control software is 
available.\nParameter:\n* $1 is the Git executable file name.",

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id6f4a87bfdb59b2592a56aea9450611238e313ad
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm 
Gerrit-Reviewer: Brian Wolff 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: Reedy 
Gerrit-Reviewer: Siebrand 
Gerrit-Reviewer: Waldir 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Add ResourceLoader::resetLessVars method - change (mediawiki/core)

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

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

Change subject: Add ResourceLoader::resetLessVars method
..

Add ResourceLoader::resetLessVars method

Currently LESS variables are cached on first lookup. Whenever the
environment changes, it is necessary thus to refresh them e.g. for
variables introduced via an extension.

This also allows tests to run whenever ResourceLoaderLESSVars is different
to an empty array
(note !array() == true)

Change-Id: Ie1cdc9518624340bb63863cdb1a3ac20eccb5951
---
M includes/resourceloader/ResourceLoader.php
M tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
2 files changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/06/263006/1

diff --git a/includes/resourceloader/ResourceLoader.php 
b/includes/resourceloader/ResourceLoader.php
index 1f3085a..1c2d31e 100644
--- a/includes/resourceloader/ResourceLoader.php
+++ b/includes/resourceloader/ResourceLoader.php
@@ -1615,6 +1615,14 @@
}
 
/**
+* Resets any cached LESS variables
+*
+*/
+   public static function resetLessVars() {
+   self::$lessVars = null;
+   }
+
+   /**
 * Get global LESS variables.
 *
 * @param Config $config
diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php 
b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
index b683885..c785535 100644
--- a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
+++ b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
@@ -5,6 +5,7 @@
protected function setUp() {
parent::setUp();
 
+   ResourceLoader::resetLessVars();
$this->setMwGlobals( array(
'wgResourceLoaderLESSImportPaths' => array(
dirname( dirname( __DIR__ ) ) . 
'/data/less/common',

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie1cdc9518624340bb63863cdb1a3ac20eccb5951
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson 

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


[MediaWiki-commits] [Gerrit] Hygiene: add @NonNull annotations to derivations - change (apps...wikipedia)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Hygiene: add @NonNull annotations to derivations
..


Hygiene: add @NonNull annotations to derivations

Infer @NonNull annotations from super classes and usage.

Change-Id: I5258e2654ef679c10e504abe1118c1913df1e62f
---
M 
app/src/main/java/org/wikipedia/editing/summaries/EditSummaryPersistenceHelper.java
M app/src/main/java/org/wikipedia/history/HistoryEntryPersistenceHelper.java
M app/src/main/java/org/wikipedia/pageimages/PageImagePersistenceHelper.java
M app/src/main/java/org/wikipedia/search/RecentSearchPersistenceHelper.java
4 files changed, 15 insertions(+), 8 deletions(-)

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



diff --git 
a/app/src/main/java/org/wikipedia/editing/summaries/EditSummaryPersistenceHelper.java
 
b/app/src/main/java/org/wikipedia/editing/summaries/EditSummaryPersistenceHelper.java
index 6e50253..7961985 100644
--- 
a/app/src/main/java/org/wikipedia/editing/summaries/EditSummaryPersistenceHelper.java
+++ 
b/app/src/main/java/org/wikipedia/editing/summaries/EditSummaryPersistenceHelper.java
@@ -2,6 +2,8 @@
 
 import android.content.ContentValues;
 import android.database.Cursor;
+import android.support.annotation.NonNull;
+
 import org.wikipedia.data.PersistenceHelper;
 
 import java.util.Date;
@@ -57,12 +59,12 @@
 }
 
 @Override
-protected String getPrimaryKeySelection(EditSummary obj, String[] 
selectionArgs) {
+protected String getPrimaryKeySelection(@NonNull EditSummary obj, String[] 
selectionArgs) {
 return super.getPrimaryKeySelection(obj, SELECTION_KEYS);
 }
 
 @Override
-protected String[] getUnfilteredPrimaryKeySelectionArgs(EditSummary obj) {
+protected String[] getUnfilteredPrimaryKeySelectionArgs(@NonNull 
EditSummary obj) {
 return new String[] {
 obj.getSummary()
 };
diff --git 
a/app/src/main/java/org/wikipedia/history/HistoryEntryPersistenceHelper.java 
b/app/src/main/java/org/wikipedia/history/HistoryEntryPersistenceHelper.java
index c413b51..03abeea 100644
--- a/app/src/main/java/org/wikipedia/history/HistoryEntryPersistenceHelper.java
+++ b/app/src/main/java/org/wikipedia/history/HistoryEntryPersistenceHelper.java
@@ -4,6 +4,8 @@
 import android.database.Cursor;
 
 import android.database.sqlite.SQLiteDatabase;
+import android.support.annotation.NonNull;
+
 import org.wikipedia.page.PageTitle;
 import org.wikipedia.Site;
 import org.wikipedia.data.PersistenceHelper;
@@ -73,12 +75,12 @@
 }
 
 @Override
-protected String getPrimaryKeySelection(HistoryEntry obj, String[] 
selectionArgs) {
+protected String getPrimaryKeySelection(@NonNull HistoryEntry obj, 
String[] selectionArgs) {
 return super.getPrimaryKeySelection(obj, SELECTION_KEYS);
 }
 
 @Override
-protected String[] getUnfilteredPrimaryKeySelectionArgs(HistoryEntry obj) {
+protected String[] getUnfilteredPrimaryKeySelectionArgs(@NonNull 
HistoryEntry obj) {
 return new String[] {
 obj.getTitle().getSite().getDomain(),
 obj.getTitle().getNamespace(),
diff --git 
a/app/src/main/java/org/wikipedia/pageimages/PageImagePersistenceHelper.java 
b/app/src/main/java/org/wikipedia/pageimages/PageImagePersistenceHelper.java
index 4639ca0..96db4c3 100644
--- a/app/src/main/java/org/wikipedia/pageimages/PageImagePersistenceHelper.java
+++ b/app/src/main/java/org/wikipedia/pageimages/PageImagePersistenceHelper.java
@@ -4,6 +4,7 @@
 import android.database.Cursor;
 import android.database.sqlite.SQLiteDatabase;
 import android.database.sqlite.SQLiteException;
+import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
 import org.wikipedia.WikipediaApp;
 import org.wikipedia.page.PageTitle;
@@ -91,12 +92,12 @@
 }
 
 @Override
-protected String getPrimaryKeySelection(PageImage obj, String[] 
selectionArgs) {
+protected String getPrimaryKeySelection(@NonNull PageImage obj, String[] 
selectionArgs) {
 return super.getPrimaryKeySelection(obj, SELECTION_KEYS);
 }
 
 @Override
-protected String[] getUnfilteredPrimaryKeySelectionArgs(PageImage obj) {
+protected String[] getUnfilteredPrimaryKeySelectionArgs(@NonNull PageImage 
obj) {
 return new String[] {
 obj.getTitle().getSite().getDomain(),
 obj.getTitle().getNamespace(),
diff --git 
a/app/src/main/java/org/wikipedia/search/RecentSearchPersistenceHelper.java 
b/app/src/main/java/org/wikipedia/search/RecentSearchPersistenceHelper.java
index 91d6762..224e92d 100644
--- a/app/src/main/java/org/wikipedia/search/RecentSearchPersistenceHelper.java
+++ b/app/src/main/java/org/wikipedia/search/RecentSearchPersistenceHelper.java
@@ -4,6 +4,8 @@
 
 import android.content.ContentValues;
 import android.database.Cursor;
+import android.support.annotation.NonNull;

[MediaWiki-commits] [Gerrit] RELEASE-NOTES-1.27: Add a note about file upload patrolling - change (mediawiki/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: RELEASE-NOTES-1.27: Add a note about file upload patrolling
..


RELEASE-NOTES-1.27: Add a note about file upload patrolling

Bug: T11501
Change-Id: I092d247e72f73c3317a8e6321fd28f8455e598b7
---
M RELEASE-NOTES-1.27
1 file changed, 3 insertions(+), 0 deletions(-)

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



diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 7157776..4723220 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -103,6 +103,9 @@
   from CDN to mitigate DB replication lag and WAN cache purge lag.
 * (T49162) Installer will default to setting CACHE_ACCEL as the main cache type
   if it is available.
+* It is now possible to patrol file uploads (both for new files and new 
versions
+  of existing files). Special:NewFiles has gained an option to filter by patrol
+  status. This functionality can be disabled using $wgUseFilePatrol.
 
 === External library changes in 1.27 ===
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I092d247e72f73c3317a8e6321fd28f8455e598b7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] RELEASE-NOTES-1.27: Add a note about file upload patrolling - change (mediawiki/core)

2016-01-07 Thread Code Review
Bartosz Dziewoński has uploaded a new change for review.

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

Change subject: RELEASE-NOTES-1.27: Add a note about file upload patrolling
..

RELEASE-NOTES-1.27: Add a note about file upload patrolling

Bug: T11501
Change-Id: I092d247e72f73c3317a8e6321fd28f8455e598b7
---
M RELEASE-NOTES-1.27
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/05/263005/1

diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 7157776..4723220 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -103,6 +103,9 @@
   from CDN to mitigate DB replication lag and WAN cache purge lag.
 * (T49162) Installer will default to setting CACHE_ACCEL as the main cache type
   if it is available.
+* It is now possible to patrol file uploads (both for new files and new 
versions
+  of existing files). Special:NewFiles has gained an option to filter by patrol
+  status. This functionality can be disabled using $wgUseFilePatrol.
 
 === External library changes in 1.27 ===
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I092d247e72f73c3317a8e6321fd28f8455e598b7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński 

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


[MediaWiki-commits] [Gerrit] RELEASE-NOTES-1.27: Wrap lines at 80 characters - change (mediawiki/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: RELEASE-NOTES-1.27: Wrap lines at 80 characters
..


RELEASE-NOTES-1.27: Wrap lines at 80 characters

Change-Id: Idf0cef999d798c935596e2a784b7d78a8e39f1cb
---
M RELEASE-NOTES-1.27
1 file changed, 12 insertions(+), 8 deletions(-)

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



diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 87cb2f5..7157776 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -53,10 +53,11 @@
 * (T48998) $wgArticlePath must now be either a full url, or start with a "/".
 * $wgRateLimitLog was removed; use $wgDebugLogGroups['ratelimit'] instead.
 * Deprecated API formats dbg, txt, and yaml have been removed.
-* CLDRPluralRule* classes have been replaced with 
wikimedia/cldr-plural-rule-parser.
+* CLDRPluralRule* classes have been replaced with
+  wikimedia/cldr-plural-rule-parser.
 * Removed $wgProfilePerHost, $wgUDPProfilerHost, $wgUDPProfilerPort,
-  $wgUDPProfilerFormatString, $wgStatsMethod, $wgAggregateStatsID, 
$wgStatsFormatString,
-  and $wgProfileCallTree (deprecated since 1.20).
+  $wgUDPProfilerFormatString, $wgStatsMethod, $wgAggregateStatsID,
+  $wgStatsFormatString, and $wgProfileCallTree (deprecated since 1.20).
 * For proper operation of LocalIdLookup with shared user tables, ensure that
   $wgSharedDB and $wgSharedTables are properly set even on the "central" wiki
   that all others are sharing from and that $wgLocalDatabases is set to the
@@ -96,7 +97,8 @@
   authentication extensions.
 * $wgMaxUserDBWriteDuration added to limit huge user-generated transactions.
   Regular web request transactions that takes longer than this are aborted.
-* Added a new hook, 'TitleMoveCompleting', which runs before a page move is 
committed.
+* Added a new hook, 'TitleMoveCompleting', which runs before a page move is
+  committed.
 * $wgCdnReboundPurgeDelay was added to provide secondary delayed purges of URLs
   from CDN to mitigate DB replication lag and WAN cache purge lag.
 * (T49162) Installer will default to setting CACHE_ACCEL as the main cache type
@@ -164,14 +166,15 @@
   ignore the 2nd and 3rd arguments (formerly $id and $commit).
 * Removed "loaderScripts" option from ResourceLoaderFileModule class.
 * Removed ORM-like wrapper added in 1.20.
-* LinkCache::getGoodLinks and LinkCache::getBadLinks were removed (deprecated 
in 1.26).
+* LinkCache::getGoodLinks and LinkCache::getBadLinks were removed
+  (deprecated in 1.26).
 * WikiPage::doQuickEdit() was removed (deprecated since 1.21).
 * Removed SiteObject and SiteArray classes (deprecated in 1.21).
 * MessageBlobStore::getInstance() was removed (deprecated since 1.25).
 * (T84937) Free external links ("autolinked" urls) will now be terminated
   by   and HTML entity encodings of  , <, and >.
-* (T36948) The default file revert message's timestamp is now in 
$wgLocaltimezone,
-  instead of UTC.
+* (T36948) The default file revert message's timestamp is now in
+  $wgLocaltimezone, instead of UTC.
 * The default name of the 'suppress' group page has been changed from
   'Project:Oversight' to 'Project:Suppress'.
 * DatabaseBase::resultObject() is now protected (use outside Database classes
@@ -180,7 +183,8 @@
   ResourceLoaderContext instance is deprecated.
 * ResourceLoader::getLessCompiler() now takes an optional parameter of
   additional LESS variables to set for the compiler.
-* wfBaseConvert() marked as deprecated, use Wikimedia\base_convert() directly 
instead.
+* wfBaseConvert() marked as deprecated, use Wikimedia\base_convert() directly
+  instead.
 * Obsolete maintenance scripts clearCacheStats.php and showCacheStats.php
   were removed. The underlying data is sent to StatsD (see $wgStatsdServer).
 * Removed msg_resource_links database table and associated code.

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Idf0cef999d798c935596e2a784b7d78a8e39f1cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński 
Gerrit-Reviewer: Reedy 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Update mobileapps to a4a5275 - change (mediawiki...deploy)

2016-01-07 Thread Mobrovac (Code Review)
Mobrovac has submitted this change and it was merged.

Change subject: Update mobileapps to a4a5275
..


Update mobileapps to a4a5275

List of changes:
8461805 Create mobile content service route for Wiktionary definitions
c5f672f Put page/ back in endpoint path
a4a5275 Switch to node 4.2
xxx Update node module dependencies

Change-Id: Ib92f98ef3e3e3618b4b8f518807cb2428660913e
---
M node_modules/ansi-regex/package.json
M node_modules/bluebird/package.json
R node_modules/body-parser/node_modules/bytes/LICENSE
M node_modules/body-parser/node_modules/bytes/index.js
M node_modules/body-parser/node_modules/bytes/package.json
M node_modules/body-parser/node_modules/depd/package.json
R node_modules/body-parser/node_modules/http-errors/LICENSE
R node_modules/body-parser/node_modules/http-errors/index.js
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/LICENSE
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/inherits.js
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/inherits_browser.js
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/package.json
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/test.js
C 
node_modules/body-parser/node_modules/http-errors/node_modules/statuses/LICENSE
C 
node_modules/body-parser/node_modules/http-errors/node_modules/statuses/codes.json
C 
node_modules/body-parser/node_modules/http-errors/node_modules/statuses/index.js
R 
node_modules/body-parser/node_modules/http-errors/node_modules/statuses/package.json
R node_modules/body-parser/node_modules/http-errors/package.json
M node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js
M node_modules/body-parser/node_modules/iconv-lite/package.json
M node_modules/body-parser/node_modules/qs/.travis.yml
M node_modules/body-parser/node_modules/qs/dist/qs.js
M node_modules/body-parser/node_modules/qs/lib/stringify.js
M node_modules/body-parser/node_modules/qs/package.json
M node_modules/body-parser/node_modules/qs/test/stringify.js
D node_modules/body-parser/node_modules/raw-body/node_modules/bytes/index.js
D node_modules/body-parser/node_modules/raw-body/node_modules/bytes/package.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/.npmignore
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/.travis.yml
D node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/LICENSE
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-codec.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-data.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/index.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/internal.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-codec.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data-generated.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/big5-added.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp936.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp949.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp950.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/eucjp.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gbk-added.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/shiftjis.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/utf16.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/utf7.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/lib/bom-handling.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/lib/extend-node.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/lib/index.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/lib/streams.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/package.json
M node_modules/body-parser/node_modules/raw-body/package.json
M node_modules/body-parser/package.json
M node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/package.json
M node_modules/bunyan/node_modules/dtrace-provider/package.json
M node_modules/bunyan/node_modules/mv/node_

[MediaWiki-commits] [Gerrit] RELEASE-NOTES-1.27: Wrap lines at 80 characters - change (mediawiki/core)

2016-01-07 Thread Code Review
Bartosz Dziewoński has uploaded a new change for review.

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

Change subject: RELEASE-NOTES-1.27: Wrap lines at 80 characters
..

RELEASE-NOTES-1.27: Wrap lines at 80 characters

Change-Id: Idf0cef999d798c935596e2a784b7d78a8e39f1cb
---
M RELEASE-NOTES-1.27
1 file changed, 12 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/03/263003/1

diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 87cb2f5..7157776 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -53,10 +53,11 @@
 * (T48998) $wgArticlePath must now be either a full url, or start with a "/".
 * $wgRateLimitLog was removed; use $wgDebugLogGroups['ratelimit'] instead.
 * Deprecated API formats dbg, txt, and yaml have been removed.
-* CLDRPluralRule* classes have been replaced with 
wikimedia/cldr-plural-rule-parser.
+* CLDRPluralRule* classes have been replaced with
+  wikimedia/cldr-plural-rule-parser.
 * Removed $wgProfilePerHost, $wgUDPProfilerHost, $wgUDPProfilerPort,
-  $wgUDPProfilerFormatString, $wgStatsMethod, $wgAggregateStatsID, 
$wgStatsFormatString,
-  and $wgProfileCallTree (deprecated since 1.20).
+  $wgUDPProfilerFormatString, $wgStatsMethod, $wgAggregateStatsID,
+  $wgStatsFormatString, and $wgProfileCallTree (deprecated since 1.20).
 * For proper operation of LocalIdLookup with shared user tables, ensure that
   $wgSharedDB and $wgSharedTables are properly set even on the "central" wiki
   that all others are sharing from and that $wgLocalDatabases is set to the
@@ -96,7 +97,8 @@
   authentication extensions.
 * $wgMaxUserDBWriteDuration added to limit huge user-generated transactions.
   Regular web request transactions that takes longer than this are aborted.
-* Added a new hook, 'TitleMoveCompleting', which runs before a page move is 
committed.
+* Added a new hook, 'TitleMoveCompleting', which runs before a page move is
+  committed.
 * $wgCdnReboundPurgeDelay was added to provide secondary delayed purges of URLs
   from CDN to mitigate DB replication lag and WAN cache purge lag.
 * (T49162) Installer will default to setting CACHE_ACCEL as the main cache type
@@ -164,14 +166,15 @@
   ignore the 2nd and 3rd arguments (formerly $id and $commit).
 * Removed "loaderScripts" option from ResourceLoaderFileModule class.
 * Removed ORM-like wrapper added in 1.20.
-* LinkCache::getGoodLinks and LinkCache::getBadLinks were removed (deprecated 
in 1.26).
+* LinkCache::getGoodLinks and LinkCache::getBadLinks were removed
+  (deprecated in 1.26).
 * WikiPage::doQuickEdit() was removed (deprecated since 1.21).
 * Removed SiteObject and SiteArray classes (deprecated in 1.21).
 * MessageBlobStore::getInstance() was removed (deprecated since 1.25).
 * (T84937) Free external links ("autolinked" urls) will now be terminated
   by   and HTML entity encodings of  , <, and >.
-* (T36948) The default file revert message's timestamp is now in 
$wgLocaltimezone,
-  instead of UTC.
+* (T36948) The default file revert message's timestamp is now in
+  $wgLocaltimezone, instead of UTC.
 * The default name of the 'suppress' group page has been changed from
   'Project:Oversight' to 'Project:Suppress'.
 * DatabaseBase::resultObject() is now protected (use outside Database classes
@@ -180,7 +183,8 @@
   ResourceLoaderContext instance is deprecated.
 * ResourceLoader::getLessCompiler() now takes an optional parameter of
   additional LESS variables to set for the compiler.
-* wfBaseConvert() marked as deprecated, use Wikimedia\base_convert() directly 
instead.
+* wfBaseConvert() marked as deprecated, use Wikimedia\base_convert() directly
+  instead.
 * Obsolete maintenance scripts clearCacheStats.php and showCacheStats.php
   were removed. The underlying data is sent to StatsD (see $wgStatsdServer).
 * Removed msg_resource_links database table and associated code.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf0cef999d798c935596e2a784b7d78a8e39f1cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński 

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


[MediaWiki-commits] [Gerrit] Undeploy ApiSandbox - change (mediawiki...release)

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

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

Change subject: Undeploy ApiSandbox
..

Undeploy ApiSandbox

Merged into core, no longer needed.

Change-Id: Ib4e194f6d54374600a881c70c279d43acac96a04
Depends-On: I0b09411e52e40c12d995123a25d6938e12ab459f
---
M make-wmf-branch/config.json
1 file changed, 0 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/tools/release 
refs/changes/02/263002/1

diff --git a/make-wmf-branch/config.json b/make-wmf-branch/config.json
index 4a11788..6b30bf3 100644
--- a/make-wmf-branch/config.json
+++ b/make-wmf-branch/config.json
@@ -5,7 +5,6 @@
"ActiveAbstract",
"AntiSpoof",
"ApiFeatureUsage",
-   "ApiSandbox",
"Babel",
"BetaFeatures",
"BounceHandler",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib4e194f6d54374600a881c70c279d43acac96a04
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/tools/release
Gerrit-Branch: master
Gerrit-Owner: Anomie 

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


[MediaWiki-commits] [Gerrit] Revert removal of message documentation by l10n-bot - change (mediawiki/core)

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

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

Change subject: Revert removal of message documentation by l10n-bot
..

Revert removal of message documentation by l10n-bot

This reverts commit 9aa75d33e4e453e795a18b903612935a9e43d3d4.

Change-Id: Icc62d78993b7a63ef50a79778ff6368ade391a3e
---
M languages/i18n/qqq.json
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/01/263001/1

diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index f4f3b81..d6bacd4 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -290,6 +290,8 @@
"october-date": "A date in the Gregorian month of October. $1 is the 
numerical date, for example \"23\".",
"november-date": "A date in the Gregorian month of November. $1 is the 
numerical date, for example \"23\".\n{{Identical|November}}",
"december-date": "A date in the Gregorian month of December. $1 is the 
numerical date, for example \"23\".",
+   "period-am": "Text indicating the first period of the day when using a 
12-hour calendar.",
+   "period-pm": "Text indicating the second period of the day when using a 
12-hour calendar.",
"pagecategories": "Used in the categories section of pages.\n\nFollowed 
by a colon and a list of categories.\n\nParameters:\n* $1 - number of 
categories\n{{Identical|Category}}",
"pagecategorieslink": "{{notranslate}}",
"category_header": "In category description page. Parameters:\n* $1 - 
category name\nSee also:\n* {{msg-mw|Category-media-header}}",
@@ -3580,6 +3582,7 @@
"signature": "This will be substituted in the signature 
(~~~ or  excluding 
timestamp).\n\nParameters:\n* $1 - the username that is currently login\n* $2 - 
the customized signature which is specified in [[Special:Preferences|user's 
preferences]] as non-raw\nUse your language default parentheses 
({{msg-mw|parentheses}}), but not use the message direct.\n\nSee also:\n* 
{{msg-mw|Signature-anon}} - signature for anonymous user",
"signature-anon": "{{notranslate}}\nUsed as signature for anonymous 
user. Parameters:\n* $1 - username (IP address?)\n* $2 - nickname (IP 
address?)\nSee also:\n* {{msg-mw|Signature}} - signature for registered user",
"timezone-utc": "{{optional}}",
+   "timezone-local": "Label to indicate that a time is in the user's local 
timezone.",
"duplicate-defaultsort": "See definition of [[w:Sorting|sort key]] on 
Wikipedia. Parameters:\n* $1 - old default sort key\n* $2 - new default sort 
key",
"duplicate-displaytitle": "Warning shown when a page has its display 
title set multiple times. Parameters:\n* $1 - old display title\n* $2 - new 
display title",
"invalid-indicator-name": "Warning shown when the 
[https://www.mediawiki.org/wiki/Help:Page_status_indicators ''content''] parser tag is used 
incorrectly.",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc62d78993b7a63ef50a79778ff6368ade391a3e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm 

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


[MediaWiki-commits] [Gerrit] Prepare for merged of ApiSandbox into core - change (operations/mediawiki-config)

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

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

Change subject: Prepare for merged of ApiSandbox into core
..

Prepare for merged of ApiSandbox into core

We need to load the extension for branches without Ic42a6c5, but we must
not include it once that patch is merged.

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


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

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 3331faa..b08fff8 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2388,7 +2388,9 @@
 
 }
 
-if ( $wmgUseApiSandbox ) {
+// Keep loading the extension for MW before Ic42a6c5, but don't load it in
+// branches where that is merged.
+if ( $wmgUseApiSandbox && !class_exists( 'SpecialApiSandbox' ) ) {
wfLoadExtension( 'ApiSandbox' );
 }
 

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

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

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


[MediaWiki-commits] [Gerrit] Undeploy ApiSandbox extension - change (operations/mediawiki-config)

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

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

Change subject: Undeploy ApiSandbox extension
..

Undeploy ApiSandbox extension

Merged into core, no longer needed.

Change-Id: I0b09411e52e40c12d995123a25d6938e12ab459f
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
M wmf-config/extension-list
3 files changed, 0 insertions(+), 13 deletions(-)


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

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index b08fff8..47ed2ac 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2388,12 +2388,6 @@
 
 }
 
-// Keep loading the extension for MW before Ic42a6c5, but don't load it in
-// branches where that is merged.
-if ( $wmgUseApiSandbox && !class_exists( 'SpecialApiSandbox' ) ) {
-   wfLoadExtension( 'ApiSandbox' );
-}
-
 if ( $wmgUseShortUrl ) {
require_once( "$IP/extensions/ShortUrl/ShortUrl.php" );
$wgShortUrlTemplate = "/s/$1";
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index d3b8a02..09ae386 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -14439,12 +14439,6 @@
'votewiki' => false,
 ),
 
-'wmgUseApiSandbox' => array(
-   'default' => true,
-   'loginwiki' => false,
-   'votewiki' => false,
-),
-
 'wmgUseShortUrl' => array(
'default' => false,
'bnwiki' => true, // T62956
diff --git a/wmf-config/extension-list b/wmf-config/extension-list
index 9fb807c..61ef28b 100644
--- a/wmf-config/extension-list
+++ b/wmf-config/extension-list
@@ -1,7 +1,6 @@
 $IP/extensions/AbuseFilter/AbuseFilter.php
 $IP/extensions/AntiSpoof/AntiSpoof.php
 $IP/extensions/ApiFeatureUsage/ApiFeatureUsage.php
-$IP/extensions/ApiSandbox/extension.json
 $IP/extensions/Babel/Babel.php
 $IP/extensions/BetaFeatures/extension.json
 $IP/extensions/BounceHandler/BounceHandler.php

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

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

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


[MediaWiki-commits] [Gerrit] network: move frack networks into a separate realm - change (operations/puppet)

2016-01-07 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has submitted this change and it was merged.

Change subject: network: move frack networks into a separate realm
..


network: move frack networks into a separate realm

frack is a realm for all intents and purposes -- move its subnets away
from the production realm hierarchy.

Change-Id: Idf2cdd9d9101af59a06b0d5085c695e75e2c67e5
---
M manifests/network.pp
1 file changed, 26 insertions(+), 12 deletions(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/manifests/network.pp b/manifests/network.pp
index ce1cd44..ed4f96e 100644
--- a/manifests/network.pp
+++ b/manifests/network.pp
@@ -89,9 +89,6 @@
 'ipv4' => '208.80.154.224/27',
 'ipv6' => '2620:0:861:ed1a::/64',
 },
-'public-frack-eqiad' => {
-'ipv4' => '208.80.155.0/27',
-},
 },
 'private' => {
 'private1-a-eqiad' => {
@@ -157,9 +154,6 @@
 'ipv4' => '10.64.53.0/24',
 'ipv6' => '2620:0:861:108::/64'
 },
-'private-frack-eqiad' => {
-'ipv4' => '10.64.40.0/24',
-},
 },
 },
 'codfw' => {
@@ -184,9 +178,6 @@
 'ipv4' => '208.80.153.224/27',
 'ipv6' => '2620:0:860:ed1a::/64',
 },
-'public-frack-codfw' => {
-'ipv4' => '208.80.152.224/28',
-},
 },
 'private' => {
 'private1-a-codfw' => {
@@ -204,9 +195,6 @@
 'private1-d-codfw' => {
 'ipv4' => '10.192.48.0/22',
 'ipv6' => '2620:0:860:104::/64'
-},
-'private-frack-codfw' => {
-'ipv4' => '10.195.0.0/25',
 },
 },
 },
@@ -247,6 +235,32 @@
 },
 },
 },
+'frack' => {
+'eqiad' => {
+'public' => {
+'public-frack-eqiad' => {
+'ipv4' => '208.80.155.0/27',
+},
+},
+'private' => {
+'private-frack-eqiad' => {
+'ipv4' => '10.64.40.0/24',
+},
+},
+},
+'codfw' => {
+'public' => {
+'public-frack-codfw' => {
+'ipv4' => '208.80.152.224/28',
+},
+},
+'private' => {
+'private-frack-codfw' => {
+'ipv4' => '10.195.0.0/25',
+},
+},
+},
+},
 }
 
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Idf2cdd9d9101af59a06b0d5085c695e75e2c67e5
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis 
Gerrit-Reviewer: Alex Monk 
Gerrit-Reviewer: Alexandros Kosiaris 
Gerrit-Reviewer: Faidon Liambotis 
Gerrit-Reviewer: Jgreen 
Gerrit-Reviewer: Yuvipanda 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Replaced all spacing with tab Bug:T121879 - change (operations/puppet)

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

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

Change subject: Replaced all spacing with tab Bug:T121879
..

Replaced all spacing with tab
Bug:T121879

Change-Id: I7d4eafaf7e53de6517e8f6bd3158a2dfa6358ebd
---
M modules/install_server/files/autoinstall/partman/raid0-lvm-srv.cfg
1 file changed, 62 insertions(+), 62 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/98/262998/1

diff --git a/modules/install_server/files/autoinstall/partman/raid0-lvm-srv.cfg 
b/modules/install_server/files/autoinstall/partman/raid0-lvm-srv.cfg
index fa55e9c..459aa42 100644
--- a/modules/install_server/files/autoinstall/partman/raid0-lvm-srv.cfg
+++ b/modules/install_server/files/autoinstall/partman/raid0-lvm-srv.cfg
@@ -4,78 +4,78 @@
 # * LVM
 # * GPT layout (large disks, > 2TB)
 # * layout:
-#   - /boot:  RAID0, 500MB
-#   - / :   ext3, RAID0, 50GB on LVM
-#   - rest is lvm RAID0
+#  - /boot:RAID0, 500MB
+#  - / :   ext3, RAID0, 50GB on LVM
+#  - rest is lvm RAID0
 
-d-i partman-auto/method string  raid
-d-i partman-md/device_remove_md boolean true
-d-i partman-lvm/device_remove_lvm   boolean true
+d-ipartman-auto/method 
string  raid
+d-ipartman-md/device_remove_md boolean 
true
+d-ipartman-lvm/device_remove_lvm   boolean true
 
 # Use the first  three disks
-d-i partman-auto/disk   string  /dev/sda /dev/sdb /dev/sdc
+d-ipartman-auto/disk   string  
/dev/sda /dev/sdb /dev/sdc
 
 # Don't stop if method isn't provided, e.g. in non used LVs
-d-i partman-basicmethods/method_onlyboolean false
+d-ipartman-basicmethods/method_only
boolean false
 
 # Define physical partitions
-d-i partman-auto/expert_recipe  string  \
-multiraid ::\
-10  1   10  grub\
-$gptonly{ } \
-$bios_boot{ }   \
-$primary{ } method{ biosgrub }  \
-.   \
-500 1   500 raid\
-$primary{ } method{ raid }  \
-$lvmignore{ }   \
-.   \
-500 2   -1  raid\
-$primary{ } method{ raid }  \
-$lvmignore{ }   \
-.   \
-5   4   5  ext3 \
-$lvmok{ }   \
-$defaultignore{ }   \
-lv_name{ root } \
-method{ format }\
-format{ }   \
-use_filesystem{ }   \
-filesystem{ ext3 }  \
-mountpoint{ / } \
-   .
-  64 1000 1000   ext4  \
-$lvmok{ }   \
-$defaultignore{ }   \
-lv_name{ root } \
-method{ format }\
-format{ }   \
-use_filesystem{ }   \
-filesystem{ xfs }  \
-mountpoint{ /srv }  \
-   .   \
+d-ipartman-auto/expert_recipe  string  
\
+   multiraid ::
\
+   
10  1   10  
grub\
+   
$gptonly{ } 
\
+  

[MediaWiki-commits] [Gerrit] Syncronize VisualEditor: 7a39be3..d1386ae - change (mediawiki/extensions)

2016-01-07 Thread Jenkins-mwext-sync (Code Review)
Jenkins-mwext-sync has submitted this change and it was merged.

Change subject: Syncronize VisualEditor: 7a39be3..d1386ae
..


Syncronize VisualEditor: 7a39be3..d1386ae

Change-Id: Icb9d9d6c46db4d704d6747444224a10c97eed74e
---
M VisualEditor
1 file changed, 0 insertions(+), 0 deletions(-)

Approvals:
  Jenkins-mwext-sync: Verified; Looks good to me, approved



diff --git a/VisualEditor b/VisualEditor
index 7a39be3..d1386ae 16
--- a/VisualEditor
+++ b/VisualEditor
-Subproject commit 7a39be3798c01f05c8b5a450e014624178b8a23c
+Subproject commit d1386ae5b8f6d2599bdb16bb7cdfabe67a130c48

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icb9d9d6c46db4d704d6747444224a10c97eed74e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions
Gerrit-Branch: master
Gerrit-Owner: Jenkins-mwext-sync 
Gerrit-Reviewer: Jenkins-mwext-sync 

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


[MediaWiki-commits] [Gerrit] Syncronize VisualEditor: 7a39be3..d1386ae - change (mediawiki/extensions)

2016-01-07 Thread Jenkins-mwext-sync (Code Review)
Jenkins-mwext-sync has uploaded a new change for review.

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

Change subject: Syncronize VisualEditor: 7a39be3..d1386ae
..

Syncronize VisualEditor: 7a39be3..d1386ae

Change-Id: Icb9d9d6c46db4d704d6747444224a10c97eed74e
---
M VisualEditor
1 file changed, 0 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions 
refs/changes/97/262997/1

diff --git a/VisualEditor b/VisualEditor
index 7a39be3..d1386ae 16
--- a/VisualEditor
+++ b/VisualEditor
-Subproject commit 7a39be3798c01f05c8b5a450e014624178b8a23c
+Subproject commit d1386ae5b8f6d2599bdb16bb7cdfabe67a130c48

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb9d9d6c46db4d704d6747444224a10c97eed74e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions
Gerrit-Branch: master
Gerrit-Owner: Jenkins-mwext-sync 

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


[MediaWiki-commits] [Gerrit] Output width and height attribs for - change (mediawiki...TimedMediaHandler)

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

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

Change subject: Output width and height attribs for 
..

Output width and height attribs for 

Since we are slowly moving to more proper html  output, add the
width and height attribs to  element. Not removing the style
base width and height yet, because it breaks the kalture player.

Change-Id: I0c3712a6677efffa12cf95283c9010bc2e7c42eb
---
M TimedMediaTransformOutput.php
1 file changed, 21 insertions(+), 21 deletions(-)


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

diff --git a/TimedMediaTransformOutput.php b/TimedMediaTransformOutput.php
index 011aaa5..12bbd9c 100644
--- a/TimedMediaTransformOutput.php
+++ b/TimedMediaTransformOutput.php
@@ -321,13 +321,6 @@
}
}
 
-   $width = $sizeOverride ? $sizeOverride[0] : 
$this->getPlayerWidth();
-   if ( $this->fillwindow ) {
-   $width = '100%';
-   } else {
-   $width .= 'px';
-   }
-
if ( $wgTmhWebPlayer === 'videojs' ) {
// Build the video tag output:
$s = Html::rawElement( $this->getTagName(), 
$this->getMediaAttr( $sizeOverride, $autoPlay ),
@@ -344,6 +337,13 @@
);
return $s;
} // else mwEmbed player
+
+   $width = $sizeOverride ? $sizeOverride[0] : 
$this->getPlayerWidth();
+   if ( $this->fillwindow ) {
+   $width = '100%';
+   } else {
+   $width .= 'px';
+   }
 
// Build the video tag output:
$s = Xml::tags( 'div', array(
@@ -404,14 +404,6 @@
// The poster url:
$posterUrl = $this->getUrl( $sizeOverride );
 
-   if ( $this->fillwindow ) {
-   $width = '100%';
-   $height = '100%';
-   } else {
-   $width .= 'px';
-   $height .= 'px';
-   }
-
$mediaAttr = array(
'id' => self::PLAYER_ID_PREFIX . 
TimedMediaTransformOutput::$serial++,
// Get the correct size:
@@ -423,6 +415,9 @@
// Since we will reload the item with javascript,
// tell browser to not load the video before
'preload'=>'none',
+
+   'width' => intval( $width ),
+   'height' => intval( $height ),
);
 
if ( $autoPlay === true ) {
@@ -431,10 +426,7 @@
 
if ( $wgTmhWebPlayer === 'videojs' ) {
$mediaAttr['class'] = 'video-js ' . $wgVideoPlayerSkin;
-   $mediaAttr['width'] = $width;
-   if ( $this->isVideo ) {
-   $mediaAttr['height'] = $height;
-   } else {
+   if ( !$this->isVideo ) {
unset( $mediaAttr['height'] );
unset( $mediaAttr['poster'] );
}
@@ -443,10 +435,18 @@
$mediaAttr[ 'controls' ] = false;
}
} else {
-   $mediaAttr['style'] = "width:{$width}";
+   if ( $this->fillwindow ) {
+   $width = '100%';
+   $height = '100%';
+   } else {
+   $width .= 'px';
+   $height .= 'px';
+   }
 
+   // Yuck inline styles.. but fixing the script is too 
much work
+   $mediaAttr['style'] = "width:{$width};";
if ( $this->isVideo ) {
-   $mediaAttr['style'] .= ";height:{$height}";
+   $mediaAttr['style'] .= ";height:{$height};";
}
 
// MediaWiki uses the kSkin class

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c3712a6677efffa12cf95283c9010bc2e7c42eb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TimedMediaHandler
Gerrit-Branch: master
Gerrit-Owner: TheDJ 

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


[MediaWiki-commits] [Gerrit] Detect if ApiSandbox is in core - change (mediawiki...ApiSandbox)

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

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

Change subject: Detect if ApiSandbox is in core
..

Detect if ApiSandbox is in core

Change-Id: I85c0eedcd31a0e419d8055eca0d9cb1ba872ae62
---
M ApiSandbox.php
A README-deprecated
2 files changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ApiSandbox 
refs/changes/77/262977/1

diff --git a/ApiSandbox.php b/ApiSandbox.php
index 2e8a26b..5a5d069 100644
--- a/ApiSandbox.php
+++ b/ApiSandbox.php
@@ -1,4 +1,14 @@
 https://gerrit.wikimedia.org/r/#/c/209570/

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I85c0eedcd31a0e419d8055eca0d9cb1ba872ae62
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ApiSandbox
Gerrit-Branch: master
Gerrit-Owner: Anomie 

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


[MediaWiki-commits] [Gerrit] Add print.css - change (mediawiki...Mask)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add print.css
..


Add print.css

Change-Id: Ib1675e327585fe134918e01845065293475fe9e3
---
M resources/main.css
A resources/print.css
M skin.json
3 files changed, 21 insertions(+), 1 deletion(-)

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



diff --git a/resources/main.css b/resources/main.css
index c4a4337..d9ec49d 100644
--- a/resources/main.css
+++ b/resources/main.css
@@ -25,7 +25,7 @@
 }
 
 
-body.skin-mask {
+body {
direction: ltr;
margin: 0;
padding: 0;
diff --git a/resources/print.css b/resources/print.css
new file mode 100644
index 000..9aa8342
--- /dev/null
+++ b/resources/print.css
@@ -0,0 +1,17 @@
+/* Styles for print view and printing */
+
+#toc,
+#catlinks,
+#top-container,
+#bottom-container,
+#tools-bottom,
+#siteSub,
+.mw-cite-backlink,
+.printfooter {
+   display: none;
+}
+
+body {
+   font-family: 'Linux Biolinum', sans-serif;
+   text-align: justify;
+}
diff --git a/skin.json b/skin.json
index 5413a26..920d845 100644
--- a/skin.json
+++ b/skin.json
@@ -36,6 +36,9 @@
},
"resources/main.css": {
"media": "screen"
+   },
+   "resources/print.css": {
+   "media": "print"
}
},
"position": "top"

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib1675e327585fe134918e01845065293475fe9e3
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/skins/Mask
Gerrit-Branch: master
Gerrit-Owner: Isarra 
Gerrit-Reviewer: Isarra 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Update grunt-jscs to 2.6.0 - change (mediawiki/core)

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

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

Change subject: Update grunt-jscs to 2.6.0
..

Update grunt-jscs to 2.6.0

Change-Id: I4b1585c557b94927e593975e2e4696b88becd095
---
M package.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/40/262940/1

diff --git a/package.json b/package.json
index 74eaac5..5a8257c 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
 "grunt-contrib-copy": "0.8.1",
 "grunt-contrib-jshint": "0.11.3",
 "grunt-contrib-watch": "0.6.1",
-"grunt-jscs": "2.5.0",
+"grunt-jscs": "2.6.0",
 "grunt-jsonlint": "1.0.7",
 "grunt-karma": "0.12.1",
 "karma": "0.13.19",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b1585c557b94927e593975e2e4696b88becd095
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Paladox 

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


[MediaWiki-commits] [Gerrit] jQuery.makeCollapsible: Font color of collapsible button set - change (mediawiki/core)

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

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

Change subject: jQuery.makeCollapsible: Font color of collapsible button set
..

jQuery.makeCollapsible: Font color of collapsible button set

The font color for the collapsible button is now set which inherits
its color from the parent class(mw-collapsible-toggle). If the background
color of the button which contains the collapsible button is changed,
readability of the button will not be difficult.

Bug: T63018
Change-Id: Icd0b8b3434ecf53a155e840d9ab3e276a60b7ca6
---
M resources/src/jquery/jquery.makeCollapsible.css
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/37/262937/1

diff --git a/resources/src/jquery/jquery.makeCollapsible.css 
b/resources/src/jquery/jquery.makeCollapsible.css
index 2e5efba..48f1b92 100644
--- a/resources/src/jquery/jquery.makeCollapsible.css
+++ b/resources/src/jquery/jquery.makeCollapsible.css
@@ -45,3 +45,8 @@
 .mw-collapsible-toggle-li {
list-style: none;
 }
+
+/* collapsible button(text link) inherits color from the parent class */
+.mw-collapsible-toggle a {
+  color: inherit;
+}
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd0b8b3434ecf53a155e840d9ab3e276a60b7ca6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: D3r1ck01 

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


[MediaWiki-commits] [Gerrit] [Configure] Update Jenkins tests - change (integration/config)

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

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

Change subject: [Configure] Update Jenkins tests
..

[Configure] Update Jenkins tests

Add npm and composer-test tests.

Replace jslint test with jsonlint and jshint test for non-whitelisted
users.

Change-Id: Ica2b7a0001ff80604f95c89d1ec4413551eca76c
---
M jjb/mediawiki-extensions.yaml
M zuul/layout.yaml
2 files changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/36/262936/1

diff --git a/jjb/mediawiki-extensions.yaml b/jjb/mediawiki-extensions.yaml
index 4a64440..fc9be37 100644
--- a/jjb/mediawiki-extensions.yaml
+++ b/jjb/mediawiki-extensions.yaml
@@ -688,7 +688,6 @@
   - mwext-CommunityTwitter
   - mwext-CommunityVoice
   - mwext-ConditionalShowSection
-  - mwext-Configure
   - mwext-CongressLookup
   - mwext-Contest
   - mwext-ContributionReporting
diff --git a/zuul/layout.yaml b/zuul/layout.yaml
index 3d17c5a..80a706a 100644
--- a/zuul/layout.yaml
+++ b/zuul/layout.yaml
@@ -750,8 +750,6 @@
 voting: false
   - name: mwext-CommunityVoice-jslint # bug 61595
 voting: false
-  - name: mwext-Configure-jslint # bug 61596
-voting: false
   - name: mwext-ContributionTracking-jslint # bug 61599
 voting: false
   - name: mwext-CustomUserSignup-jslint # bug 61600
@@ -2874,8 +2872,12 @@
 
   - name: mediawiki/extensions/Configure
 template:
-  - name: extension-jslint
+  - name: composer-test
   - name: extension-unittests-generic
+  - name: npm
+check:
+  - jsonlint
+  - jshint
 
   - name: mediawiki/extensions/ConfirmAccount
 template:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica2b7a0001ff80604f95c89d1ec4413551eca76c
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Paladox 

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


[MediaWiki-commits] [Gerrit] Add datetime input widget - change (mediawiki/core)

2016-01-07 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Add datetime input widget
..


Add datetime input widget

Since OOJS-UI isn't currently in a position to accept such things, the
decision is to put it in MediaWiki instead. Once OOJS-UI is
un-monolithicized and the i18n issue is solved, this should be somehow
moved there instead.

Change-Id: Ia3942c76804c865c1039904d170ee6eafcdc6793
---
M languages/i18n/en.json
M languages/i18n/qqq.json
M resources/Resources.php
A resources/src/mediawiki.widgets.datetime/CalendarWidget.js
A resources/src/mediawiki.widgets.datetime/CalendarWidget.less
A resources/src/mediawiki.widgets.datetime/DateTimeFormatter.js
A resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js
A resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.less
A resources/src/mediawiki.widgets.datetime/DiscordianDateTimeFormatter.js
A 
resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js
A 
resources/src/mediawiki.widgets.datetime/mediawiki.widgets.datetime.definitions.less
A resources/src/mediawiki.widgets.datetime/mediawiki.widgets.datetime.js
12 files changed, 3,588 insertions(+), 0 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  Jforrester: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index 0b31abc..3a4857b 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -115,6 +115,8 @@
"october-date": "October $1",
"november-date": "November $1",
"december-date": "December $1",
+   "period-am": "AM",
+   "period-pm": "PM",
"pagecategories": "{{PLURAL:$1|Category|Categories}}",
"pagecategorieslink": "Special:Categories",
"category_header": "Pages in category \"$1\"",
@@ -3403,6 +3405,7 @@
"signature": "[[{{ns:user}}:$1|$2]] ([[{{ns:user_talk}}:$1|talk]])",
"signature-anon": "[[{{#special:Contributions}}/$1|$2]]",
"timezone-utc": "UTC",
+   "timezone-local": "Local",
"duplicate-defaultsort": "Warning: Default sort key 
\"$2\" overrides earlier default sort key \"$1\".",
"duplicate-displaytitle": "Warning: Display title 
\"$2\" overrides earlier display title \"$1\".",
"invalid-indicator-name": "Error: Page status 
indicators' name attribute must not be empty.",
diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index 60ae69e..b0cfb61 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -290,6 +290,8 @@
"october-date": "A date in the Gregorian month of October. $1 is the 
numerical date, for example \"23\".",
"november-date": "A date in the Gregorian month of November. $1 is the 
numerical date, for example \"23\".\n{{Identical|November}}",
"december-date": "A date in the Gregorian month of December. $1 is the 
numerical date, for example \"23\".",
+   "period-am": "Text indicating the first period of the day when using a 
12-hour calendar.",
+   "period-pm": "Text indicating the second period of the day when using a 
12-hour calendar.",
"pagecategories": "Used in the categories section of pages.\n\nFollowed 
by a colon and a list of categories.\n\nParameters:\n* $1 - number of 
categories\n{{Identical|Category}}",
"pagecategorieslink": "{{notranslate}}",
"category_header": "In category description page. Parameters:\n* $1 - 
category name\nSee also:\n* {{msg-mw|Category-media-header}}",
@@ -3578,6 +3580,7 @@
"signature": "This will be substituted in the signature 
(~~~ or  excluding 
timestamp).\n\nParameters:\n* $1 - the username that is currently login\n* $2 - 
the customized signature which is specified in [[Special:Preferences|user's 
preferences]] as non-raw\nUse your language default parentheses 
({{msg-mw|parentheses}}), but not use the message direct.\n\nSee also:\n* 
{{msg-mw|Signature-anon}} - signature for anonymous user",
"signature-anon": "{{notranslate}}\nUsed as signature for anonymous 
user. Parameters:\n* $1 - username (IP address?)\n* $2 - nickname (IP 
address?)\nSee also:\n* {{msg-mw|Signature}} - signature for registered user",
"timezone-utc": "{{optional}}",
+   "timezone-local": "Label to indicate that a time is in the user's local 
timezone.",
"duplicate-defaultsort": "See definition of [[w:Sorting|sort key]] on 
Wikipedia. Parameters:\n* $1 - old default sort key\n* $2 - new default sort 
key",
"duplicate-displaytitle": "Warning shown when a page has its display 
title set multiple times. Parameters:\n* $1 - old display title\n* $2 - new 
display title",
"invalid-indicator-name": "Warning shown when the 
[https://www.mediawiki.org/wiki/Help:Page_status_indicators ''content''] parser tag is used 
incorrectly.",
diff --git a/reso

[MediaWiki-commits] [Gerrit] Replace usage of deprecated OutputPage::setSquidMaxage - change (mediawiki...Wikibase)

2016-01-07 Thread Hoo man (Code Review)
Hoo man has uploaded a new change for review.

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

Change subject: Replace usage of deprecated OutputPage::setSquidMaxage
..

Replace usage of deprecated OutputPage::setSquidMaxage

The new OutputPage::setCdnMaxage does exactly the same.

Change-Id: I587972094e5687672345057345019388f2748e2b
---
M repo/includes/specials/SpecialListProperties.php
M repo/includes/specials/SpecialWikibaseQueryPage.php
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/35/262935/1

diff --git a/repo/includes/specials/SpecialListProperties.php 
b/repo/includes/specials/SpecialListProperties.php
index cd77797..5773c86 100644
--- a/repo/includes/specials/SpecialListProperties.php
+++ b/repo/includes/specials/SpecialListProperties.php
@@ -121,7 +121,7 @@
parent::execute( $subPage );
 
$output = $this->getOutput();
-   $output->setSquidMaxage( static::CACHE_TTL_IN_SECONDS );
+   $output->setCdnMaxage( static::CACHE_TTL_IN_SECONDS );
 
$this->prepareArguments( $subPage );
$this->showForm();
diff --git a/repo/includes/specials/SpecialWikibaseQueryPage.php 
b/repo/includes/specials/SpecialWikibaseQueryPage.php
index b8c19c4..333129a 100644
--- a/repo/includes/specials/SpecialWikibaseQueryPage.php
+++ b/repo/includes/specials/SpecialWikibaseQueryPage.php
@@ -84,7 +84,7 @@
parent::execute( $subPage );
 
$output = $this->getOutput();
-   $output->setSquidMaxage( static::CACHE_TTL_IN_SECONDS );
+   $output->setCdnMaxage( static::CACHE_TTL_IN_SECONDS );
}
 
/**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I587972094e5687672345057345019388f2748e2b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Hoo man 

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


[MediaWiki-commits] [Gerrit] Update mobileapps to a4a5275 - change (mediawiki...deploy)

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

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

Change subject: Update mobileapps to a4a5275
..

Update mobileapps to a4a5275

List of changes:
8461805 Create mobile content service route for Wiktionary definitions
c5f672f Put page/ back in endpoint path
a4a5275 Switch to node 4.2
xxx Update node module dependencies

Change-Id: Ib92f98ef3e3e3618b4b8f518807cb2428660913e
---
M node_modules/ansi-regex/package.json
M node_modules/bluebird/package.json
R node_modules/body-parser/node_modules/bytes/LICENSE
M node_modules/body-parser/node_modules/bytes/index.js
M node_modules/body-parser/node_modules/bytes/package.json
M node_modules/body-parser/node_modules/depd/package.json
R node_modules/body-parser/node_modules/http-errors/LICENSE
R node_modules/body-parser/node_modules/http-errors/index.js
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/LICENSE
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/inherits.js
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/inherits_browser.js
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/package.json
R 
node_modules/body-parser/node_modules/http-errors/node_modules/inherits/test.js
C 
node_modules/body-parser/node_modules/http-errors/node_modules/statuses/LICENSE
C 
node_modules/body-parser/node_modules/http-errors/node_modules/statuses/codes.json
C 
node_modules/body-parser/node_modules/http-errors/node_modules/statuses/index.js
R 
node_modules/body-parser/node_modules/http-errors/node_modules/statuses/package.json
R node_modules/body-parser/node_modules/http-errors/package.json
M node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js
M node_modules/body-parser/node_modules/iconv-lite/package.json
M node_modules/body-parser/node_modules/qs/.travis.yml
M node_modules/body-parser/node_modules/qs/dist/qs.js
M node_modules/body-parser/node_modules/qs/lib/stringify.js
M node_modules/body-parser/node_modules/qs/package.json
M node_modules/body-parser/node_modules/qs/test/stringify.js
D node_modules/body-parser/node_modules/raw-body/node_modules/bytes/index.js
D node_modules/body-parser/node_modules/raw-body/node_modules/bytes/package.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/.npmignore
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/.travis.yml
D node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/LICENSE
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-codec.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-data.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/index.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/internal.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-codec.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data-generated.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/big5-added.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp936.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp949.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp950.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/eucjp.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gbk-added.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/shiftjis.json
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/utf16.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/encodings/utf7.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/lib/bom-handling.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/lib/extend-node.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/lib/index.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/lib/streams.js
D 
node_modules/body-parser/node_modules/raw-body/node_modules/iconv-lite/package.json
M node_modules/body-parser/node_modules/raw-body/package.json
M node_modules/body-parser/package.json
M node_modules/bunyan/node_modules/dtrace-provider/node_modules/nan/package.json
M node_modules/bunyan/node_modules/dtrace-provider/package.json
M node_mod

[MediaWiki-commits] [Gerrit] Fix jenkins test failing for js - change (mediawiki...Configure)

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

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

Change subject: Fix jenkins test failing for js
..

Fix jenkins test failing for js

Add npm and composer test support.

Change-Id: I6846cb7df24fbf2dff4116131361eee3c3c01413
---
A .jshintignore
A .jshintrc
M Configure.js
A Gruntfile.js
A composer.json
A package.json
6 files changed, 77 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Configure 
refs/changes/34/262934/1

diff --git a/.jshintignore b/.jshintignore
new file mode 100644
index 000..022b988
--- /dev/null
+++ b/.jshintignore
@@ -0,0 +1,2 @@
+node_modules
+vendor
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 000..8a2a10c
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,23 @@
+{
+   // Enforcing
+   "bitwise": true,
+   "eqeqeq": true,
+   "freeze": true,
+   "latedef": true,
+   "noarg": true,
+   "nonew": true,
+   "undef": true,
+   "unused": true,
+   "strict": false,
+
+   // Relaxing
+   "es5": false,
+
+   // Environment
+   "browser": true,
+   "jquery": true,
+
+   "globals": {
+   "mediaWiki": false
+   }
+}
diff --git a/Configure.js b/Configure.js
index 913303f..6ace5f4 100644
--- a/Configure.js
+++ b/Configure.js
@@ -494,10 +494,11 @@
// For each setting...
for( var i=0; 
ihttps://gerrit.wikimedia.org/r/262934
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6846cb7df24fbf2dff4116131361eee3c3c01413
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Configure
Gerrit-Branch: master
Gerrit-Owner: Paladox 

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


[MediaWiki-commits] [Gerrit] Switch to node 4.2 - change (mediawiki...mobileapps)

2016-01-07 Thread Mobrovac (Code Review)
Mobrovac has submitted this change and it was merged.

Change subject: Switch to node 4.2
..


Switch to node 4.2

We are switching to node 4.2 in production. As a prerequisite, the
deploy build script must be instructed to use the correct version of
node during the dependencies build process.

Change-Id: I71198b26b698556d173389fd26c9c2b5bb5844f6
---
M package.json
1 file changed, 2 insertions(+), 1 deletion(-)

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



diff --git a/package.json b/package.json
index 38b33f4..1f15ed9 100644
--- a/package.json
+++ b/package.json
@@ -48,7 +48,7 @@
 "js-yaml": "^3.4.3",
 "phpjs": "^1.3.2",
 "preq": "^0.4.4",
-"service-runner": "^0.3.1",
+"service-runner": "^0.3.5",
 "underscore": "^1.8.3"
   },
   "devDependencies": {
@@ -61,6 +61,7 @@
 "swagger-router": "^0.2.0"
   },
   "deploy": {
+"node": "4.2",
 "target": "debian",
 "dependencies": {
   "_all": []

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I71198b26b698556d173389fd26c9c2b5bb5844f6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mobrovac 
Gerrit-Reviewer: BearND 
Gerrit-Reviewer: Mholloway 
Gerrit-Reviewer: Mobrovac 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Switch to node 4.2 - change (mediawiki...mobileapps)

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

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

Change subject: Switch to node 4.2
..

Switch to node 4.2

We are switching to node 4.2 in production. As a prerequisite, the
deploy build script must be instructed to use the correct version of
node during the dependencies build process.

Change-Id: I71198b26b698556d173389fd26c9c2b5bb5844f6
---
M package.json
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/32/262932/1

diff --git a/package.json b/package.json
index 38b33f4..1f15ed9 100644
--- a/package.json
+++ b/package.json
@@ -48,7 +48,7 @@
 "js-yaml": "^3.4.3",
 "phpjs": "^1.3.2",
 "preq": "^0.4.4",
-"service-runner": "^0.3.1",
+"service-runner": "^0.3.5",
 "underscore": "^1.8.3"
   },
   "devDependencies": {
@@ -61,6 +61,7 @@
 "swagger-router": "^0.2.0"
   },
   "deploy": {
+"node": "4.2",
 "target": "debian",
 "dependencies": {
   "_all": []

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I71198b26b698556d173389fd26c9c2b5bb5844f6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mobrovac 

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


[MediaWiki-commits] [Gerrit] Test: Do Not merge - change (mediawiki...Configure)

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

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

Change subject: Test: Do Not merge
..

Test: Do Not merge

Change-Id: Ie6c94ca1c9f650140391489b4df8bfb1e58c0117
---
M Configure.js
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Configure 
refs/changes/31/262931/1

diff --git a/Configure.js b/Configure.js
index 913303f..3810e74 100644
--- a/Configure.js
+++ b/Configure.js
@@ -3,6 +3,7 @@
  * create JavaScript buttons to allow to modify the form to have more
  * flexibility
  */
+ 
 jQuery( document ).ready( function ( $ ) {
"use strict";
// Tabs and TOC

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6c94ca1c9f650140391489b4df8bfb1e58c0117
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Configure
Gerrit-Branch: master
Gerrit-Owner: Paladox 

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


[MediaWiki-commits] [Gerrit] [SemanticDrilldown] Update Jenkins tests - change (integration/config)

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

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

Change subject: [SemanticDrilldown] Update Jenkins tests
..

[SemanticDrilldown] Update Jenkins tests

Replace jslint test with jshint and jsonlint test.

Add extension-unittests-generic test.

Change-Id: I568a26c0e763d5c1bc000e6ca870a05324405fae
---
M jjb/mediawiki-extensions.yaml
M zuul/layout.yaml
2 files changed, 3 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/30/262930/1

diff --git a/jjb/mediawiki-extensions.yaml b/jjb/mediawiki-extensions.yaml
index 4a64440..94cf81e 100644
--- a/jjb/mediawiki-extensions.yaml
+++ b/jjb/mediawiki-extensions.yaml
@@ -894,7 +894,6 @@
   - mwext-SelectCategory
   - mwext-SelectTag
   - mwext-SemanticComments
-  - mwext-SemanticDrilldown
   - mwext-SemanticExpressiveness
   - mwext-SemanticHighcharts
   - mwext-SemanticImageInput
diff --git a/zuul/layout.yaml b/zuul/layout.yaml
index 3d17c5a..85b09f3 100644
--- a/zuul/layout.yaml
+++ b/zuul/layout.yaml
@@ -774,8 +774,6 @@
 voting: false
   - name: mwext-SecurePoll-jslint # bug 61626
 voting: false
-  - name: mwext-SemanticDrilldown-jslint # bug 61628
-voting: false
   - name: mwext-SemanticExpressiveness-jslint # bug 61629
 voting: false
   - name: mwext-SemanticImageInput-jslint # bug 61632
@@ -6631,7 +6629,9 @@
 
   - name: mediawiki/extensions/SemanticDrilldown
 template:
-  - name: extension-checks
+  - name: jshint
+  - name: jsonlint
+  - name: extension-unittests-generic
 
   - name: mediawiki/extensions/SemanticDummyEditor
 template:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I568a26c0e763d5c1bc000e6ca870a05324405fae
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Paladox 

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


[MediaWiki-commits] [Gerrit] Add print.css - change (mediawiki...Mask)

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

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

Change subject: Add print.css
..

Add print.css

Change-Id: Ib1675e327585fe134918e01845065293475fe9e3
---
M resources/main.css
A resources/print.css
M skin.json
3 files changed, 22 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Mask 
refs/changes/29/262929/1

diff --git a/resources/main.css b/resources/main.css
index c4a4337..d9ec49d 100644
--- a/resources/main.css
+++ b/resources/main.css
@@ -25,7 +25,7 @@
 }
 
 
-body.skin-mask {
+body {
direction: ltr;
margin: 0;
padding: 0;
diff --git a/resources/print.css b/resources/print.css
new file mode 100644
index 000..54d4a9e
--- /dev/null
+++ b/resources/print.css
@@ -0,0 +1,18 @@
+/* Styles for print view and printing */
+
+#toc,
+#catlinks,
+#top-container,
+#bottom-container,
+#tools-bottom,
+#siteSub,
+.mw-cite-backlink,
+.printfooter {
+   display: none;
+}
+
+body {
+   margin: 2em;
+   font-family: 'Linux Biolinum', sans-serif;
+   text-align: justify;
+}
diff --git a/skin.json b/skin.json
index 5413a26..920d845 100644
--- a/skin.json
+++ b/skin.json
@@ -36,6 +36,9 @@
},
"resources/main.css": {
"media": "screen"
+   },
+   "resources/print.css": {
+   "media": "print"
}
},
"position": "top"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1675e327585fe134918e01845065293475fe9e3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/Mask
Gerrit-Branch: master
Gerrit-Owner: Isarra 

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


[MediaWiki-commits] [Gerrit] Fix jslint test so it passes - change (mediawiki...SemanticDrilldown)

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

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

Change subject: Fix jslint test so it passes
..

Fix jslint test so it passes

Change-Id: I80b58eee75e2507998ff1b5c0ef0bf0d8138f458
---
M libs/SemanticDrilldown.js
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticDrilldown 
refs/changes/28/262928/1

diff --git a/libs/SemanticDrilldown.js b/libs/SemanticDrilldown.js
index f61e8f7..c9a18cd 100644
--- a/libs/SemanticDrilldown.js
+++ b/libs/SemanticDrilldown.js
@@ -9,10 +9,11 @@
jQuery.ui.autocomplete.prototype._renderItem = function( ul, item) {
var re = new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + 
this.term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + 
")(?![^<>]*>)(?![^&;]+;)", "gi");
var loc = item.label.search(re);
+   var t;
if (loc >= 0) {
-   var t = item.label.substr(0, loc) + '' + 
item.label.substr(loc, this.term.length) + '' + item.label.substr(loc 
+ this.term.length);
+   t = item.label.substr(0, loc) + '' + 
item.label.substr(loc, this.term.length) + '' + item.label.substr(loc 
+ this.term.length);
} else {
-   var t = item.label;
+   t = item.label;
}
return jQuery( "" )
.data( "item.autocomplete", item )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I80b58eee75e2507998ff1b5c0ef0bf0d8138f458
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticDrilldown
Gerrit-Branch: master
Gerrit-Owner: Paladox 

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


[MediaWiki-commits] [Gerrit] Test: Do not merge - change (mediawiki...SemanticDrilldown)

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

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

Change subject: Test: Do not merge
..

Test: Do not merge

Change-Id: I87d758aa114529e2d8d7191923c60b0e19f60f73
---
M libs/SemanticDrilldown.js
1 file changed, 1 insertion(+), 0 deletions(-)


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

diff --git a/libs/SemanticDrilldown.js b/libs/SemanticDrilldown.js
index f61e8f7..875cd37 100644
--- a/libs/SemanticDrilldown.js
+++ b/libs/SemanticDrilldown.js
@@ -5,6 +5,7 @@
  *
  * @author Sanyam Goyal
  */
+ 
 (function(jQuery) {
jQuery.ui.autocomplete.prototype._renderItem = function( ul, item) {
var re = new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + 
this.term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + 
")(?![^<>]*>)(?![^&;]+;)", "gi");

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I87d758aa114529e2d8d7191923c60b0e19f60f73
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticDrilldown
Gerrit-Branch: master
Gerrit-Owner: Paladox 

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


[MediaWiki-commits] [Gerrit] Add parser tests for TMH output - change (mediawiki...TimedMediaHandler)

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

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

Change subject: Add parser tests for TMH output
..

Add parser tests for TMH output

Change-Id: I4ec8e3af4418cc775f986201b3c86c19b31e0530
Depends-On: I6a3b307ad9c82e9df0aeec025934d736eec8375f
---
M TimedMediaHandler.php
A tests/parserTests.txt
2 files changed, 101 insertions(+), 0 deletions(-)


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

diff --git a/TimedMediaHandler.php b/TimedMediaHandler.php
index 4d24cb9..04a9e92 100644
--- a/TimedMediaHandler.php
+++ b/TimedMediaHandler.php
@@ -234,6 +234,7 @@
 // Testing:
 $wgAutoloadClasses['ApiTestCaseVideoUpload'] =
"$timedMediaDir/tests/phpunit/ApiTestCaseVideoUpload.php";
+$wgParserTestFiles[] = "$timedMediaDir/tests/parserTests.txt";
 
 // Ogg Handler
 $wgAutoloadClasses['OggHandlerTMH'] = 
"$timedMediaDir/handlers/OggHandler/OggHandler.php";
diff --git a/tests/parserTests.txt b/tests/parserTests.txt
new file mode 100644
index 000..b63124c
--- /dev/null
+++ b/tests/parserTests.txt
@@ -0,0 +1,100 @@
+!! test
+Simple video element
+!! wikitext
+[[File:Video.ogv]]
+!! html
+http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"; 
controls="" preload="none" style="width:320px;height:240px" class="kskin" 
data-durationhint="4.36667" data-startoffset="0" 
data-mwtitle="Video.ogv" data-mwprovider="local">http://example.com/images/0/00/Video.ogv"; type="video/ogg; 
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)" 
data-shorttitle="Ogg source" data-width="320" data-height="240" 
data-bandwidth="590013" data-framerate="30" />Sorry, your browser either has 
JavaScript disabled or does not have any supported player. You can http://example.com/images/0/00/Video.ogv";>download the clip or https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download";>download
 a player to play the clip in your browser.
+
+!! html+tidy
+http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"; 
controls="" preload="none" style="width:320px;height:240px" class="kskin" 
data-durationhint="4.36667" data-startoffset="0" 
data-mwtitle="Video.ogv" data-mwprovider="local">http://example.com/images/0/00/Video.ogv"; type="video/ogg; 
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)" 
data-shorttitle="Ogg source" data-width="320" data-height="240" 
data-bandwidth="590013" data-framerate="30">Sorry, your browser either 
has JavaScript disabled or does not have any supported player.
+You can http://example.com/images/0/00/Video.ogv";>download the 
clip or https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download";>download
 a player to play the clip in your browser.
+!!end
+
+!! test
+Simple thumbed video
+!! wikitext
+[[File:Video.ogv|thumb]]
+!! html
+http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg";
 controls="" preload="none" autoplay="" 
style="width:320px;height:240px" class="kskin" 
data-durationhint="4.36667" data-startoffset="0" 
data-mwtitle="Video.ogv" 
data-mwprovider="local">Sorry, 
your browser either has JavaScript disabled or does not have any supported 
player.
You can download the clip or download a player to play the clip in your browser.