-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[JENKINS-60866] Clean up build button column JS #5514
Conversation
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.
Manually tested before and after, working fine in both cases.
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.
LGTM from the code PoV. Does it require a changelog entry?
This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
</j:otherwise> | ||
</j:choose> | ||
<j:set var="icon" value="${app.queue.contains(job) ? 'icon-clock-anime' : 'icon-clock'}"/> | ||
<l:icon class="${icon} ${subIconSizeClass}" | ||
title="${title}" alt="${title}" | ||
onclick="${onclick}"/> |
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.
Looks like we also need to update
<l:task href="${url}/build?delay=0sec" icon="icon-clock icon-md" onclick="${it.parameterized?null:'return build_' + id + '(this)'}" permission="${it.BUILD}" post="${!it.parameterized}" title="${it.buildNowText}"/> |
<j:if test="${attrs.onclick == null and post and not requiresConfirmation}"> |
See JENKINS-60866.
To support cleanup of the build button column, we need to be able to set IDs on icons, so that's being done here. Also deprecate
onclick
for being evil.It would probably be cleaner to migrate
icon
/svgIcon
toMorphTagLibrary
to be able to adddata
attributes on it, but that's a larger change than necessary and it wouldn't get rid of the support element anyway; asclass
must only specify icons and cannot be used to add additional arbitrary class names.Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).