From a8e156dba06f51898e976efce9e0a7299e624148 Mon Sep 17 00:00:00 2001 From: "Brouns, Robin" Date: Mon, 26 Aug 2024 10:24:23 +0200 Subject: [PATCH 1/2] Add support for the aliasUpdate property (being used in replication flush agent) --- conf/spec.yaml | 1 + lib/ruby_aem/resources/flush_agent.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/conf/spec.yaml b/conf/spec.yaml index 19db2b6..3c279a3 100644 --- a/conf/spec.yaml +++ b/conf/spec.yaml @@ -354,6 +354,7 @@ flushagent: jcrcontent_jcrdescription: '%{description}' jcrcontent_slingresource_type: cq/replication/components/agent jcrcontent_transport_uri: '%{dest_base_url}/dispatcher/invalidate.cache' + jcrcontent_alias_update: '%{alias_update}' jcrcontent_log_level: '%{log_level}' jcrcontent_no_versioning: true jcrcontent_protocol_http_headers: diff --git a/lib/ruby_aem/resources/flush_agent.rb b/lib/ruby_aem/resources/flush_agent.rb index 2801197..77e8274 100644 --- a/lib/ruby_aem/resources/flush_agent.rb +++ b/lib/ruby_aem/resources/flush_agent.rb @@ -37,6 +37,7 @@ def initialize(client, run_mode, name) # @param description flush agent description # @param dest_base_url base URL of the agent target destination, e.g. http://somedispatcher:8080 # @param opts optional parameters: + # - alias_update: true, false, default is false # - log_level: error, info, debug, default is error # - retry_delay: in milliseconds, default is 30_000 # @return RubyAem::Result @@ -45,6 +46,7 @@ def create_update( description, dest_base_url, opts = { + alias_update: false, log_level: 'error', retry_delay: 30_000 } From ccba060ebc46e8b31187521aca67492d8f71e603 Mon Sep 17 00:00:00 2001 From: "Brouns, Robin" Date: Mon, 26 Aug 2024 10:44:40 +0200 Subject: [PATCH 2/2] Update changelog with aliasUpdate property feature --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68b0fe5..7436209 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased +### Added +- Added the possibility to configure the aliasUpdate for a replication flush agent. ## 3.17.0 - 2024-07-29 ### Added