Repository: atlas
Updated Branches:
  refs/heads/master ecd053685 -> daf6c0267


ATLAS-1920 : UI : Search using entity and trait attributes - Operators for enum 
and boolean data type filters.


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/daf6c026
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/daf6c026
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/daf6c026

Branch: refs/heads/master
Commit: daf6c0267a41670a5191fef1bd7741f492678970
Parents: ecd0536
Author: kevalbhatt <kbh...@apache.org>
Authored: Thu Aug 3 15:07:17 2017 +0530
Committer: kevalbhatt <kbh...@apache.org>
Committed: Thu Aug 3 15:53:58 2017 +0530

----------------------------------------------------------------------
 dashboardv2/public/js/views/search/QueryBuilderView.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/daf6c026/dashboardv2/public/js/views/search/QueryBuilderView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/search/QueryBuilderView.js 
b/dashboardv2/public/js/views/search/QueryBuilderView.js
index e8acf18..6cdbeb3 100644
--- a/dashboardv2/public/js/views/search/QueryBuilderView.js
+++ b/dashboardv2/public/js/views/search/QueryBuilderView.js
@@ -64,9 +64,12 @@ define(['require',
                 if (type === "string") {
                     obj.operators = ['=', '!=', 'contains', 'begins_with', 
'ends_with'];
                 }
-                if (type === "enum" || type === "date" || type === "int" || 
type === "byte" || type === "short" || type === "long" || type === "float" || 
type === "double") {
+                if (type === "date" || type === "int" || type === "byte" || 
type === "short" || type === "long" || type === "float" || type === "double") {
                     obj.operators = ['=', '!=', '>', '<', '>=', '<='];
                 }
+                if (type === "enum" || type === "boolean") {
+                    obj.operators = ['=', '!='];
+                }
                 return obj;
             },
             isPrimitive: function(type) {

Reply via email to