Skip to content

Releases: sap-commerce-tools/sanecleanup

v3.4.1

13 May 09:30
Compare
Choose a tag to compare

Fixed

  • Fix startup error, caused by version parser failing to parse extended build.number generated by
    CCv2 build process (#6)

Many thanks to @ths-sybit for fixing the issue! 🏆

v3.4.0

28 Mar 14:13
Compare
Choose a tag to compare

Added

  • Cleanup SavedValues for delete operations after one month
  • Experimental: Define DB indices to accelerate cleanup queries in CCv2
    The minimum required versions for this feature are: 1905.33, 2005.17, 2011.12, 2105.2
    Please always make sure to stay on the latest patch release!
    In case of problems
    • Report an issue in this repository
    • Comment-out the offending type / index in sanecleanup-items.xml

Changed

  • Composite cronjob to cleanup SavedValue / SavedValueEntry
  • ProcessTaskLog cleanup now checks modifiedTime like all the other cleanup jobs

Fixed

  • Custom CMS Version GC job (jdbcVersionGCJob) is now backwards compatible with 2105 and recent patch releases (#3).
    If you are on a more recent Commerce version, the job will do nothing. Please use the improved ootb cleanup instead (introduced with 1905.30, 2005.14, 2011.9).

Upgrade Guide

  • Remove triggers of cronjobs that are now part of a composite job.
  • Remove custom CMS version gc job
REMOVE Trigger; cronJob(code)[unique = true]
;savedValueEntryCleanupCronJob;

# remove custom job
REMOVE Cronjob;code[unique = true]
;jdbcVersionGCCronJob;

v3.3.0

09 Jun 15:00
Compare
Choose a tag to compare

Added

  • Retention periods are now configurable via properties
    (check project.properties for details)

Changed

  • Retention rules and cron jobs that depend on each other are now grouped and
    executed in the correct order via composite cronjobs

Additional details in CHANGELOG.md

v3.2.0

06 May 07:28
Compare
Choose a tag to compare

Added

v3.1.0

30 Apr 12:52
Compare
Choose a tag to compare

Added

  • Cleanup SavedValueEntries

v3.0.0

30 Apr 07:01
Compare
Choose a tag to compare

Added

  • Cleanup all BusinessProcess - all BusinessProcesses, regardless of their state,
    are deleted after 6 months at the latest. Make sure to adjust this to your project
    requirements!
  • Cleanup potentially orphaned items related to BusinessProcess
  • Aggressive cleanup for cmsVersionGCProcess
  • Cleanup additional generated impex media
  • Cleanup EmailMessage and EmailAddress
  • Cleanup SolrIndexOperation
  • Cleanup all types related to Distributed ImpEx
  • retentionrule-to-impex.groovy - helper script that takes the results of a FlexibleSearchRetentionRule and delete
    the outdated items via impex. Useful for bulk cleanup.
  • README now documents queries to analyze outdated/stale data

Changed

  • CMS Version Garbage Collection Job

    • renamed to jdbcVersionGCCronJob / jdbcVersionGCJob
    • optimized cleanup logic
    • dynamically determine correct DB table names using the type system
  • Simplify cronjob retention rule (cronJobRule)

  • Cleanup CronJobs now execute between 00:00 - 06:00

  • Longer retention period (4 weeks) for successfully finished BusinessProcess

Fixed

  • CMS Version Garbage Collection Job - job is now abortable for real

Upgrade Guide

  • Delete old CMS Version GC Job definition

    REMOVE CronJob;code[unique=true];job(code)[unique=true]
    ;cmsVersionGCCronJob;cmsVersionGCJob;
    
    REMOVE ServicelayerJob;code[unique=true];springId[unique=true];
    ;cmsVersionGCJob;cmsVersionGCPerformable;
    

New rules and configuration managment

23 Mar 09:58
Compare
Choose a tag to compare

Changed

  • Cleanup jobs / retention rules are now imported on-demand based on the extensions the project uses.

Added

Add bulk delete cronjob for cronjob logs...

09 Dec 16:03
6705796
Compare
Choose a tag to compare

... to help projects that have never cleaned up the cronjob logs before

Initial Release

26 Nov 13:54
Compare
Choose a tag to compare
v1.0.0

v1.0.0