Skip to content

Fixes #39770 - display report for remediation plan leapp jobs - #181

Merged
Lukshio merged 1 commit into
theforeman:masterfrom
andreilakatos:fixes-39770-remediation-plan-report
Sep 30, 2026
Merged

Lukshio merged 1 commit into
theforeman:masterfrom
andreilakatos:fixes-39770-remediation-plan-report

Conversation

@andreilakatos

@andreilakatos andreilakatos commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #39770 - display report for remediation plan leapp jobs
Screenshot 2026-09-20 at 11 52 11

@adamruzicka adamruzicka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is better, it still doesn't completely match how the backend (and the old, erb+deface based ui) does things.

A job template can be attached to a number of "remote execution features". The backend checks whether the job's template has a particular feature attached to it and displays the report based on that[1,2].

[1] -

::Helpers::JobHelper.correct_feature?(subject, 'leapp_preupgrade') ||

[2] - https://github.com/theforeman/foreman_leapp/blob/master/app/lib/helpers/job_helper.rb#L8

@andreilakatos
andreilakatos force-pushed the fixes-39770-remediation-plan-report branch from 45b9d28 to 691b027 Compare September 22, 2026 13:25
Comment thread app/lib/helpers/job_helper.rb Outdated
Comment thread app/views/api/v2/job_invocations/leapp_preupgrade_report.json.rabl Outdated
@andreilakatos
andreilakatos force-pushed the fixes-39770-remediation-plan-report branch from 691b027 to 211cbd3 Compare September 23, 2026 12:35

@adamruzicka adamruzicka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested, but looks reasonable at a glance

@Lukshio

Lukshio commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

@andreilakatos rubocop needs fix

@andreilakatos
andreilakatos force-pushed the fixes-39770-remediation-plan-report branch from 211cbd3 to 797ce2b Compare September 30, 2026 12:16
@Lukshio

Lukshio commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

packit tested

@Lukshio
Lukshio merged commit 5e9963a into theforeman:master Sep 30, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants