You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2017/10/03 17:58:08 UTC
[2/2] atlas git commit: ATLAS-2185: UI to handle is_null,
not_null operators for attribute search
ATLAS-2185: UI to handle is_null, not_null operators for attribute search
Signed-off-by: Madhan Neethiraj <ma...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/fe05e157
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/fe05e157
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/fe05e157
Branch: refs/heads/master
Commit: fe05e15751dca5dc4b84bccfdb0b1a236f1d65a4
Parents: 52848ab
Author: kevalbhatt <kb...@apache.org>
Authored: Tue Oct 3 16:20:24 2017 +0530
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Tue Oct 3 08:37:11 2017 -0700
----------------------------------------------------------------------
dashboardv2/public/js/views/search/QueryBuilderView.js | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/atlas/blob/fe05e157/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 a6a1e3a..1b9181b 100644
--- a/dashboardv2/public/js/views/search/QueryBuilderView.js
+++ b/dashboardv2/public/js/views/search/QueryBuilderView.js
@@ -70,6 +70,9 @@ define(['require',
if (type === "enum" || type === "boolean") {
obj.operators = ['=', '!='];
}
+ if (obj.operators) {
+ obj.operators = obj.operators.concat(['is_null', 'not_null']);
+ }
return obj;
},
isPrimitive: function(type) {
@@ -161,11 +164,16 @@ define(['require',
{ type: '<=', nb_inputs: 1, multiple: false, apply_to: ['number', 'string', 'boolean'] },
{ type: 'contains', nb_inputs: 1, multiple: false, apply_to: ['string'] },
{ type: 'begins_with', nb_inputs: 1, multiple: false, apply_to: ['string'] },
- { type: 'ends_with', nb_inputs: 1, multiple: false, apply_to: ['string'] }
+ { type: 'ends_with', nb_inputs: 1, multiple: false, apply_to: ['string'] },
+ { type: 'is_null', nb_inputs: false, multiple: false, apply_to: ['number', 'string', 'boolean', 'enum'] },
+ { type: 'not_null', nb_inputs: false, multiple: false, apply_to: ['number', 'string', 'boolean', 'enum'] }
],
lang: {
add_rule: 'Add filter',
- add_group: 'Add filter group'
+ add_group: 'Add filter group',
+ operators: {
+ not_null: 'is not null'
+ }
},
rules: rules_widgets
});