airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [1/6] airavata-php-gateway git commit: Update data store id when cloning in the case that the id changed
Date Fri, 12 May 2017 14:27:07 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 863534ba2 -> 753a34018


Update data store id when cloning in the case that the id changed


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/975cfa64
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/975cfa64
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/975cfa64

Branch: refs/heads/develop
Commit: 975cfa64a9c380e992a5c4f1ad7e10d1021dd7eb
Parents: 863534b
Author: Marcus Christie <machrist@iu.edu>
Authored: Fri Apr 7 15:22:55 2017 -0400
Committer: Marcus Christie <machrist@iu.edu>
Committed: Fri Apr 7 15:22:55 2017 -0400

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/975cfa64/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 2202218..447cd7a 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -691,6 +691,9 @@ class ExperimentUtilities
                 $userHasComputeResourcePreference = array_key_exists($computeResourceId,
$userComputeResourcePreferences);
                 $experiment->userConfigurationData->useUserCRPref = $userHasComputeResourcePreference;
             }
+            // In case the gateway-data-store-resource-id has changed since the
+            // original experiment was created, update in this experiment
+            $experiment->userConfigurationData->storageId = Config::get('pga_config.airavata')['gateway-data-store-resource-id'];
             Airavata::updateExperiment(Session::get('authz-token'), $cloneId, $experiment);
 
             $share = SharingUtilities::getAllUserPermissions($expId, ResourceType::EXPERIMENT);


Mime
View raw message