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 2019/07/23 13:03:59 UTC
[airavata-django-portal] branch master updated: AIRAVATA-3172 Find
this compute pref's validation errors
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 c49e6e6 AIRAVATA-3172 Find this compute pref's validation errors
c49e6e6 is described below
commit c49e6e6ea53741461a410c0c06dcf75ae3d2403c
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Jul 23 09:03:02 2019 -0400
AIRAVATA-3172 Find this compute pref's validation errors
Fixes bug where code assumed the compute pref with
validation errors is the first one in the profile.
---
.../components/admin/group_resource_preferences/ComputePreference.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/django_airavata/apps/admin/static/django_airavata_admin/src/components/admin/group_resource_preferences/ComputePreference.vue b/django_airavata/apps/admin/static/django_airavata_admin/src/components/admin/group_resource_preferences/ComputePreference.vue
index 64c2117..cf95963 100644
--- a/django_airavata/apps/admin/static/django_airavata_admin/src/components/admin/group_resource_preferences/ComputePreference.vue
+++ b/django_airavata/apps/admin/static/django_airavata_admin/src/components/admin/group_resource_preferences/ComputePreference.vue
@@ -246,7 +246,8 @@ export default {
.catch(error => {
if (errors.ErrorUtils.isValidationError(error) && 'computePreferences' in error.details.response) {
- this.validationErrors = error.details.response.computePreferences[0];
+ const computePreferencesIndex = groupResourceProfile.computePreferences.findIndex(cp => cp.computeResourceId === this.host_id);
+ this.validationErrors = error.details.response.computePreferences[computePreferencesIndex];
} else {
this.validationErrors = null;
notifications.NotificationList.addError(error);