Mobrovac has submitted this change and it was merged.

Change subject: Narrow down wikidata description updates
......................................................................


Narrow down wikidata description updates

Bug: T148079
Change-Id: I56d95707d29b0b30d5c6a50e99f7c1a97767bd02
---
M scap/templates/config.yaml.j2
1 file changed, 14 insertions(+), 2 deletions(-)

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



diff --git a/scap/templates/config.yaml.j2 b/scap/templates/config.yaml.j2
index fd6a321..b68eb14 100644
--- a/scap/templates/config.yaml.j2
+++ b/scap/templates/config.yaml.j2
@@ -553,13 +553,25 @@
                               revids: '{{message.rev_id}}'
                               precache: true
 
-                    # Re-renders summary on WikiData item update
-                    wikidata_description:
+                    wikidata_description_on_edit:
                       topic: mediawiki.revision-create
                       match:
                         meta:
                           domain: www.wikidata.org
                         page_namespace: 0
+                        # It's impossible to modify a comment in wikidata 
while editing the entity.
+                        comment: '/wbeditentity/'
+                      exec:
+                        method: post
+                        uri: '/sys/links/wikidata_descriptions'
+                        body: '{{globals.message}}'
+
+                    wikidata_description_on_revision_visibility_change:
+                      topic: mediawiki.revision-visibility-change
+                      match:
+                        meta:
+                          domain: www.wikidata.org
+                        page_namespace: 0
                       exec:
                         method: post
                         uri: '/sys/links/wikidata_descriptions'

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I56d95707d29b0b30d5c6a50e99f7c1a97767bd02
Gerrit-PatchSet: 1
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