Ppchelko has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/363731 )

Change subject: Config: Extend automatic blacklisting to derived content 
updates.
......................................................................

Config: Extend automatic blacklisting to derived content updates.

See https://github.com/wikimedia/change-propagation/pull/196
Bug: T169911

Change-Id: I763f99035c814aed9fefb2242cf810945251a86b
---
M scap/templates/config.yaml.j2
1 file changed, 11 insertions(+), 3 deletions(-)


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

diff --git a/scap/templates/config.yaml.j2 b/scap/templates/config.yaml.j2
index 7ffa612..0281a64 100644
--- a/scap/templates/config.yaml.j2
+++ b/scap/templates/config.yaml.j2
@@ -57,6 +57,8 @@
             templates:
               summary_definition_rerender: &summary_definition_rerender_spec
                 topic: '/^(?:change-prop\.transcludes\.)?resource[-_]change$/'
+                limiters:
+                  blacklist: 'summary:{message.meta.uri}'
                 cases:
                   - match:
                       meta:
@@ -95,6 +97,8 @@
 
               mobile_rerender: &mobile_rerender_spec
                 topic: '/^(?:change-prop\.transcludes\.)?resource[-_]change$/'
+                limiters:
+                  blacklist: 'mobile:{message.meta.uri}'
                 match:
                   meta:
                     uri: 
'/^https?:\/\/[^\/]+\/api\/rest_v1\/page\/html\/([^/]+)$/'
@@ -132,6 +136,8 @@
               # RESTBase update jobs
               mw_purge:
                 topic: resource_change
+                limiters:
+                  blacklist: 'html:{message.meta.uri}'
                 match:
                   meta:
                     uri: '/^https?:\/\/[^\/]+\/wiki\/(?<title>.+)$/'
@@ -157,6 +163,8 @@
                   status:
                     - 403 # Ignoring 403 since some of the pages with high 
number of null_edit events are blacklisted
                     - 412
+                limiters:
+                  blacklist: 'html:{message.meta.uri}'
                 match:
                   meta:
                     uri: '/^https?:\/\/[^\/]+\/wiki\/(?<title>.+)$/'
@@ -179,7 +187,7 @@
               page_edit:
                 topic: mediawiki.revision-create
                 limiters:
-                  blacklist: '{message.meta.uri}'
+                  blacklist: 'html:{message.meta.uri}'
                 retry_on:
                   status:
                     - '5xx'
@@ -319,7 +327,7 @@
                 concurrency: <%= concurrency * 8 %>
                 topic: change-prop.transcludes.resource-change
                 limiters:
-                  blacklist: '{message.meta.uri}'
+                  blacklist: 'html:{message.meta.uri}'
                 cases:
                   - match:
                       meta:
@@ -364,7 +372,7 @@
               on_backlinks_update:
                 topic: change-prop.backlinks.resource-change
                 limiters:
-                  blacklist: '{message.meta.uri}'
+                  blacklist: 'html:{message.meta.uri}'
                 cases:
                   - match:
                       meta:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I763f99035c814aed9fefb2242cf810945251a86b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/change-propagation/deploy
Gerrit-Branch: master
Gerrit-Owner: Ppchelko <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to