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 #38113 - Add a link to REX bootc job templates in image mode details card. #11272

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

lfu
Copy link
Member

@lfu lfu commented Dec 20, 2024

What are the changes introduced in this pull request?

Considerations taken when implementing this change?

What are the testing steps for this pull request?

Host - Details - Image mode details

@lfu
Copy link
Member Author

lfu commented Dec 20, 2024

card0

@lfu lfu force-pushed the link_rex_templates branch from 1adbc6f to f24d38c Compare January 2, 2025 19:21
@ianballou
Copy link
Member

Some reason, when I click the link it's sending me just to the "Run job" screen with nothing filled out:

image

I do get sent to this endpoint though:

/job_invocations/new?feature=katello_bootc_action&search=name ^ (bootc-machine.example.com)

@lfu
Copy link
Member Author

lfu commented Jan 8, 2025

Have you run in rails console:

ForemanInternal.all.first.delete
bundle exec rake db:seed

@@ -28,6 +34,7 @@ const ImageModeCard = ({ isExpandedGlobal, hostDetails }) => {
masonryLayout
isExpandedGlobal={isExpandedGlobal}
>
<a href={actionUrl(hostDetails.name)}>{__('Bootc action template')}</a>
Copy link
Member

Choose a reason for hiding this comment

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

I think using "template" is a little confusing for users, perhaps we can find a title that better describes the relationship to running bootc actions on the host:

Suggested change
<a href={actionUrl(hostDetails.name)}>{__('Bootc action template')}</a>
<a href={actionUrl(hostDetails.name)}>{__('Modify via remote execution')}</a>

Copy link
Member

Choose a reason for hiding this comment

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

@jeremylenz you mentioned having some potential input too :)

Copy link
Member

Choose a reason for hiding this comment

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

Right, I was thinking Run bootc action maybe? but actually I like this better!

@lfu lfu force-pushed the link_rex_templates branch from f24d38c to 894c248 Compare January 8, 2025 23:46
Copy link
Member

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

Didn't execute the code but the wording LGTM now. 👍

Copy link
Member

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

Works great for me!

@ianballou ianballou merged commit 25e9546 into Katello:master Jan 9, 2025
26 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