From f57e82d8c734e59977c39bc6a0139174cb7f0649 Mon Sep 17 00:00:00 2001 From: "Christopher Lott (cl778h)" Date: Thu, 24 Aug 2017 14:34:31 -0400 Subject: [PATCH] Repair DDL duplicate-index name issue This blocked the portal-db container from starting, which blocked the app servers from starting. Issue: PORTAL-80 Change-Id: I4c0b6b378bda29355111b137cae32c8f219d9921 Signed-off-by: Christopher Lott (cl778h) --- ecomp-portal-BE-os/pom.xml | 51 +++++++++------------- .../EcompPortalDDLMySql_1710_Common.sql | 3 -- .../client/app/views/catalog/catalog.tpl.html | 2 +- .../client/app/views/role/role-list-controller.js | 7 ++- 4 files changed, 28 insertions(+), 35 deletions(-) diff --git a/ecomp-portal-BE-os/pom.xml b/ecomp-portal-BE-os/pom.xml index a8c19a54..966a7020 100644 --- a/ecomp-portal-BE-os/pom.xml +++ b/ecomp-portal-BE-os/pom.xml @@ -13,7 +13,8 @@ 1.3.0-SNAPSHOT 1.3.0-SNAPSHOT UTF-8 - + true 0 @@ -158,34 +159,7 @@ - - - org.apache.maven.plugins - maven-resources-plugin - 3.0.2 - - - copy-src - generate-resources - - copy-resources - - - ${basedir}/target/classes - false - ${skipTests} - - - ${basedir}/../ecomp-portal-BE-common/target/classes - - - - - - - - - + org.apache.maven.plugins maven-surefire-plugin @@ -253,7 +227,7 @@ maven-resources-plugin - 3.0.1 + 3.0.2 @@ -317,6 +291,23 @@ + + copy-src + generate-resources + + copy-resources + + + ${basedir}/target/classes + false + ${skipTests} + + + ${basedir}/../ecomp-portal-BE-common/target/classes + + + + diff --git a/ecomp-portal-DB-common/EcompPortalDDLMySql_1710_Common.sql b/ecomp-portal-DB-common/EcompPortalDDLMySql_1710_Common.sql index f4d3c85f..99cbdfa1 100644 --- a/ecomp-portal-DB-common/EcompPortalDDLMySql_1710_Common.sql +++ b/ecomp-portal-DB-common/EcompPortalDDLMySql_1710_Common.sql @@ -1302,9 +1302,6 @@ CREATE TABLE `ep_app_role_function` ( `function_cd` VARCHAR(50) NOT NULL, PRIMARY KEY (`id`), UNIQUE INDEX `UNIQUE KEY` (`app_id`, `role_id`, `function_cd`), -INDEX `fk_ep_app_role_function_role_id` (`role_id`), -INDEX `fk_ep_app_role_function_app_id` (`app_id`), -INDEX `fk_ep_app_role_function_ep_app_func` (`function_cd`,`app_id`), CONSTRAINT `fk_ep_app_role_function_app_id` FOREIGN KEY (`app_id`) REFERENCES `fn_app` (`app_id`), CONSTRAINT `fk_ep_app_role_function_ep_app_func` FOREIGN KEY (`app_id`, `function_cd`) REFERENCES `ep_app_function` (`app_id`, `function_cd`), CONSTRAINT `fk_ep_app_role_function_role_id` FOREIGN KEY (`role_id`) REFERENCES `fn_role` (`role_id`) diff --git a/ecomp-portal-FE-common/client/app/views/catalog/catalog.tpl.html b/ecomp-portal-FE-common/client/app/views/catalog/catalog.tpl.html index d3c10441..996f2275 100644 --- a/ecomp-portal-FE-common/client/app/views/catalog/catalog.tpl.html +++ b/ecomp-portal-FE-common/client/app/views/catalog/catalog.tpl.html @@ -60,7 +60,7 @@
  • -
    +
    diff --git a/ecomp-portal-FE-common/client/app/views/role/role-list-controller.js b/ecomp-portal-FE-common/client/app/views/role/role-list-controller.js index 582706c5..2ca149cb 100644 --- a/ecomp-portal-FE-common/client/app/views/role/role-list-controller.js +++ b/ecomp-portal-FE-common/client/app/views/role/role-list-controller.js @@ -42,7 +42,12 @@ app.controller('roleListController', function ($scope,RoleService,confirmBoxServ } else { toggleType = "inactivate"; } - + if((availableRole.id == "1") || (availableRole.id =="999")) + { + confirmBoxService.showInformation(availableRole.name+" role cannot be disabled"); + availableRole.active=!availableRole.active + return; + } confirmBoxService.confirm("You are about to "+toggleType+" the role "+availableRole.name+". Do you want to continue?").then( function(confirmed){ -- 2.16.6