Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add support for alias update for flush agent #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions conf/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions lib/ruby_aem/resources/flush_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,6 +46,7 @@ def create_update(
description,
dest_base_url,
opts = {
alias_update: false,
log_level: 'error',
retry_delay: 30_000
}
Expand Down