adds mid-tier config value for suggestion threshold value

This commit is contained in:
Seyi Adebajo 2018-07-30 11:21:02 -07:00
parent 62a43c0fa3
commit 00669afefb

View File

@ -68,6 +68,8 @@ public class Application extends Controller {
Play.application().configuration().getBoolean("linkedin.show.dataset.lineage", false);
private static final Boolean WHZ_SHOW_DS_HEALTH =
Play.application().configuration().getBoolean("linkedin.show.dataset.health", false);
private static final Boolean WHZ_SUGGESTION_CONFIDENCE_THRESHOLD =
Play.application().configuration().getString("linkedin.suggestion.confidence.threshold", "50");
private static final String WHZ_WIKI_LINKS__GDRP_PII =
Play.application().configuration().getString("linkedin.links.wiki.gdprPii", "");
@ -202,6 +204,7 @@ public class Application extends Controller {
config.put("isInternal", IS_INTERNAL);
config.put("shouldShowDatasetLineage", WHZ_SHOW_LINEAGE);
config.put("shouldShowDatasetHealth", WHZ_SHOW_DS_HEALTH);
config.put("suggestionConfidenceThreshold", Integer.parseInt(WHZ_SUGGESTION_CONFIDENCE_THRESHOLD));
config.set("wikiLinks", wikiLinks());
config.set("JitAclAccessWhitelist", Json.toJson(StringUtils.split(JIT_ACL_WHITELIST, ',')));
config.set("tracking", trackingInfo());