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 #38165 - Add checkboxes actions to job invocation page #944

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kmalyjur
Copy link
Contributor

  • Open all failed button opens just host from the current page

attribute :name, :operatingsystem_id, :operatingsystem_name, :hostgroup_id, :hostgroup_name, :id
attribute :id, :name, :operatingsystem_id, :operatingsystem_name, :hostgroup_id, :hostgroup_name
Copy link
Member

Choose a reason for hiding this comment

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

is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, just wrong rebase, sorry

Comment on lines 69 to 71
`Task for the host ${
action === 'cancel' ? 'cancelled' : 'aborted'
} successfully`
Copy link
Member

Choose a reason for hiding this comment

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

please ues 2 different strings so we wont have to do difficult translations

Copy link
Contributor

@adamruzicka adamruzicka left a comment

Choose a reason for hiding this comment

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

Selecting the rows one by one and clicking rerun works.

Selecting all, then unchecking one and clicking rerun runs it only on the one that was unselected.

Selecting all and clicking rerun doesn't do anything, even though the button appears active.

Comment on lines 250 to 268
<OpenAlInvocations
setShowAlert={setShowAlert}
results={results}
id={id}
/>
}
/>,
<CheckboxesActions
jobID={id}
bulkParams={bulkParams}
failedHosts={failedHosts}
selectedCount={selectedCount}
currentPermissions={currentPermissions}
permissionsStatus={permissionsStatus}
/>,
]}
controller="hosts"
creatable={false}
replacementResponse={combinedResponse}
selectionToolbar={selectionToolbar}
updateSearchQuery={updateSearchQueryBulk}
Copy link
Member

Choose a reason for hiding this comment

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

need key props

@@ -267,8 +350,14 @@ JobInvocationHostTable.propTypes = {
targeting: PropTypes.object.isRequired,
finished: PropTypes.bool.isRequired,
autoRefresh: PropTypes.bool.isRequired,
initialFilter: PropTypes.string.isRequired,
Copy link
Member

Choose a reason for hiding this comment

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

 The prop `initialFilter` is marked as required in `JobInvocationHostTable`, but its value is `undefined`.


return (
<>
<RerunButton />
Copy link
Member

Choose a reason for hiding this comment

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

can you please space between rerun and open all in new tabs?
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course, sorry, I haven't even looked at it after rebasing

onClick={() => {
if (failedHosts.length <= 3) {
failedHosts.forEach(id =>
openLink(`/job_invocations/${id}`, () => {})
Copy link
Member

Choose a reason for hiding this comment

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

This should open /show_template_invocation_by_host/:host_id/job_invocation/:id

@kmalyjur kmalyjur force-pushed the job-inv-table-checkboxes-clean branch from fe71baf to 121976e Compare February 12, 2025 10:39
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.

3 participants