Skip to content

Fixes #39532 - All hosts - add action - bulk change proxy - #616

Merged
Lukshio merged 8 commits into
theforeman:masterfrom
Lukshio:addBulkAction
Aug 24, 2026
Merged

Fixes #39532 - All hosts - add action - bulk change proxy#616
Lukshio merged 8 commits into
theforeman:masterfrom
Lukshio:addBulkAction

Conversation

@Lukshio

@Lukshio Lukshio commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Users can assign an OpenSCAP Proxy to a host. This can be done individually for a host via the host edit form, but also in bulk via the legacy host overview UI (see screenshot). The new UI currently doesn't support this.

Option can be found on AllHosts page -> select hosts -> kebab menu -> Change association -> OpenSCAP Proxy

@MariaAga MariaAga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

initial review:
Capsule is for downstream, and gets translated from "Proxy" please only use proxy here.

Going to do some tests now, and then a more in depth review once it gets updated

Comment thread webpack/components/HostsIndex/ChangeOpenscapProxyAction.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Success message doesn't include host count (inconsistent with core bulk actions)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried changing org and location but it does not show count either

@sbernhard

Copy link
Copy Markdown
Contributor

Please have a look at this, too: #615
Might be a valid different approach or a nice addition.

@MariaAga MariaAga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(midway review as I cant comment on the discussion without clicking "submit review")
Capsule is still mentioned in the code, PR title, and commits.
Also casing should be always OpenSCAP Proxy (and not OpenSCAP proxy)

Comment thread webpack/components/HostsIndex/__tests__/ChangeOpenscapProxyAction.test.js Outdated
@Lukshio Lukshio changed the title Fixes #39532 - All hosts - add action - bulk add capsule Fixes #39532 - All hosts - add action - bulk change proxy Jul 24, 2026

@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.

I'd also vote for a separate controller over extending the existing one as suggested by @ofedoren . Some nitpicks inline

@Lukshio

Lukshio commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@adamruzicka I updated the PR based on the comments, ready for re-review

@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.

the permission check is necessary, the rest is optional

Comment thread app/controllers/api/v2/compliance/hosts_bulk_actions_controller.rb Outdated
Comment thread app/controllers/api/v2/compliance/hosts_bulk_actions_controller.rb Outdated
Comment thread app/controllers/api/v2/compliance/hosts_bulk_actions_controller.rb Outdated
Comment thread app/controllers/api/v2/compliance/hosts_bulk_actions_controller.rb Outdated
Comment thread app/controllers/api/v2/compliance/hosts_bulk_actions_controller.rb Outdated

@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.

One last nitpick, oterwise lgtm

Comment thread app/controllers/api/v2/compliance/hosts_bulk_actions_controller.rb Outdated
@Lukshio

Lukshio commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

Rebase

@MariaAga MariaAga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested it with packit and it looks good to me!
(@adamruzicka I dont have permissions to merge 😶 )

@Lukshio
Lukshio merged commit 9156b1e into theforeman:master Aug 24, 2026
15 of 16 checks passed
@Lukshio
Lukshio deleted the addBulkAction branch August 24, 2026 12:53
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.

5 participants