Skip to content

Fixes #39667 - Remove some deprecated code - #11193

Draft
lzap wants to merge 3 commits into
theforeman:developfrom
lzap:deprecation-cleanup-39667
Draft

Fixes #39667 - Remove some deprecated code#11193
lzap wants to merge 3 commits into
theforeman:developfrom
lzap:deprecation-cleanup-39667

Conversation

@lzap

@lzap lzap commented Aug 20, 2026

Copy link
Copy Markdown
Member

This is definitely not everything, only taking a look on the easy ones. Briefly tested locally, let's see what CI says.

https://community.theforeman.org/t/remove-foreman-deprecations-for-5-0-in-develop-core-plugins/47377

Edit: I was able to grep some instances of deprecated methods in some plugins, taking a deeper look.

lzap and others added 2 commits August 20, 2026 17:12
The top-level format_errors helper in db/seeds.rb was deprecated in 3.4
in favor of SeedHelper.format_errors and has no remaining callers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The instance method user_or_usergroup was deprecated in 3.12 in favor of
the OwnerClassifier.classify_owner class method. With it gone the
instance constructor is no longer used, so the class is now purely a set
of class methods.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
css_tags_for was deprecated in 3.12; it is a no-op with no core callers.
The only plugin referencing it (foreman_rh_cloud) defines its own copy,
so core's can be dropped. webpacked_plugins_css_for is retained because
foreman_leapp, foreman_openscap and foreman_puppet still call it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lzap

lzap commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

I dropped one deprecation that was more complex, now it's three in total. Two of them are not referenced from any plugin we ship in Satellite, one is a trivial seed helper deprecation which is referenced from many plugins. Filed RM Issues and PRs into every one of them.

Let's do not merge this until we have closed them.

@lzap
lzap marked this pull request as draft August 20, 2026 16:14
@stejskalleos
stejskalleos self-requested a review August 24, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant