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
1298c83d
Commit
1298c83d
authored
7 years ago
by
kevalbhatt
Committed by
nixonrodrigues
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2027 : UI : Add type-name with attribute name in query-builder
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
3f2d1915
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
QueryBuilderView.js
dashboardv2/public/js/views/search/QueryBuilderView.js
+6
-6
No files found.
dashboardv2/public/js/views/search/QueryBuilderView.js
View file @
1298c83d
...
@@ -81,7 +81,7 @@ define(['require',
...
@@ -81,7 +81,7 @@ define(['require',
getObjDef
:
function
(
attrObj
,
rules
)
{
getObjDef
:
function
(
attrObj
,
rules
)
{
var
obj
=
{
var
obj
=
{
id
:
attrObj
.
name
,
id
:
attrObj
.
name
,
label
:
attrObj
.
name
.
capitalize
(),
label
:
attrObj
.
name
.
capitalize
()
+
" ("
+
attrObj
.
typeName
+
")"
,
type
:
attrObj
.
typeName
type
:
attrObj
.
typeName
};
};
if
(
obj
.
type
===
"date"
)
{
if
(
obj
.
type
===
"date"
)
{
...
@@ -104,17 +104,17 @@ define(['require',
...
@@ -104,17 +104,17 @@ define(['require',
return
obj
;
return
obj
;
}
}
if
(
this
.
isPrimitive
(
obj
.
type
))
{
if
(
this
.
isPrimitive
(
obj
.
type
))
{
if
(
obj
.
type
===
"boolean"
)
{
obj
[
'input'
]
=
'select'
;
obj
[
'values'
]
=
[
'true'
,
'false'
];
}
_
.
extend
(
obj
,
this
.
getOperator
(
obj
.
type
));
if
(
obj
.
type
===
"long"
||
obj
.
type
===
"float"
)
{
if
(
obj
.
type
===
"long"
||
obj
.
type
===
"float"
)
{
obj
.
type
=
"double"
;
obj
.
type
=
"double"
;
}
}
if
(
obj
.
type
===
"int"
||
obj
.
type
===
"byte"
||
obj
.
type
===
"short"
)
{
if
(
obj
.
type
===
"int"
||
obj
.
type
===
"byte"
||
obj
.
type
===
"short"
)
{
obj
.
type
=
"integer"
;
obj
.
type
=
"integer"
;
}
}
if
(
obj
.
type
===
"boolean"
)
{
obj
[
'input'
]
=
'select'
;
obj
[
'values'
]
=
[
'true'
,
'false'
];
}
_
.
extend
(
obj
,
this
.
getOperator
(
obj
.
type
));
return
obj
;
return
obj
;
}
}
var
enumObj
=
this
.
enumDefCollection
.
fullCollection
.
find
({
name
:
obj
.
type
});
var
enumObj
=
this
.
enumDefCollection
.
fullCollection
.
find
({
name
:
obj
.
type
});
...
...
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