Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[FIXED JENKINS-22295] Added fake URL so that graph is updated immedia…
Browse files Browse the repository at this point in the history
…tly after configuration change.
  • Loading branch information
uhafner committed May 9, 2016
1 parent 1ce9dcd commit ed66289
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Expand Up @@ -238,6 +238,17 @@ public boolean isTrendVisible(final StaplerRequest request) {
return configuration.isVisible() && configuration.hasMeaningfulGraph();
}

/**
* Returns the ID of the selected trend graph.
*
* @return ID of the selected trend graph
*/
public String getTrendGraphId() {
GraphConfigurationView configuration = createUserConfiguration(Stapler.getCurrentRequest());

return configuration.getGraphType().getId();
}

/**
* Returns whether the trend graph is deactivated.
*
Expand Down
Expand Up @@ -65,6 +65,7 @@ Trend.type.priority=Gesamtanzahl an Warnungen verteilt nach Priorit
Trend.type.fixed=Verhältnis von behobenen zu neuen Warnungen
Trend.type.difference=Differenz zwischen behobenen und neuen Warnungen (aufsummierte Werte)
Trend.type.health=Anzeige der Gesamtanzahl an Warnungen mit Einfärbung anhand der erreichten Grenzwerte des Gesundheitszustandes
Trend.type.totals=Gesamtanzahl an Warnungen

ResultAction.Status=Plug-in Resultat:
ResultAction.NoWarningsSince=Keine Warnungen seit Build {0}
Expand Down
Expand Up @@ -7,7 +7,9 @@
${from.trendName}
</div>
<div>
<img src="${from.urlName}/trendGraph/png" lazymap="${from.urlName}/trendGraph/map" />
<!-- Note that the parameter ?url=${from.trendGraphId} is not used by the graph: it
has been added to provide different URLs so that the images are not cached by the browser. -->
<img src="${from.urlName}/trendGraph/png?url=${from.trendGraphId}" lazymap="${from.urlName}/trendGraph/map?url=${from.trendGraphId}" />
</div>
<div>
<a href="${from.urlName}/trendDetails">${%Enlarge}</a>
Expand Down

0 comments on commit ed66289

Please sign in to comment.