You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/04/19 16:10:14 UTC
airavata-php-gateway git commit: Update data store id when cloning in
the case that the id changed
Repository: airavata-php-gateway
Updated Branches:
refs/heads/master 863534ba2 -> 975cfa64a
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/master
Commit: 975cfa64a9c380e992a5c4f1ad7e10d1021dd7eb
Parents: 863534b
Author: Marcus Christie <ma...@iu.edu>
Authored: Fri Apr 7 15:22:55 2017 -0400
Committer: Marcus Christie <ma...@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);