Merge "Change CLC logic for updated OPHist DB entries."
authorPamela Dragosh <pdragosh@research.att.com>
Wed, 27 May 2020 16:50:47 +0000 (16:50 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 27 May 2020 16:50:47 +0000 (16:50 +0000)
21 files changed:
applications/common/pom.xml
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/operationshistory/Dbao.java
applications/guard/pom.xml
applications/monitoring/pom.xml
applications/naming/pom.xml
applications/native/pom.xml
applications/optimization/pom.xml
applications/pom.xml
main/pom.xml
packages/policy-xacmlpdp-docker/pom.xml
packages/policy-xacmlpdp-tarball/pom.xml
packages/policy-xacmlpdp-tarball/src/main/resources/mysql/sql/createguardtable.sql
packages/pom.xml
pom.xml
releases/2.2.2-container.yaml [new file with mode: 0644]
releases/2.2.2.yaml [new file with mode: 0644]
testsuites/performance/pom.xml
testsuites/pom.xml
testsuites/stability/pom.xml
version.properties
xacml-test/pom.xml

index 09d097a..2d29ded 100644 (file)
@@ -26,7 +26,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp.applications</groupId>
         <artifactId>applications</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>common</artifactId>
index 2b70c9b..b4ee559 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP
  * ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,17 +24,18 @@ package org.onap.policy.pdp.xacml.application.common.operationshistory;
 
 import java.io.Serializable;
 import java.util.Date;
-
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
+import javax.persistence.Index;
 import javax.persistence.Table;
-
 import lombok.Data;
 
 @Entity
-@Table(name = "operationshistory")
+@Table(name = "operationshistory",
+                indexes = {@Index(name = "operationshistory_clreqid_index", columnList = "closedLoopName,requestId"),
+                                @Index(name = "operationshistory_target_index", columnList = "target,operation,actor")})
 @Data
 public class Dbao implements Serializable {
 
index 47c8567..df02903 100644 (file)
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp.applications</groupId>
         <artifactId>applications</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>guard</artifactId>
index 79988cf..7f06f70 100644 (file)
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp.applications</groupId>
         <artifactId>applications</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>monitoring</artifactId>
index 744f506..ed8fb2f 100644 (file)
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp.applications</groupId>
         <artifactId>applications</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>naming</artifactId>
index 5891e5e..fe4b5f2 100644 (file)
@@ -3,7 +3,7 @@
   <parent>
     <groupId>org.onap.policy.xacml-pdp.applications</groupId>
     <artifactId>applications</artifactId>
-    <version>2.2.2-SNAPSHOT</version>
+    <version>2.3.0-SNAPSHOT</version>
   </parent>
 
   <artifactId>native</artifactId>
index 6f9a4dd..dc2ac80 100644 (file)
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp.applications</groupId>
         <artifactId>applications</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>optimization</artifactId>
index 950bb67..6f79c1e 100644 (file)
@@ -25,7 +25,7 @@
   <parent>
     <groupId>org.onap.policy.xacml-pdp</groupId>
     <artifactId>policy-xacml-pdp</artifactId>
-    <version>2.2.2-SNAPSHOT</version>
+    <version>2.3.0-SNAPSHOT</version>
   </parent>
 
   <groupId>org.onap.policy.xacml-pdp.applications</groupId>
index d9af98b..289abab 100644 (file)
@@ -25,7 +25,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp</groupId>
         <artifactId>policy-xacml-pdp</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>xacml-main</artifactId>
index 5aa999b..f0f97ef 100644 (file)
@@ -26,7 +26,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp</groupId>
         <artifactId>xacml-packages</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <packaging>pom</packaging>
index db47ab6..f627e50 100644 (file)
@@ -25,7 +25,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp</groupId>
         <artifactId>xacml-packages</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>policy-xacmlpdp-tarball</artifactId>
index 4d11dec..f2d01fb 100644 (file)
@@ -1,5 +1,5 @@
 -- ============LICENSE_START=======================================================
--- Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+-- Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
 -- ================================================================================
 -- Licensed under the Apache License, Version 2.0 (the "License");
 -- you may not use this file except in compliance with the License.
@@ -29,4 +29,10 @@ create table if not exists operationshistory (
     subrequestId varchar(50),
     endtime timestamp not null default current_timestamp,
     PRIMARY KEY (id)
-);
\ No newline at end of file
+);
+
+create index if not exists operationshistory_clreqid_index on
+    operationshistory(closedLoopName, requestId);
+
+create index if not exists operationshistory_target_index on
+    operationshistory(target, operation, actor);
index 90119d8..669732a 100644 (file)
@@ -25,7 +25,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp</groupId>
         <artifactId>policy-xacml-pdp</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>xacml-packages</artifactId>
diff --git a/pom.xml b/pom.xml
index d603865..46cd487 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -31,7 +31,7 @@
 
     <groupId>org.onap.policy.xacml-pdp</groupId>
     <artifactId>policy-xacml-pdp</artifactId>
-    <version>2.2.2-SNAPSHOT</version>
+    <version>2.3.0-SNAPSHOT</version>
 
     <packaging>pom</packaging>
 
diff --git a/releases/2.2.2-container.yaml b/releases/2.2.2-container.yaml
new file mode 100644 (file)
index 0000000..bdb39f5
--- /dev/null
@@ -0,0 +1,8 @@
+distribution_type: 'container'
+container_release_tag: '2.2.2'
+project: 'policy-xacml-pdp'
+log_dir: 'policy-xacml-pdp-maven-docker-stage-master/335'
+ref: cb9908d5aeda7a56b1ad0037de139f00e7610d2b
+containers:
+    - name: 'policy-xacml-pdp'
+      version: '2.2.2-20200520T1654'
diff --git a/releases/2.2.2.yaml b/releases/2.2.2.yaml
new file mode 100644 (file)
index 0000000..97c23a4
--- /dev/null
@@ -0,0 +1,5 @@
+distribution_type: 'maven'
+version: '2.2.2'
+project: 'policy-xacml-pdp'
+tag_release: false
+log_dir: 'policy-xacml-pdp-maven-stage-master/337/'
index 8a87f31..adc3101 100644 (file)
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp</groupId>
         <artifactId>xacml-testsuites</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
     <artifactId>xacml-performance</artifactId>
     <build>
index 9056aaa..333db60 100644 (file)
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp</groupId>
         <artifactId>policy-xacml-pdp</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>xacml-testsuites</artifactId>
index 92f34f3..2fdf719 100644 (file)
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp</groupId>
         <artifactId>xacml-testsuites</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
     </parent>
     <artifactId>xacml-stability</artifactId>
     <build>
index 76584ab..d54fa5b 100644 (file)
@@ -3,8 +3,8 @@
 # because they are used in Jenkins, whose plug-in doesn't support
 
 major=2
-minor=2
-patch=2
+minor=3
+patch=0
 
 base_version=${major}.${minor}.${patch}
 
index 8a30960..61e631b 100644 (file)
@@ -26,7 +26,7 @@
     <parent>
         <groupId>org.onap.policy.xacml-pdp</groupId>
         <artifactId>policy-xacml-pdp</artifactId>
-        <version>2.2.2-SNAPSHOT</version>
+        <version>2.3.0-SNAPSHOT</version>
         <relativePath>..</relativePath>
     </parent>