atlas git commit: ATLAS-1920 : UI : Search using entity and trait attributes - Operators for enum and boolean data type filters.
Repository: atlas Updated Branches: refs/heads/0.8-incubating 09f677c03 -> 54f4a7ffd ATLAS-1920 : UI : Search using entity and trait attributes - Operators for enum and boolean data type filters. (cherry picked from commit daf6c0267a41670a5191fef1bd7741f492678970) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/54f4a7ff Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/54f4a7ff Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/54f4a7ff Branch: refs/heads/0.8-incubating Commit: 54f4a7ffd0f4970f62502b576ad3fe651c069fcf Parents: 09f677c Author: kevalbhattAuthored: Thu Aug 3 15:07:17 2017 +0530 Committer: Madhan Neethiraj Committed: Thu Aug 3 08:05:20 2017 -0700 -- 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/54f4a7ff/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) {
atlas git commit: ATLAS-1920 : UI : Search using entity and trait attributes - Operators for enum and boolean data type filters.
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: kevalbhattAuthored: Thu Aug 3 15:07:17 2017 +0530 Committer: kevalbhatt 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) {