This repository was archived by the owner on Dec 17, 2025. It is now read-only.
Create new Purge Task to delete Hook History#269
Open
pcastelog wants to merge 1 commit intovaltech:developfrom
Open
Create new Purge Task to delete Hook History#269pcastelog wants to merge 1 commit intovaltech:developfrom
pcastelog wants to merge 1 commit intovaltech:developfrom
Conversation
This new task can be setup if the hook is used
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I decided to move the logic to a new task since the hook is not compatible with AEMaaCS, and not to grant permissions on a path that is not relevant in the cloud.
There is a downside that maybe, can be addressed in a different issue. At the moment, the intermediate nodes for the history are created without a date to identify them (HookExecutionHistory:65), then the maintenance task needs a couple of runs to delete all nodes (if we don't want to iterate the nodes several times in the task).
At the same time, I saw you did a couple of bumps in dependencies, but the following was not resolved properly in 6.5.23
<dependency> <groupId>org.antlr</groupId> <artifactId>stringtemplate</artifactId> <version>4.0.2</version> </dependency>Doing a revert to the previous 3.2.1 works fine. Anyway, I didn't modify it, it's up to you to take a look :)