You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by js...@apache.org on 2023/03/22 18:42:19 UTC

[unomi] branch UNOMI-745-fix-NPE updated (e070e8043 -> f58198657)

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

jsinovassinnaik pushed a change to branch UNOMI-745-fix-NPE
in repository https://gitbox.apache.org/repos/asf/unomi.git


 discard e070e8043 refresh groovy index after remove
     new f58198657 refresh groovy index after remove

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (e070e8043)
            \
             N -- N -- N   refs/heads/UNOMI-745-fix-NPE (f58198657)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 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:
 itests/src/test/java/org/apache/unomi/itests/SegmentIT.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


[unomi] 01/01: refresh groovy index after remove

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

jsinovassinnaik pushed a commit to branch UNOMI-745-fix-NPE
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit f58198657d6901514610a181642a8c4f700ca787
Author: jsinovassin <js...@jahia.com>
AuthorDate: Wed Mar 22 19:26:06 2023 +0100

    refresh groovy index after remove
---
 .../src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java   | 2 +-
 itests/src/test/java/org/apache/unomi/itests/SegmentIT.java             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/itests/src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java b/itests/src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java
index a0d42cd3e..1382533d5 100644
--- a/itests/src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java
@@ -162,7 +162,7 @@ public class GroovyActionsServiceIT extends BaseIT {
         Assert.assertNotNull(groovyCodeSource);
 
         groovyActionsService.remove(UPDATE_ADDRESS_ACTION);
-        refreshPersistence(GroovyAction.class);
+        refreshPersistence(GroovyAction.class, ActionType.class);
 
         Thread.sleep(2000);
         groovyCodeSource = groovyActionsService.getGroovyCodeSource(UPDATE_ADDRESS_ACTION);
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 53a3c9da4..d230a07c3 100644
--- a/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
@@ -544,7 +544,7 @@ public class SegmentIT extends BaseIT {
         scoringElements.add(scoringElement);
         scoring.setElements(scoringElements);
         segmentService.setScoringDefinition(scoring);
-        refreshPersistence(Scoring.class);
+        refreshPersistence(Scoring.class, Profile.class);
 
         // Send 2 events that match the scoring plan.
         profile = profileService.load("test_profile_id");