This is an automated email from the ASF dual-hosted git repository.

jkevan pushed a commit to branch 
UNOMI-677-ignore-action-parameterValues-indexation
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit b99465051cbc989778a82741a64fa70c2f1b2d31
Author: Kevan <[email protected]>
AuthorDate: Fri Sep 23 14:54:04 2022 +0200

    UNOMI-677: Add rule.actions.parameterValues open map to the ignored indexed 
data in rules.json mapping
---
 .../java/org/apache/unomi/itests/migration/Migrate16xTo200IT.java | 1 +
 .../core/src/main/resources/META-INF/cxs/mappings/rule.json       | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git 
a/itests/src/test/java/org/apache/unomi/itests/migration/Migrate16xTo200IT.java 
b/itests/src/test/java/org/apache/unomi/itests/migration/Migrate16xTo200IT.java
index 6666f43f0..5bf809d11 100644
--- 
a/itests/src/test/java/org/apache/unomi/itests/migration/Migrate16xTo200IT.java
+++ 
b/itests/src/test/java/org/apache/unomi/itests/migration/Migrate16xTo200IT.java
@@ -99,6 +99,7 @@ public class Migrate16xTo200IT extends BaseIT {
         Assert.assertTrue(HttpUtils.executeGetRequest(httpClient, 
"http://localhost:9400/context-goal/_mapping";, 
null).contains("\"startEvent\":{\"type\":\"object\",\"enabled\":false}"));
         Assert.assertTrue(HttpUtils.executeGetRequest(httpClient, 
"http://localhost:9400/context-patch/_mapping";, 
null).contains("\"data\":{\"type\":\"object\",\"enabled\":false}"));
         Assert.assertTrue(HttpUtils.executeGetRequest(httpClient, 
"http://localhost:9400/context-rule/_mapping";, 
null).contains("\"condition\":{\"type\":\"object\",\"enabled\":false}"));
+        Assert.assertTrue(HttpUtils.executeGetRequest(httpClient, 
"http://localhost:9400/context-rule/_mapping";, 
null).contains("\"parameterValues\":{\"type\":\"object\",\"enabled\":false}"));
         Assert.assertTrue(HttpUtils.executeGetRequest(httpClient, 
"http://localhost:9400/context-profile/_mapping";, 
null).contains("\"interests\":{\"type\":\"nested\""));
         for (String eventIndex : 
MigrationUtils.getIndexesPrefixedBy(httpClient, "http://localhost:9400";, 
"context-event-")) {
             Assert.assertTrue(HttpUtils.executeGetRequest(httpClient, 
"http://localhost:9400/"; + eventIndex + "/_mapping", 
null).contains("\"flattenedProperties\":{\"type\":\"flattened\"}"));
diff --git 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/rule.json
 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/rule.json
index 7314176cd..d11cc551e 100644
--- 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/rule.json
+++ 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/rule.json
@@ -49,6 +49,14 @@
     "condition": {
       "type": "object",
       "enabled": false
+    },
+    "actions": {
+      "properties": {
+        "parameterValues": {
+          "type": "object",
+          "enabled": false
+        }
+      }
     }
   }
 }
\ No newline at end of file

Reply via email to