From 55e9181c17748a09f57d0a7823fb5fb10a0bda65 Mon Sep 17 00:00:00 2001 From: Wojciech Sliwka Date: Thu, 21 Mar 2019 11:28:05 +0100 Subject: Retrieve worfklows by model Change logic to retrieve workflows from SO by modelVersionId instead of vnfName Change-Id: Id8ee8b85670dd4b56ce6a43c120e5ef053e5f617 Issue-ID: VID-444 Signed-off-by: Wojciech Sliwka --- .../modals/new-change-management/new-change-management.controller.js | 4 ++-- .../main/webapp/app/vid/scripts/services/change-management.service.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'vid-app-common/src/main/webapp/app') diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js index 88caef29e..a071a58de 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js @@ -660,8 +660,8 @@ }; vm.loadRemoteWorkFlows = function () { - let vnfNames = vm.changeManagement.vnfNames.map(vnfName => vnfName.name); - return changeManagementService.getSOWorkflows(vnfNames) + let vnfModelIDs = vm.changeManagement.vnfNames.map(vnfName => vnfName.modelVersionId); + return changeManagementService.getSOWorkflows(vnfModelIDs) .then(function (response) { vm.remoteWorkflows = response.data || []; }).catch(function (error) { diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js index 2a06e75b1..4b45b891d 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js @@ -41,8 +41,8 @@ }); }; - this.getSOWorkflows = function (vnfNames) { - return $http.get(COMPONENT.GET_SO_WORKFLOWS, {params: {vnfName: vnfNames}}) + this.getSOWorkflows = function (vnfIDs) { + return $http.get(COMPONENT.GET_SO_WORKFLOWS, {params: {vnfModelId: vnfIDs}}) .success(function (response) { return {data: response}; }).catch(function (ex) { -- cgit 1.2.3-korg