Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
64b24351
Commit
64b24351
authored
5 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3681 : Cluttered Business Metadata Attribute listing under entity filters
parent
73bf850f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
20 deletions
+10
-20
UserDefine_tmpl.html
dashboardv2/public/js/templates/search/UserDefine_tmpl.html
+0
-8
QueryBuilderView.js
dashboardv2/public/js/views/search/QueryBuilderView.js
+4
-1
UserDefine_tmpl.html
dashboardv3/public/js/templates/search/UserDefine_tmpl.html
+0
-8
QueryBuilderView.js
dashboardv3/public/js/views/search/QueryBuilderView.js
+6
-3
No files found.
dashboardv2/public/js/templates/search/UserDefine_tmpl.html
View file @
64b24351
...
...
@@ -26,14 +26,6 @@
<textarea
placeholder=
"value"
data-type=
"value"
data-index=
"0"
class=
"form-control"
></textarea>
<p
class=
"errorMsg"
></p>
</td>
<!-- <td class="custom-col-2">
<button class="btn btn-default btn-sm" title="" data-index="0" data-id="deleteUserDefineItem">
<i class="fa fa-minus"> </i>
</button>
<button class="btn btn-default btn-sm" title="" data-index="0" data-id="addUserDefineItem">
<i class="fa fa-plus"> </i>
</button>
</td> -->
</tr>
<tr>
<td
colspan=
"4"
>
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/search/QueryBuilderView.js
View file @
64b24351
...
...
@@ -76,7 +76,10 @@ define(['require',
if
(
type
===
"string"
)
{
obj
.
operators
=
[
'='
,
'!='
,
'contains'
,
'begins_with'
,
'ends_with'
];
}
if
(
type
===
"date"
||
type
===
"int"
||
type
===
"byte"
||
type
===
"short"
||
type
===
"long"
||
type
===
"float"
||
type
===
"double"
)
{
if
(
type
===
"date"
)
{
obj
.
operators
=
[
'>'
,
'<'
];
}
if
(
type
===
"int"
||
type
===
"byte"
||
type
===
"short"
||
type
===
"long"
||
type
===
"float"
||
type
===
"double"
)
{
obj
.
operators
=
[
'='
,
'!='
,
'>'
,
'<'
,
'>='
,
'<='
];
}
if
(
type
===
"enum"
||
type
===
"boolean"
)
{
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/templates/search/UserDefine_tmpl.html
View file @
64b24351
...
...
@@ -26,14 +26,6 @@
<textarea
placeholder=
"value"
data-type=
"value"
data-index=
"0"
class=
"form-control"
></textarea>
<p
class=
"errorMsg"
></p>
</td>
<!-- <td class="custom-col-2">
<button class="btn btn-default btn-sm" title="" data-index="0" data-id="deleteUserDefineItem">
<i class="fa fa-minus"> </i>
</button>
<button class="btn btn-default btn-sm" title="" data-index="0" data-id="addUserDefineItem">
<i class="fa fa-plus"> </i>
</button>
</td> -->
</tr>
<tr>
<td
colspan=
"4"
>
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/search/QueryBuilderView.js
View file @
64b24351
...
...
@@ -66,7 +66,10 @@ define(['require',
if
(
type
===
"string"
)
{
obj
.
operators
=
[
'='
,
'!='
,
'contains'
,
'begins_with'
,
'ends_with'
];
}
if
(
type
===
"date"
||
type
===
"int"
||
type
===
"byte"
||
type
===
"short"
||
type
===
"long"
||
type
===
"float"
||
type
===
"double"
)
{
if
(
type
===
"date"
)
{
obj
.
operators
=
[
'>'
,
'<'
];
}
if
(
type
===
"int"
||
type
===
"byte"
||
type
===
"short"
||
type
===
"long"
||
type
===
"float"
||
type
===
"double"
)
{
obj
.
operators
=
[
'='
,
'!='
,
'>'
,
'<'
,
'>='
,
'<='
];
}
if
(
type
===
"enum"
||
type
===
"boolean"
)
{
...
...
@@ -354,10 +357,10 @@ define(['require',
if
(
this
.
type
)
{
var
pushBusinessMetadataFilter
=
function
(
sortedAttributes
,
businessMetadataKey
)
{
_
.
each
(
sortedAttributes
,
function
(
attrDetails
)
{
var
returnObj
=
that
.
getObjDef
(
attrDetails
,
rules_widgets
,
isGroupView
,
'Business Metadata Attribute'
,
true
);
var
returnObj
=
that
.
getObjDef
(
attrDetails
,
rules_widgets
,
isGroupView
,
"Business Attributes: "
+
businessMetadataKey
);
if
(
returnObj
)
{
returnObj
.
id
=
businessMetadataKey
+
"."
+
returnObj
.
id
;
returnObj
.
label
=
businessMetadataKey
+
": "
+
returnObj
.
label
;
returnObj
.
label
=
returnObj
.
label
;
returnObj
.
data
=
{
'entityType'
:
"businessMetadata"
};
filters
.
push
(
returnObj
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment