提交 3220dabd 编写于 作者: M Marat Radchenko 提交者: Oleg Nenashev

[JENKINS-31209] Stop limiting build description in build history to 100 symbols (#4209)

This limit:
1. Isn't justified by anything
2. Cannot be configured by users
3. Doesn't properly interact with nontrivial HTML markup. For example, it sums text in <option> elements
   even though they do not actually take up more visual space on page and instead only longest <option> matters
上级 3c877a40
...@@ -667,7 +667,9 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run ...@@ -667,7 +667,9 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
/** /**
* Returns the length-limited description. * Returns the length-limited description.
* @return The length-limited description. * @return The length-limited description.
*/ * @deprecated truncated description uses arbitrary and unconfigurable limit of 100 symbols
*/
@Deprecated
public @Nonnull String getTruncatedDescription() { public @Nonnull String getTruncatedDescription() {
final int maxDescrLength = 100; final int maxDescrLength = 100;
if (description == null || description.length() < maxDescrLength) { if (description == null || description.length() < maxDescrLength) {
......
...@@ -69,7 +69,7 @@ THE SOFTWARE. ...@@ -69,7 +69,7 @@ THE SOFTWARE.
</div> </div>
<j:if test="${!empty build.description}"> <j:if test="${!empty build.description}">
<div class="pane desc indent-multiline"> <div class="pane desc indent-multiline">
<j:out value="${app.markupFormatter.translate(build.truncatedDescription)}"/> <j:out value="${app.markupFormatter.translate(build.description)}"/>
</div> </div>
</j:if> </j:if>
<div class="left-bar" /> <div class="left-bar" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册