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 2022/11/14 10:55:00 UTC

[unomi] branch UNOMI-717-set-back-personlization-setter created (now 67a8c729b)

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

jsinovassinnaik pushed a change to branch UNOMI-717-set-back-personlization-setter
in repository https://gitbox.apache.org/repos/asf/unomi.git


      at 67a8c729b UNOMI-717 : set back the setter on personalizations in context response

This branch includes the following new commits:

     new 67a8c729b UNOMI-717 : set back the setter on personalizations in context response

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.



[unomi] 01/01: UNOMI-717 : set back the setter on personalizations in context response

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

jsinovassinnaik pushed a commit to branch UNOMI-717-set-back-personlization-setter
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit 67a8c729bedb71a097883f5380f9ac5252c8244a
Author: jsinovassin <js...@jahia.com>
AuthorDate: Mon Nov 14 11:47:09 2022 +0100

    UNOMI-717 : set back the setter on personalizations in context response
---
 api/src/main/java/org/apache/unomi/api/ContextResponse.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/api/src/main/java/org/apache/unomi/api/ContextResponse.java b/api/src/main/java/org/apache/unomi/api/ContextResponse.java
index 78382af03..e07662c07 100644
--- a/api/src/main/java/org/apache/unomi/api/ContextResponse.java
+++ b/api/src/main/java/org/apache/unomi/api/ContextResponse.java
@@ -51,6 +51,8 @@ public class ContextResponse implements Serializable {
 
     private int processedEvents;
 
+    private Map<String, List<String>> personalizations;
+
     private Map<String, PersonalizationResult> personalizationResults;
 
     private Set<Condition> trackedConditions;
@@ -209,7 +211,7 @@ public class ContextResponse implements Serializable {
                     .collect(Collectors.toMap(Map.Entry::getKey,
                             entry -> entry.getValue().getContentIds()));
         }
-        return null;
+        return personalizations;
     }
 
     /**
@@ -217,7 +219,7 @@ public class ContextResponse implements Serializable {
      */
     @Deprecated
     public void setPersonalizations(Map<String, List<String>> personalizations) {
-        // do nothing, use setPersonalizationResults() instead
+        this.personalizations = personalizations;
     }
 
     /**