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 2018/02/21 20:49:55 UTC
[airavata-django-portal] branch master updated: AIRAVATA-2631 Copy
app outputs to experiment
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new 8308b7f AIRAVATA-2631 Copy app outputs to experiment
8308b7f is described below
commit 8308b7f78af06233425b86005476997b8137de23
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Wed Feb 21 15:49:49 2018 -0500
AIRAVATA-2631 Copy app outputs to experiment
---
.../apps/api/static/django_airavata_api/js/models/Experiment.js | 6 ++++++
.../js/containers/CreateExperimentContainer.vue | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/django_airavata/apps/api/static/django_airavata_api/js/models/Experiment.js b/django_airavata/apps/api/static/django_airavata_api/js/models/Experiment.js
index bcbffdc..6f5ad6d 100644
--- a/django_airavata/apps/api/static/django_airavata_api/js/models/Experiment.js
+++ b/django_airavata/apps/api/static/django_airavata_api/js/models/Experiment.js
@@ -122,4 +122,10 @@ export default class Experiment extends BaseModel {
&& this.experimentStatus.length > 0
&& hasLaunchedStates.indexOf(this.experimentStatus[0].state) >= 0;
}
+
+ populateInputsOutputsFromApplicationInterface(applicationInterface) {
+ // Copy application inputs and outputs to the experiment
+ this.experimentInputs = applicationInterface.getOrderedApplicationInputs().map(input => input.clone());
+ this.experimentOutputs = applicationInterface.applicationOutputs.slice();
+ }
}
diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/containers/CreateExperimentContainer.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/containers/CreateExperimentContainer.vue
index 1ece761..fbce3fe 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/containers/CreateExperimentContainer.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/containers/CreateExperimentContainer.vue
@@ -50,7 +50,7 @@ export default {
});
services.ApplicationInterfaceService.getForAppModuleId(this.appModuleId)
.then(appInterface => {
- this.experiment.experimentInputs = appInterface.getOrderedApplicationInputs().map(input => input.clone());
+ this.experiment.populateInputsOutputsFromApplicationInterface(appInterface);
this.appInterface = appInterface;
this.experiment.executionId = this.appInterface.applicationInterfaceId;
});
--
To stop receiving notification emails like this one, please contact
machristie@apache.org.