-
Notifications
You must be signed in to change notification settings - Fork 96
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
base: master
Are you sure you want to change the base?
Fixes #38165 - Add checkboxes actions to job invocation page #944
Conversation
kmalyjur
commented
Jan 28, 2025
- 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed?
There was a problem hiding this comment.
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
`Task for the host ${ | ||
action === 'cancel' ? 'cancelled' : 'aborted' | ||
} successfully` |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
<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} |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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}`, () => {}) |
There was a problem hiding this comment.
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
fe71baf
to
121976e
Compare