[PATCH] JMC-6052 : JSon rule result does not contain Rule ID

Miro Wengner miro.wengner at gmail.com
Wed Jun 27 08:33:39 UTC 2018


ok, dalibor wrote me that it’s in the queue.
I’ll inform you

/Miro

> On Jun 27, 2018, at 9:55 AM, Marcus Hirt <marcus.hirt at oracle.com> wrote:
> 
> Hi Miro,
> 
> Looks fine. I can sponsor this one. Let's wait for your updated OCA (since you changed last name) to come through before bringing it in.
> 
> /M
> 
> On 2018-06-26, 22:09, "jmc-dev on behalf of Miro Wengner" <jmc-dev-bounces at openjdk.java.net on behalf of miro.wengner at gmail.com> wrote:
> 
>    Hi All,
>      I’ve fixed the bug JMC-6052.
>    and here is the diff.
> 
>    Kind Regards,
>    Miro
> 
>    PATCH:
>    diff --git a/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt b/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
>    --- a/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
>    +++ b/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
>    @@ -132,6 +132,7 @@
> 
>     <xsl:template match="rule">
>                   {
>    +               "id": "<xsl:apply-templates select="id" />",
>                    "name": "<xsl:apply-templates select="name" />", <xsl:choose><xsl:when test="count(error)>0"><xsl:text>&#xa;               </xsl:text>"error": "<xsl:apply-templates select="error" />"</xsl:when><xsl:otherwise>
>                    "severity": "<xsl:apply-templates select="severity" />",
>                    "score": <xsl:apply-templates select="score" />,
> 
> 
> 
> 



More information about the jmc-dev mailing list