Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

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 adejanovski committed May 9, 2017
1 parent 7032dde commit 11eabea
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 11eabea

Please sign in to comment.