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

Add job duration as tooltip to build time in the build history widget #4453

Merged

Conversation

mguillem
Copy link
Contributor

This change simply adds the build duration as a tooltip of the displayed build date/time in the job's build history. This allows to quickly get the information without having to go to the build history trend page.

Proposed changelog entries

  • Entry 1: display build duration as tooltip to build date/time in the job's build history

@oleg-nenashev oleg-nenashev added rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted web-ui The PR includes WebUI changes which may need special expertise labels Jan 26, 2020
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

Copy link
Contributor

@res0nance res0nance left a comment

Choose a reason for hiding this comment

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

Could you add a screenshot of what this looks like?

@mguillem
Copy link
Contributor Author

Here a small screenshot:
jenkins-job duration as tooltip

@res0nance
Copy link
Contributor

Retrigger CI

@res0nance res0nance closed this Jan 29, 2020
@res0nance res0nance reopened this Jan 29, 2020
Copy link
Contributor

@res0nance res0nance left a comment

Choose a reason for hiding this comment

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

Thanks for the screenshot

<a class="tip model-link inside build-link" href="${link}" update-parent-class=".build-row">
<j:set var="linkTitleAttr" value=""/>
<j:if test="${!build.building}">
<j:set var="linkTitleAttr">${%Took} ${build.durationString}</j:set>
Copy link
Member

Choose a reason for hiding this comment

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

The I18n string should probably be parameterized with ${build.durationString} not all languages write it in that order.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some hint on how to do that?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@alecharp alecharp left a comment

Choose a reason for hiding this comment

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

I agree with @rsandell as the sentence could have a different order in another language.

@mguillem
Copy link
Contributor Author

mguillem commented Feb 3, 2020

Is something missing for a merge?

@timja timja closed this Feb 4, 2020
@timja timja reopened this Feb 4, 2020
@timja
Copy link
Member

timja commented Feb 4, 2020

re-triggering build

@oleg-nenashev oleg-nenashev added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Feb 5, 2020
@oleg-nenashev
Copy link
Member

I plan to merge it tomorrow if no negative feedback

@oleg-nenashev oleg-nenashev merged commit 53ee8fa into jenkinsci:master Feb 6, 2020
@oleg-nenashev
Copy link
Member

Thanks for your contribution @mguillem !

@oleg-nenashev oleg-nenashev changed the title add job duration as tooltip to build time Add job duration as tooltip to build time in the build history widget Feb 6, 2020
jsoref pushed a commit to jsoref/jenkins that referenced this pull request Feb 6, 2020
…ion-tooltip

add job duration as tooltip to build time
@daniel-beck
Copy link
Member

Caused JENKINS-72743

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted web-ui The PR includes WebUI changes which may need special expertise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants