You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/10/21 16:23:10 UTC

airavata git commit: adding order DESC on creation time when retrieving experiment statistics

Repository: airavata
Updated Branches:
  refs/heads/master a1d999cf3 -> a2cd71e6b


adding order DESC on creation time when retrieving experiment statistics


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/a2cd71e6
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/a2cd71e6
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/a2cd71e6

Branch: refs/heads/master
Commit: a2cd71e6b28b578d230724da2f2d5c74038e644b
Parents: a1d999c
Author: scnakandala <su...@gmail.com>
Authored: Wed Oct 21 10:23:00 2015 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Wed Oct 21 10:23:00 2015 -0400

----------------------------------------------------------------------
 .../registry/core/experiment/catalog/resources/WorkerResource.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/a2cd71e6/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java
index fe1b32b..f0dfe22 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java
@@ -719,7 +719,7 @@ public class WorkerResource extends AbstractExpCatResource {
                 query += "e.state='" + expState.toString() + "' AND ";
             }
             query += "e.creationTime > '" + fromTime + "' " + "AND e.creationTime <'" + toTime + "' AND ";
-            query += "e." + ExperimentConstants.GATEWAY_ID + "= '" + gatewayId + "'";
+            query += "e." + ExperimentConstants.GATEWAY_ID + "= '" + gatewayId + "' ORDER BY e.creationTime DESC";
 
             em = ExpCatResourceUtils.getEntityManager();
             em.getTransaction().begin();