Skip to content

Commit

Permalink
Bump aborted runs down in cluster run summary (#98)
Browse files Browse the repository at this point in the history
Null fields put old aborted runs high in the sort order for repair
runs history of a cluster. This moves those down to an appropriate
position.
  • Loading branch information
Bj0rnen authored and michaelsembwever committed Jun 27, 2017
1 parent 64dd4e5 commit 7136e65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public interface IStoragePostgreSQL {
+ "FROM repair_run "
+ "JOIN repair_unit ON repair_unit_id = repair_unit.id "
+ "WHERE repair_unit.cluster_name = :clusterName "
+ "ORDER BY end_time DESC, start_time DESC "
+ "ORDER BY COALESCE(end_time, start_time) DESC, start_time DESC "
+ "LIMIT :limit";

static final String SQL_CLUSTER_SCHEDULE_OVERVIEW =
Expand Down

0 comments on commit 7136e65

Please sign in to comment.