From 756adbcc010f8dbbeee94294df634c8cce94372b Mon Sep 17 00:00:00 2001 From: Pradyumna Nagendra Date: Thu, 19 Sep 2019 18:39:06 +0530 Subject: [PATCH] Issue #000 fix: Fixed relations filters and log4j for publish pipeline --- .../org/ekstep/graph/dac/model/Filter.java | 9 +-- .../src/main/resources/log4j.xml | 80 +++++++++++++++---- 2 files changed, 68 insertions(+), 21 deletions(-) diff --git a/platform-core/graph-engine/module/graph-dac-api/src/main/java/org/ekstep/graph/dac/model/Filter.java b/platform-core/graph-engine/module/graph-dac-api/src/main/java/org/ekstep/graph/dac/model/Filter.java index 95e25108ee..505dd7c121 100644 --- a/platform-core/graph-engine/module/graph-dac-api/src/main/java/org/ekstep/graph/dac/model/Filter.java +++ b/platform-core/graph-engine/module/graph-dac-api/src/main/java/org/ekstep/graph/dac/model/Filter.java @@ -65,13 +65,8 @@ public String getCypher(SearchCriteria sc, String param) { property = SystemProperties.IL_UNIQUE_ID.name(); } if (SearchConditions.OP_EQUAL.equals(getOperator())) { - if (value instanceof String) { - sb.append(" ").append(param).append(property).append(" =~ {").append(pIndex).append("} "); - sc.params.put("" + pIndex, "(?i)" + value); - } else { - sb.append(" ").append(param).append(property).append(" = {").append(pIndex).append("} "); - sc.params.put("" + pIndex, value); - } + sb.append(" ").append(param).append(property).append(" = {").append(pIndex).append("} "); + sc.params.put("" + pIndex, value); pIndex += 1; } else if (SearchConditions.OP_LIKE.equals(getOperator())) { sb.append(" ").append(param).append(property).append(" =~ {").append(pIndex).append("} "); diff --git a/platform-jobs/samza/publish-pipeline/src/main/resources/log4j.xml b/platform-jobs/samza/publish-pipeline/src/main/resources/log4j.xml index d2db3940cc..5a2d627210 100644 --- a/platform-jobs/samza/publish-pipeline/src/main/resources/log4j.xml +++ b/platform-jobs/samza/publish-pipeline/src/main/resources/log4j.xml @@ -1,20 +1,72 @@ - - + + - - - - - - - + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file