Ppchelko has uploaded a new change for review. https://gerrit.wikimedia.org/r/306308
Change subject: Change-Prop: Enable file transclusion updates ...................................................................... Change-Prop: Enable file transclusion updates After a switch to the new driver we're finally ready to give another shot to file transclusion in change-prop. Change-Id: Ib7028f945d204786bcd250df673c9ac042f4c5e8 --- M modules/changeprop/templates/config.yaml.erb 1 file changed, 32 insertions(+), 32 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/08/306308/1 diff --git a/modules/changeprop/templates/config.yaml.erb b/modules/changeprop/templates/config.yaml.erb index 9792086..eaf7bef 100644 --- a/modules/changeprop/templates/config.yaml.erb +++ b/modules/changeprop/templates/config.yaml.erb @@ -16,17 +16,17 @@ options: host: <%= @purge_host %> port: <%= @purge_port %> -# /{api:sys}/links: -# x-modules: -# - path: src/sys/dep_updates.js -# options: -# templates: -# mw_api: -# uri: <%= @mwapi_uri %> -# headers: -# host: '{{message.meta.domain}}' -# body: -# formatversion: 2 + /{api:sys}/links: + x-modules: + - path: src/sys/dep_updates.js + options: + templates: + mw_api: + uri: <%= @mwapi_uri %> + headers: + host: '{{message.meta.domain}}' + body: + formatversion: 2 /{api:sys}/queue: x-modules: - path: src/sys/kafka.js @@ -212,27 +212,27 @@ cache-control: no-cache query: redirect: false -# -# transclusion_update: -# topic: mediawiki.revision_create -# exec: -# method: 'post' -# uri: '/sys/links/transcludes/{{message.page_title}}' -# body: '{{globals.message}}' -# -# on_transclusion_update: -# topic: resource_change -# match: -# meta: -# uri: '/https?:\/\/[^\/]+\/wiki\/(?<title>.+)/' -# tags: [ 'change-prop', 'transcludes' ] -# exec: -# method: get -# uri: '<%= @restbase_uri %>/{{message.meta.domain}}/v1/page/html/{{match.meta.uri.title}}' -# headers: -# cache-control: no-cache -# query: -# redirect: false + + transclusion_update: + topic: mediawiki.revision_create + exec: + method: 'post' + uri: '/sys/links/transcludes/{{message.page_title}}' + body: '{{globals.message}}' + + on_transclusion_update: + topic: resource_change + match: + meta: + uri: '/https?:\/\/[^\/]+\/wiki\/(?<title>.+)/' + tags: [ 'change-prop', 'transcludes' ] + exec: + method: get + uri: '<%= @restbase_uri %>/{{message.meta.domain}}/v1/page/html/{{match.meta.uri.title}}' + headers: + cache-control: no-cache + query: + redirect: false # ORES caching updates ores_cache: -- To view, visit https://gerrit.wikimedia.org/r/306308 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib7028f945d204786bcd250df673c9ac042f4c5e8 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Ppchelko <ppche...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits