From 48d8871dbc13ffbfd365fedacfd939ba6f2f61f3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Oct 2009 13:59:12 +0000 Subject: [PATCH] * Only show status changes from successful to failed and failed to successful (not between different kinds of failure). --- src/lib/Hydra/Schema/Builds.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Schema/Builds.pm b/src/lib/Hydra/Schema/Builds.pm index 07282d1b..4907198a 100644 --- a/src/lib/Hydra/Schema/Builds.pm +++ b/src/lib/Hydra/Schema/Builds.pm @@ -222,7 +222,9 @@ sub makeQueries { from builds c natural join buildresultinfo r2 where x.project = c.project and x.jobset = c.jobset and x.job = c.job and x.system = c.system and - x.id > c.id and r.buildstatus != r2.buildstatus) + x.id > c.id and + ((r.buildstatus = 0 and r2.buildstatus != 0) or + (r.buildstatus != 0 and r2.buildstatus = 0))) QUERY makeSource(