You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2021/03/26 14:47:49 UTC
[unomi] branch master updated: UNOMI-450 : deprecate
AllEventToProfilePropertiesAction to use CopyPropertiesAction (#270)
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 399cac6 UNOMI-450 : deprecate AllEventToProfilePropertiesAction to use CopyPropertiesAction (#270)
399cac6 is described below
commit 399cac6b089ef19b1dc767f6752a16c86016b822
Author: jsinovassin <58...@users.noreply.github.com>
AuthorDate: Fri Mar 26 15:47:36 2021 +0100
UNOMI-450 : deprecate AllEventToProfilePropertiesAction to use CopyPropertiesAction (#270)
---
itests/src/test/resources/testLogin.json | 5 ++++-
.../baseplugin/actions/AllEventToProfilePropertiesAction.java | 4 ++++
.../src/main/resources/META-INF/cxs/rules/exampleLogin.json | 4 ++--
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/itests/src/test/resources/testLogin.json b/itests/src/test/resources/testLogin.json
index fce5a3d..556b32c 100644
--- a/itests/src/test/resources/testLogin.json
+++ b/itests/src/test/resources/testLogin.json
@@ -28,7 +28,10 @@
{
"parameterValues": {
},
- "type": "allEventToProfilePropertiesAction"
+ "type": "copyPropertiesAction",
+ "parameterValues": {
+ "singleValueStrategy": "alwaysSet"
+ }
}
]
}
diff --git a/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/AllEventToProfilePropertiesAction.java b/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/AllEventToProfilePropertiesAction.java
index cd538b5..b24bb96 100644
--- a/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/AllEventToProfilePropertiesAction.java
+++ b/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/AllEventToProfilePropertiesAction.java
@@ -27,6 +27,10 @@ import org.apache.unomi.api.services.ProfileService;
import java.util.HashMap;
import java.util.Map;
+/**
+ * Use instead {@link CopyPropertiesAction}
+ */
+@Deprecated
public class AllEventToProfilePropertiesAction implements ActionExecutor {
private ProfileService profileService;
diff --git a/samples/login-integration/src/main/resources/META-INF/cxs/rules/exampleLogin.json b/samples/login-integration/src/main/resources/META-INF/cxs/rules/exampleLogin.json
index acdbdaa..5691f47 100644
--- a/samples/login-integration/src/main/resources/META-INF/cxs/rules/exampleLogin.json
+++ b/samples/login-integration/src/main/resources/META-INF/cxs/rules/exampleLogin.json
@@ -29,7 +29,7 @@
{
"parameterValues": {
},
- "type": "allEventToProfilePropertiesAction"
+ "type": "copyPropertiesAction"
}
]
-}
\ No newline at end of file
+}