[MediaWiki-commits] [Gerrit] mediawiki...deploy[master]: Config: Enable wikidata updates for all namespaces except 0 ...

2016-11-03 Thread Ppchelko (Code Review)
Ppchelko has uploaded a new change for review.

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

Change subject: Config: Enable wikidata updates for all namespaces except 0 and 
120
..

Config: Enable wikidata updates for all namespaces except 0 and 120

Wikidata still needs to use VisualEditor on all namespaces except
0 and 120, so enable updates for them.

Change-Id: I563a7c036b4a41ac52557b7eafadf332294cf30d
---
M scap/templates/config.yaml.j2
1 file changed, 48 insertions(+), 16 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/services/change-propagation/deploy 
refs/changes/48/319648/1

diff --git a/scap/templates/config.yaml.j2 b/scap/templates/config.yaml.j2
index 01f8fae..16b750b 100644
--- a/scap/templates/config.yaml.j2
+++ b/scap/templates/config.yaml.j2
@@ -171,8 +171,12 @@
 - '5xx'
 - 404 # Sometimes occasional 404s happen because of the 
mysql replication lag, so retry
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   method: get
   uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/html/{message.page_title}/{{message.rev_id}}'
@@ -190,8 +194,12 @@
 - 403 # When the revision is hidden 403 will be returned 
by RESTBase, it's a valid situation
 - 412
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   method: get
   uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/revision/{{message.rev_id}}'
@@ -207,8 +215,12 @@
 - 404 # 404 is a normal response for page deletion
 - 412
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   - method: get
 uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/title/{message.page_title}'
@@ -240,8 +252,12 @@
   page_restore:
 topic: mediawiki.page-undelete
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   method: get
   uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/html/{message.page_title}'
@@ -253,8 +269,12 @@
   page_move:
 topic: mediawiki.page-move
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   - method: get
 uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/html/{message.page_title}/{{message.rev_id}}'
@@ -273,8 +293,12 @@
   transclusion_update:
 topic: mediawiki.revision-create
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   method: post
   uri: '/sys/links/transcludes/{message.page_title}'
@@ -580,8 +604,12 @@
   added_properties:
 page_image: '/.+/' # Regex that matches anything just 
to check the prop is set
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+

[MediaWiki-commits] [Gerrit] mediawiki...deploy[master]: Config: Enable wikidata updates for all namespaces except 0 ...

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

Change subject: Config: Enable wikidata updates for all namespaces except 0 and 
120
..


Config: Enable wikidata updates for all namespaces except 0 and 120

Wikidata still needs to use VisualEditor on all namespaces except
0 and 120, so enable updates for them.

Bug: T149114
Change-Id: I563a7c036b4a41ac52557b7eafadf332294cf30d
---
M scap/templates/config.yaml.j2
1 file changed, 48 insertions(+), 16 deletions(-)

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



diff --git a/scap/templates/config.yaml.j2 b/scap/templates/config.yaml.j2
index 01f8fae..16b750b 100644
--- a/scap/templates/config.yaml.j2
+++ b/scap/templates/config.yaml.j2
@@ -171,8 +171,12 @@
 - '5xx'
 - 404 # Sometimes occasional 404s happen because of the 
mysql replication lag, so retry
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   method: get
   uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/html/{message.page_title}/{{message.rev_id}}'
@@ -190,8 +194,12 @@
 - 403 # When the revision is hidden 403 will be returned 
by RESTBase, it's a valid situation
 - 412
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   method: get
   uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/revision/{{message.rev_id}}'
@@ -207,8 +215,12 @@
 - 404 # 404 is a normal response for page deletion
 - 412
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   - method: get
 uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/title/{message.page_title}'
@@ -240,8 +252,12 @@
   page_restore:
 topic: mediawiki.page-undelete
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   method: get
   uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/html/{message.page_title}'
@@ -253,8 +269,12 @@
   page_move:
 topic: mediawiki.page-move
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   - method: get
 uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/html/{message.page_title}/{{message.rev_id}}'
@@ -273,8 +293,12 @@
   transclusion_update:
 topic: mediawiki.revision-create
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 120
 exec:
   method: post
   uri: '/sys/links/transcludes/{message.page_title}'
@@ -580,8 +604,12 @@
   added_properties:
 page_image: '/.+/' # Regex that matches anything just 
to check the prop is set
 match_not:
-  meta:
-domain: /\.wikidata\.org$/
+  - meta:
+  domain: /\.wikidata\.org$/
+page_namespace: 0
+  - meta:
+  domain: /\.wikidata\.org$/
+