From 68803a2495d66262d7e49f4c77957decbeda5ff0 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Mon, 20 Jan 2020 21:46:47 +0200 Subject: Upgrade epsdk version to 2.6.0 (but keep overlay 2.5.0) (fix) Issue-ID: VID-471 Issue-ID: VID-718 Complements commit 9c131c1f Change-Id: I26a87acf828b9f557724de26e00ef1bb6739a67b Signed-off-by: Ittay Stern --- epsdk-app-onap/pom.xml | 5 +- .../webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp | 78 ++++++---------------- .../java/org/onap/vid/model/ExceptionResponse.java | 5 +- 3 files changed, 27 insertions(+), 61 deletions(-) diff --git a/epsdk-app-onap/pom.xml b/epsdk-app-onap/pom.xml index be810e5ba..ff8ac2f13 100755 --- a/epsdk-app-onap/pom.xml +++ b/epsdk-app-onap/pom.xml @@ -24,7 +24,8 @@ UTF-8 UTF-8 UTF-8 - 2.5.0 + 2.6.0 + 2.5.0 2.10.1 2.10.1 5.2.0.RELEASE @@ -269,7 +270,7 @@ org.onap.portal.sdk epsdk-app-overlay - ${epsdk.version} + ${epsdk.overlay.version} war diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp index 50a10d607..4571f34d8 100644 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp @@ -20,13 +20,12 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> <%@ page isELIgnored="false"%> -<%@ page import="org.onap.portalsdk.core.util.SystemProperties"%> -<%@ page import="org.onap.portalsdk.core.onboarding.util.PortalApiProperties"%> <%@ page import="org.onap.portalsdk.core.onboarding.util.PortalApiConstants"%> -<%@ page import="org.onap.portalsdk.core.domain.MenuData"%> +<%@ page import="org.onap.portalsdk.core.onboarding.util.PortalApiProperties"%> +<%@ page import="org.onap.portalsdk.core.util.SystemProperties"%> - + <%-- --%> @@ -687,55 +686,6 @@ "parentMenuId": null, "url": "" }, - { - "menuId": 90, - "column": 1, - "text": "Google", - "parentMenuId": 1, - "url": "http://google.com" - }, - { - "menuId": 91, - "column": 1, - "text": "Mike Little's Coffee Cup", - "parentMenuId": 2, - "url": "http://coffee.com" - }, - { - "menuId": 92, - "column": 2, - "text": "Andy and his Astrophotgraphy", - "parentMenuId": 3, - "url": "http://nightskypix.com" - }, - { - "menuId": 93, - "column": 1, - "text": "JSONLint", - "parentMenuId": 4, - "url": "http://http://jsonlint.com" - }, - { - "menuId": 96, - "column": 3, - "text": "3rd Level App1c R200", - "parentMenuId": 4, - "url": "http://app1c.com" - }, - { - "menuId": 97, - "column": 1, - "text": "3rd Level App4b R16", - "parentMenuId": 5, - "url": "http://app4b.com" - }, - { - "menuId": 98, - "column": 2, - "text": "3rd Level App2b R16", - "parentMenuId": 5, - "url": "http://app2b.com" - }, { "menuId": 99, "column": 1, @@ -748,11 +698,20 @@ $scope.megaMenuDataObject = menuStructureConvert($scope.jsonMenuData); // $log.debug(JSON.stringify($scope.jsonMenuData)); } + + LeftMenuService.getLeftMenu().then(function (response) { + var menu = { + parentList: JSON.parse(response.data), + childItemList: JSON.parse(response.data2) + }; + + try { + var childItemList=""; var parentList = ""; try{ - childItemList = ${menu.childItemList}; - parentList = ${menu.parentList}; + childItemList = menu.childItemList; + parentList = menu.parentList; }catch(err){ console.log("ebz_header: failed to get child/parent lists", err); } @@ -819,7 +778,14 @@ $timeout(function() { detectScrollEvent(); }, 800); - + + } catch (e) { + console.log("error happened while trying to get app menu " + e); + } + }, function (error) { + console.log('getLeftMenu failed', error); + }); + }); app.filter("ellipsis", function(){ diff --git a/vid-app-common/src/main/java/org/onap/vid/model/ExceptionResponse.java b/vid-app-common/src/main/java/org/onap/vid/model/ExceptionResponse.java index d2e5d637e..f8d5918db 100644 --- a/vid-app-common/src/main/java/org/onap/vid/model/ExceptionResponse.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/ExceptionResponse.java @@ -20,10 +20,9 @@ package org.onap.vid.model; +import org.onap.logging.ref.slf4j.ONAPLogConstants.MDCs; import org.slf4j.MDC; -import static com.att.eelf.configuration.Configuration.MDC_KEY_REQUEST_ID; - /** * The Class ExceptionResponse. */ @@ -67,7 +66,7 @@ public class ExceptionResponse { public void setException(Exception exception) { setException(exception.getClass().toString().replaceFirst("^.*[\\.$]", "")); - setMessage(exception.getMessage() + " (Request id: " + MDC.get(MDC_KEY_REQUEST_ID) + ")"); + setMessage(exception.getMessage() + " (Request id: " + MDC.get(MDCs.REQUEST_ID) + ")"); } /** -- cgit 1.2.3-korg