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$/
+                        page_namespace: 120
                     exec:
                       - method: get
                         uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/summary/{message.page_title}'
@@ -599,8 +627,12 @@
                       removed_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$/
+                        page_namespace: 120
                     exec:
                       - method: get
                         uri: '<%= restbase_uri 
%>/{{message.meta.domain}}/v1/page/summary/{message.page_title}'

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I563a7c036b4a41ac52557b7eafadf332294cf30d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/services/change-propagation/deploy
Gerrit-Branch: master
Gerrit-Owner: Ppchelko <ppche...@wikimedia.org>
Gerrit-Reviewer: Mobrovac <mobro...@wikimedia.org>

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

Reply via email to