You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by am...@apache.org on 2017/07/26 12:50:33 UTC
incubator-unomi git commit: UNOMI-101 : Allow setting todelete column
to true for unkown profiles
Repository: incubator-unomi
Updated Branches:
refs/heads/master 44b3e4a46 -> 4ee8adb1c
UNOMI-101 : Allow setting todelete column to true for unkown profiles
Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/4ee8adb1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/4ee8adb1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/4ee8adb1
Branch: refs/heads/master
Commit: 4ee8adb1cd60936caca84fa7d39017a37fb20d34
Parents: 44b3e4a
Author: Abdelkader Midani <am...@apache.org>
Authored: Wed Jul 26 14:50:30 2017 +0200
Committer: Abdelkader Midani <am...@apache.org>
Committed: Wed Jul 26 14:50:30 2017 +0200
----------------------------------------------------------------------
.../org/apache/unomi/router/services/ProfileImportServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/4ee8adb1/extensions/router/router-service/src/main/java/org/apache/unomi/router/services/ProfileImportServiceImpl.java
----------------------------------------------------------------------
diff --git a/extensions/router/router-service/src/main/java/org/apache/unomi/router/services/ProfileImportServiceImpl.java b/extensions/router/router-service/src/main/java/org/apache/unomi/router/services/ProfileImportServiceImpl.java
index 63cfc56..e91ae7e 100644
--- a/extensions/router/router-service/src/main/java/org/apache/unomi/router/services/ProfileImportServiceImpl.java
+++ b/extensions/router/router-service/src/main/java/org/apache/unomi/router/services/ProfileImportServiceImpl.java
@@ -60,7 +60,7 @@ public class ProfileImportServiceImpl extends AbstractCustomServiceImpl implemen
//update segments and scores
existingProfile.setSegments(profileToImport.getSegments());
existingProfile.setScores(profileToImport.getScores());
- } else if (existingProfiles.size() == 0) {
+ } else if (existingProfiles.size() == 0 && !profileToImport.isProfileToDelete()) {
logger.debug("New profile to add...");
BeanUtils.copyProperties(existingProfile, profileToImport);
} else {