Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #36892 - Pass host results to REX slot and make permissions nodes extensible #9895

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

jeremylenz
Copy link
Contributor

@jeremylenz jeremylenz commented Nov 6, 2023

foreman_remote_execution needs access to the host response on the new host overview page (without making another api request).

This also allows plugins to override an index_node_permissions method to add permissions of their own to the API response.

@github-actions github-actions bot added the UI label Nov 6, 2023
@jeremylenz jeremylenz force-pushed the 36892-add-results-to-slot branch 3 times, most recently from bd47581 to 519f91a Compare November 8, 2023 21:29
@jeremylenz jeremylenz force-pushed the 36892-add-results-to-slot branch 4 times, most recently from 8c0bfb1 to 3aeaf33 Compare November 20, 2023 21:09
@jeremylenz jeremylenz changed the title Fixes #36892 - Pass host results to REX slot Fixes #36892 - Pass host results to REX slot and make permissions nodes extensible Nov 20, 2023
Copy link
Contributor

@parthaa parthaa left a comment

Choose a reason for hiding this comment

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

Works well. Ack

@jeremylenz
Copy link
Contributor Author

[test katello]

  allow root node permissions to be extended
Refs #36892 - improvements to regex & index layout
@jeremylenz
Copy link
Contributor Author

@parthaa updated to use your implementation of index_node_permissions_snippet.

Copy link
Contributor

@parthaa parthaa left a comment

Choose a reason for hiding this comment

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

ack

Copy link
Contributor

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Tested with theforeman/foreman_remote_execution#845 and I was able to run a bulk host action.

@jeremylenz jeremylenz merged commit 3054853 into theforeman:develop Nov 21, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants