You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2020/06/29 08:50:39 UTC

[unomi] branch master updated: feat(org.apache.unomi.services.cfg) - add an environment variable for a configuration property

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

shuber 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 473fb67  feat(org.apache.unomi.services.cfg) - add an environment variable for a configuration property
     new 84d966f  Merge pull request #169 from YotpoLtd/elastic_refresh-add_environment_param
473fb67 is described below

commit 473fb679d5365dc6ce72b9fab718b4b08129a4a8
Author: nlevitsky <nl...@yotpo.com>
AuthorDate: Thu Jun 25 11:00:55 2020 +0300

    feat(org.apache.unomi.services.cfg) - add an environment variable for a configuration property
---
 package/src/main/resources/etc/custom.system.properties   | 2 ++
 services/src/main/resources/org.apache.unomi.services.cfg | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/package/src/main/resources/etc/custom.system.properties b/package/src/main/resources/etc/custom.system.properties
index bd23640..87b7464 100644
--- a/package/src/main/resources/etc/custom.system.properties
+++ b/package/src/main/resources/etc/custom.system.properties
@@ -105,6 +105,8 @@ org.apache.unomi.profile.purge.inactiveTime=${env:UNOMI_PROFILE_PURGE_INACTIVETI
 org.apache.unomi.profile.purge.existTime=${env:UNOMI_PROFILE_PURGE_EXISTTIME:--1}
 # Purge all sessions/events that have been created for a specific number of months
 org.apache.unomi.event.purge.existTime=${env:UNOMI_EVENT_PURGE_EXISTTIME:-12}
+# Refresh Elasticsearch after saving a profile
+org.apache.unomi.profile.forceRefreshOnSave=${env:UNOMI_PROFILE_REFRESH_ON_SAVE:-false}
 # When performing segment updates, this controls the size of the scrolling query size used to iterate over all the
 # profiles that need updating
 org.apache.unomi.segment.update.batchSize=${env:UNOMI_SEGMENT_UPDATE_BATCHSIZE:-1000}
diff --git a/services/src/main/resources/org.apache.unomi.services.cfg b/services/src/main/resources/org.apache.unomi.services.cfg
index 792f990..08295cb 100644
--- a/services/src/main/resources/org.apache.unomi.services.cfg
+++ b/services/src/main/resources/org.apache.unomi.services.cfg
@@ -24,6 +24,9 @@ profile.purge.inactiveTime=${org.apache.unomi.profile.purge.inactiveTime:-180}
 # Purge profiles that have been created for a specific number of days
 profile.purge.existTime=${org.apache.unomi.profile.purge.existTime:--1}
 
+# Refresh Elasticsearch after saving a profile
+profile.forceRefreshOnSave=${org.apache.unomi.profile.forceRefreshOnSave:-false}
+
 # Purge all sessions/events that have been created for a specific number of months
 event.purge.existTime=${org.apache.unomi.event.purge.existTime:-12}