You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by dg...@apache.org on 2021/05/05 07:00:37 UTC

[unomi] branch unomi-1.5.x updated (5c911d0 -> bd0d73d)

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

dgriffon pushed a change to branch unomi-1.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git.


    from 5c911d0  [maven-release-plugin] prepare for next development iteration
     new e184a18  UNOMI-481 Allow dot character for profileId and sessionId (#306)
     new bd0d73d  UNOMI-480 Wrong default values for monthlyIndexOverride that changed how indices for events and sessions are split. (#305)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java   | 2 +-
 itests/src/test/java/org/apache/unomi/itests/SegmentIT.java           | 2 +-
 itests/src/test/resources/validation/contextRequest_valid.json        | 4 ++--
 .../core/src/main/resources/OSGI-INF/blueprint/blueprint.xml          | 1 +
 4 files changed, 5 insertions(+), 4 deletions(-)

[unomi] 02/02: UNOMI-480 Wrong default values for monthlyIndexOverride that changed how indices for events and sessions are split. (#305)

Posted by dg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dgriffon pushed a commit to branch unomi-1.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit bd0d73d2ea353f12d2e3a486f7018115123b839e
Author: Serge Huber <sh...@jahia.com>
AuthorDate: Wed May 5 08:57:29 2021 +0200

    UNOMI-480 Wrong default values for monthlyIndexOverride that changed how indices for events and sessions are split. (#305)
---
 itests/src/test/java/org/apache/unomi/itests/SegmentIT.java             | 2 +-
 .../core/src/main/resources/OSGI-INF/blueprint/blueprint.xml            | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java b/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
index 2b5abf9..bc05a24 100644
--- a/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
@@ -150,7 +150,7 @@ public class SegmentIT extends BaseIT {
         Event testEvent = new Event("test-event-type", null, profile, null, null, profile, Date.from(localDate.atStartOfDay(defaultZoneId).toInstant()));
         testEvent.setPersistent(true);
         eventService.send(testEvent);
-        persistenceService.refreshIndex(Event.class, null); // wait for event to be fully persisted and indexed
+        persistenceService.refreshIndex(Event.class, new Date()); // wait for event to be fully persisted and indexed
 
         // create the segment
         Metadata segmentMetadata = new Metadata("past-event-segment-test");
diff --git a/persistence-elasticsearch/core/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/persistence-elasticsearch/core/src/main/resources/OSGI-INF/blueprint/blueprint.xml
index 2ec7d2d..f628a8c 100644
--- a/persistence-elasticsearch/core/src/main/resources/OSGI-INF/blueprint/blueprint.xml
+++ b/persistence-elasticsearch/core/src/main/resources/OSGI-INF/blueprint/blueprint.xml
@@ -41,6 +41,7 @@
             <cm:property name="monthlyIndex.numberOfReplicas" value="0"/>
             <cm:property name="monthlyIndex.indexMappingTotalFieldsLimit" value="1000"/>
             <cm:property name="monthlyIndex.indexMaxDocValueFieldsSearch" value="1000"/>
+            <cm:property name="monthlyIndex.itemsMonthlyIndexedOverride" value="event,session"/>
             <cm:property name="defaultQueryLimit" value="10"/>
 
             <cm:property name="bulkProcessor.concurrentRequests" value="1" />

[unomi] 01/02: UNOMI-481 Allow dot character for profileId and sessionId (#306)

Posted by dg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dgriffon pushed a commit to branch unomi-1.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit e184a18191ef6398b1fbc587ce14a3cfd0a08d00
Author: Serge Huber <sh...@jahia.com>
AuthorDate: Wed May 5 08:57:19 2021 +0200

    UNOMI-481 Allow dot character for profileId and sessionId (#306)
---
 api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java | 2 +-
 itests/src/test/resources/validation/contextRequest_valid.json      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java b/api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java
index ee5444e..ca7255d 100644
--- a/api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java
+++ b/api/src/main/java/org/apache/unomi/api/utils/ValidationPattern.java
@@ -18,5 +18,5 @@ package org.apache.unomi.api.utils;
 
 public class ValidationPattern {
 
-    public static final String TEXT_VALID_CHARACTERS_PATTERN = "^(\\w|[-_@]){0,50}$";
+    public static final String TEXT_VALID_CHARACTERS_PATTERN = "^(\\w|[-_@\\.]){0,50}$";
 }
diff --git a/itests/src/test/resources/validation/contextRequest_valid.json b/itests/src/test/resources/validation/contextRequest_valid.json
index 27b8f57..3887b86 100644
--- a/itests/src/test/resources/validation/contextRequest_valid.json
+++ b/itests/src/test/resources/validation/contextRequest_valid.json
@@ -6,6 +6,6 @@
     "version": null,
     "properties": {}
   },
-  "sessionId": "dummy-session-id",
-  "profileId": "dummy-profile-id"
+  "sessionId": "dummy-session.id",
+  "profileId": "dummy-profile.id"
 }
\ No newline at end of file