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 2017/01/30 15:50:44 UTC
airavata-php-gateway git commit: fixing AIRAVATA-2265 : in SciGaP
latest record should be on top of the list in Gateway requests.
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop dae6cd756 -> f436e6a52
fixing AIRAVATA-2265 : in SciGaP latest record should be on top of the list in Gateway requests.
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/f436e6a5
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/f436e6a5
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/f436e6a5
Branch: refs/heads/develop
Commit: f436e6a5227a703562f17b9f460f8350b10937da
Parents: dae6cd7
Author: scnakandala <su...@gmail.com>
Authored: Mon Jan 30 10:50:40 2017 -0500
Committer: scnakandala <su...@gmail.com>
Committed: Mon Jan 30 10:50:40 2017 -0500
----------------------------------------------------------------------
app/controllers/AdminController.php | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f436e6a5/app/controllers/AdminController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AdminController.php b/app/controllers/AdminController.php
index 9735b9a..d0aa3e5 100644
--- a/app/controllers/AdminController.php
+++ b/app/controllers/AdminController.php
@@ -99,12 +99,18 @@ class AdminController extends BaseController {
}
+ private function cmp($a, $b)
+ {
+ return strcmp($b->requestCreationTime, $a->requestCreationTime);
+ }
+
public function gatewayView(){
//only for super admin
//Session::put("super-admin", true);
$gatewaysInfo = CRUtilities::getAllGatewayProfilesData();
$gateways = $gatewaysInfo["gateways"];
+ usort($gateways, array($this, "cmp"));
$tokens = AdminUtilities::get_all_ssh_tokens();
$pwdTokens = AdminUtilities::get_all_pwd_tokens();
$srData = SRUtilities::getEditSRData();