You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2020/07/27 08:04:41 UTC
[unomi] 09/11: UNOMI-363 add consent mapping in the profile.json
This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch unomi-1.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git
commit f70ec426cfec4731790dc954308b8747d0074b22
Author: Taybou <be...@gmail.com>
AuthorDate: Tue Jul 21 09:54:22 2020 +0200
UNOMI-363 add consent mapping in the profile.json
(cherry picked from commit 574d57e1c4ea2ccf69164b9770b4b5f2d4e4e5bd)
---
.../resources/META-INF/cxs/mappings/consent.json | 37 ----------------------
.../resources/META-INF/cxs/mappings/profile.json | 25 +++++++++++++--
2 files changed, 22 insertions(+), 40 deletions(-)
diff --git a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/consent.json b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/consent.json
deleted file mode 100644
index 6d4d57d..0000000
--- a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/consent.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "dynamic_templates": [
- {
- "all": {
- "match": "*",
- "match_mapping_type": "string",
- "mapping": {
- "type": "text",
- "analyzer": "folding",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- }
- }
- }
- ],
- "properties": {
- "scope": {
- "type": "string"
- },
- "typeIdentifier": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "statusDate": {
- "type": "date"
- },
- "revokeDate": {
- "type": "date"
- }
- }
-}
diff --git a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/profile.json b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/profile.json
index 7732186..2911216 100644
--- a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/profile.json
+++ b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/profile.json
@@ -20,8 +20,8 @@
"properties": {
"properties": {
"properties": {
- "age" : {
- "type" : "long"
+ "age": {
+ "type": "long"
},
"firstVisit": {
"type": "date"
@@ -36,6 +36,25 @@
"type": "long"
}
}
+ },
+ "consents": {
+ "properties": {
+ "scope": {
+ "type": "string"
+ },
+ "typeIdentifier": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "statusDate": {
+ "type": "date"
+ },
+ "revokeDate": {
+ "type": "date"
+ }
+ }
}
}
-}
\ No newline at end of file
+}