Skip to content

Fixes #38932 - Allow users to purge all audit types (5.0-stable) - #11352

Merged
ofedoren merged 1 commit into
theforeman:5.0-stablefrom
ogajduse:cherry-pick-38932-foreman-5.0
Oct 23, 2026
Merged

ofedoren merged 1 commit into
theforeman:5.0-stablefrom
ogajduse:cherry-pick-38932-foreman-5.0

Conversation

@ogajduse

Copy link
Copy Markdown
Member

Summary

Cherry-pick Foreman develop commit a4cf3bc to 5.0-stable with -x. Let operators include template-related audits when purging audits via AUDITS_PURGE_INCLUDE_TEMPLATES. This patch is present downstream but missing upstream stable.

Testing

  • Cherry-pick applies cleanly; upstream and stable-branch patches have the same stable patch ID; git diff --check and ruby -c lib/tasks/audits.rake pass.
  • Focused Ruby tests not run locally: bundle check reports missing dependencies. Please validate in upstream PR CI.

The various template types are excluded from foreman-rake audits:clean
because they're also used to show diffs to older versions. These can
build up over time and users need a way to clean these up.

This introduces the AUDITS_PURGE_INCLUDE_TEMPLATES environment variable
to purge all audit types.

(cherry picked from commit a4cf3bc)
@pr-processor pr-processor Bot added Not yet reviewed Stable branch PRs that are opened against a stable branch. Usually a cherry pick labels Oct 22, 2026
@ofedoren
ofedoren merged commit d3529c5 into theforeman:5.0-stable Oct 23, 2026
60 of 63 checks passed
@ogajduse
ogajduse deleted the cherry-pick-38932-foreman-5.0 branch October 23, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stable branch PRs that are opened against a stable branch. Usually a cherry pick

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants