This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/master by this push:
new 38dd45dc0 UNOMI-677: Add rule.actions.parameterValues open map to the
ignored indexed data in rules.json mapping (#511)
38dd45dc0 is described below
commit 38dd45dc0fcbf0ce0c59f61de0776a3c2e0dc93c
Author: kevan Jahanshahi <[email protected]>
AuthorDate: Fri Sep 23 15:34:04 2022 +0200
UNOMI-677: Add rule.actions.parameterValues open map to the ignored indexed
data in rules.json mapping (#511)
---
.../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