From e8f0fe7a5a7ca0d5605dfeb5bc774578019b65da Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 9 May 2014 20:49:51 +0300 Subject: [PATCH] Show badges in release notes (#13612) Change-Id: I6109cda80251b343999b75f51ffecf6a9bbbd6a2 --- WebContent/css/styles.css | 34 +++++++++++++++++++ WebContent/release-notes.html | 10 ++++-- .../FetchReleaseNotesTickets.java | 18 ++++++++-- 3 files changed, 56 insertions(+), 6 deletions(-) diff --git a/WebContent/css/styles.css b/WebContent/css/styles.css index 9a5ddc74c1..9bd03ae8bc 100644 --- a/WebContent/css/styles.css +++ b/WebContent/css/styles.css @@ -439,3 +439,37 @@ img { margin: 0em 2em .8em 2em; float: right; } + +span.fv { + padding: 2px 10px; + margin-right: 5px; + color: rgb(71,174,67); + font-weight: bold; +} +td.fv { + background-color: rgb(206,247,205); + text-align: center; + border-radius: 3px; + font-size: 12px; + line-height: 1; + font-weight: bold; +} +td.bfp { + text-align: center; + color: rgb(37,114,146); + border-radius: 3px; + + padding: 2px 10px; + margin-right: 5px; + background-color: rgb(216,245,255); + font-size: 12px; + line-height: 1; + font-weight: bold; +} +.ticket { + text-align: right; + padding-left: 5px; +} +.pad { + padding-left: 5px; +} \ No newline at end of file diff --git a/WebContent/release-notes.html b/WebContent/release-notes.html index 5b9f15f06b..f912f9924e 100644 --- a/WebContent/release-notes.html +++ b/WebContent/release-notes.html @@ -80,9 +80,13 @@

This release includes the following closed issues:

- - + + @release-notes-tickets@ + + + +
 
VoteEnhancements Vaadin support users have voted for
PriorityDefects Vaadin support users have prioritized
+

You can also view the list diff --git a/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java b/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java index 4ca17443dc..6434c94352 100644 --- a/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java +++ b/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java @@ -24,8 +24,12 @@ import java.util.List; import org.apache.commons.io.IOUtils; public class FetchReleaseNotesTickets { - private static final String queryURL = "http://dev.vaadin.com/query?status=closed&milestone=Vaadin+@version@&resolution=fixed&format=tab&order=id"; - private static final String ticketTemplate = "

  • #@ticket@: @description@
  • "; + private static final String queryURL = "http://dev.vaadin.com/query?status=closed&milestone=Vaadin+@version@&resolution=fixed&col=id&col=summary&col=owner&col=type&col=priority&col=component&col=version&col=bfptime&col=fv&format=tab&order=id"; + private static final String ticketTemplate = "" + + "@badge@" // + + "#@ticket@" // + + "@description@" // + + ""; // public static void main(String[] args) throws IOException { String version = System.getProperty("vaadin.version"); @@ -52,8 +56,16 @@ public class FetchReleaseNotesTickets { summary = summary.substring(1, summary.length() - 1); summary = summary.replace("\"\"", "\""); } + String badge = ""; + if (fields.length >= 8 && !fields[7].equals("")) { + badge = "Priority"; + } else if (fields.length >= 9 && fields[8].equalsIgnoreCase("true")) { + badge = "Vote"; + } + System.out.println(ticketTemplate.replace("@ticket@", fields[0]) - .replace("@description@", summary)); + .replace("@description@", summary) + .replace("@badge@", badge)); } urlStream.close(); } -- 2.39.5