Default sort order for targets and rollouts (ref #764) (#874)

* Default sort order for targets and rollouts (ref #764)

The default sort order has been change in order to show the newest
targets and rollouts are always on the top.

* Review Point handled : TARGET_TABLE_CREATE_AT_SORT_ORDER has been
removed

Signed-off-by: Anbazhakan Subramaniam <Anbazhakan.Subramaniam@in.bosch.com>
This commit is contained in:
AnbazhakanSubramaniam
2019-08-01 12:43:59 +05:30
committed by Jeroen Laverman
parent 248b3e62b4
commit d76188a382
3 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ public class TargetBeanQuery extends AbstractBeanQuery<ProxyTarget> {
private static final long serialVersionUID = -5645680058303167558L;
private Sort sort = new Sort(SPUIDefinitions.TARGET_TABLE_CREATE_AT_SORT_ORDER, "id");
private Sort sort = new Sort(SPUIDefinitions.TARGET_TABLE_LASTMODIFIED_AT_SORT_ORDER, "lastModifiedAt");
private transient Collection<TargetUpdateStatus> status;
private transient Boolean overdueState;
private String[] targetTags;

View File

@@ -43,7 +43,7 @@ public class RolloutBeanQuery extends AbstractBeanQuery<ProxyRollout> {
private final String searchText;
private Sort sort = new Sort(Direction.ASC, "id");
private Sort sort = new Sort(Direction.DESC, "lastModifiedAt");
private transient RolloutManagement rolloutManagement;

View File

@@ -346,7 +346,7 @@ public final class SPUIDefinitions {
/**
* Sort order of column - created at in target table.
*/
public static final Direction TARGET_TABLE_CREATE_AT_SORT_ORDER = Direction.ASC;
public static final Direction TARGET_TABLE_LASTMODIFIED_AT_SORT_ORDER = Direction.DESC;
/**
* BUTTON- STATUS.