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
28c9efb1
Commit
28c9efb1
authored
8 years ago
by
Shwetha GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1065 UI: Full text search view same as DSL's (kevalbhat18 via shwethags)
parent
2b14ec10
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
86 deletions
+44
-86
SearchResultLayoutView.js
dashboardv2/public/js/views/search/SearchResultLayoutView.js
+43
-86
release-log.txt
release-log.txt
+1
-0
No files found.
dashboardv2/public/js/views/search/SearchResultLayoutView.js
View file @
28c9efb1
...
...
@@ -317,53 +317,53 @@ define(['require',
col
=
{};
var
responseData
=
this
.
searchCollection
.
responseData
;
if
(
this
.
searchCollection
.
responseData
)
{
if
(
responseData
.
dataType
)
{
if
(
responseData
.
dataType
.
attributeDefinitions
.
length
==
2
&&
responseData
.
dataType
.
attributeDefinitions
[
1
].
name
==
"instanceInfo"
)
{
return
this
.
getFixedFullTextColumn
();
}
else
{
if
(
responseData
.
dataType
.
typeName
.
indexOf
(
'_temp'
)
==
-
1
)
{
return
this
.
getFixedDslColumn
();
}
else
{
var
idFound
=
false
;
_
.
each
(
this
.
searchCollection
.
models
,
function
(
model
)
{
var
modelJSON
=
model
.
toJSON
();
var
guid
=
""
;
_
.
each
(
modelJSON
,
function
(
val
,
key
)
{
if
(
_
.
isObject
(
val
)
&&
val
.
id
)
{
model
.
set
(
'id'
,
val
.
id
);
guid
=
val
.
id
;
}
else
if
(
key
===
"id"
)
{
model
.
set
(
'id'
,
val
);
guid
=
val
;
}
});
if
(
guid
.
length
)
{
idFound
=
true
;
model
.
getEntity
(
guid
,
{
async
:
false
,
success
:
function
(
data
)
{
if
(
data
.
definition
)
{
if
(
data
.
definition
.
id
&&
data
.
definition
.
values
)
{
that
.
searchCollection
.
get
(
data
.
definition
.
id
).
set
(
data
.
definition
.
values
);
that
.
searchCollection
.
get
(
data
.
definition
.
id
).
set
(
'$id$'
,
data
.
definition
.
id
);
that
.
searchCollection
.
get
(
data
.
definition
.
id
).
set
(
'$traits$'
,
data
.
definition
.
traits
);
}
}
},
error
:
function
(
error
,
data
,
status
)
{},
complete
:
function
()
{}
});
if
(
responseData
.
dataType
&&
responseData
.
dataType
.
typeName
.
indexOf
(
'_temp'
)
==
-
1
)
{
return
this
.
getFixedDslColumn
();
}
else
{
var
idFound
=
false
;
_
.
each
(
this
.
searchCollection
.
models
,
function
(
model
)
{
var
modelJSON
=
model
.
toJSON
();
var
guid
=
""
;
_
.
each
(
modelJSON
,
function
(
val
,
key
)
{
if
(
_
.
isObject
(
val
))
{
if
(
val
.
id
)
{
model
.
set
(
'id'
,
val
.
id
);
guid
=
val
.
id
;
}
else
if
(
val
.
guid
)
{
model
.
set
(
'id'
,
val
.
guid
);
guid
=
val
.
guid
;
}
});
if
(
idFound
)
{
return
this
.
getFixedDslColumn
();
}
else
{
return
this
.
getDaynamicColumn
();
}
else
if
(
key
===
"id"
)
{
model
.
set
(
'id'
,
val
);
guid
=
val
;
}
else
if
(
key
===
"guid"
)
{
model
.
set
(
'id'
,
val
);
guid
=
val
;
}
});
if
(
guid
.
length
)
{
idFound
=
true
;
model
.
getEntity
(
guid
,
{
async
:
false
,
success
:
function
(
data
)
{
if
(
data
.
definition
)
{
if
(
data
.
definition
.
id
&&
data
.
definition
.
values
)
{
that
.
searchCollection
.
get
(
data
.
definition
.
id
).
set
(
data
.
definition
.
values
);
that
.
searchCollection
.
get
(
data
.
definition
.
id
).
set
(
'$id$'
,
data
.
definition
.
id
);
that
.
searchCollection
.
get
(
data
.
definition
.
id
).
set
(
'$traits$'
,
data
.
definition
.
traits
);
}
}
},
error
:
function
(
error
,
data
,
status
)
{},
complete
:
function
()
{}
});
}
});
if
(
idFound
)
{
return
this
.
getFixedDslColumn
();
}
else
{
return
this
.
getDaynamicColumn
();
}
}
else
{
return
this
.
getFixedFullTextColumn
();
}
}
},
...
...
@@ -478,49 +478,6 @@ define(['require',
that
.
checkTableFetch
();
return
this
.
searchCollection
.
constructor
.
getTableCols
(
col
,
this
.
searchCollection
);
},
getFixedFullTextColumn
:
function
()
{
var
that
=
this
;
return
this
.
searchCollection
.
constructor
.
getTableCols
({
instanceInfo
:
{
label
:
"Type Name"
,
cell
:
"html"
,
editable
:
false
,
sortable
:
false
,
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
var
modelObject
=
model
.
toJSON
();
if
(
modelObject
.
$typeName$
&&
modelObject
.
instanceInfo
)
{
return
'<a href="#!/detailPage/'
+
modelObject
.
instanceInfo
.
guid
+
'">'
+
modelObject
.
instanceInfo
.
typeName
+
'</a>'
;
}
else
if
(
!
modelObject
.
$typeName$
)
{
return
'<a href="#!/detailPage/'
+
modelObject
.
guid
+
'">'
+
modelObject
.
typeName
+
'</a>'
;
}
}
})
},
name
:
{
label
:
"Name"
,
cell
:
"html"
,
editable
:
false
,
sortable
:
false
,
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
var
modelObject
=
model
.
toJSON
();
if
(
modelObject
.
$typeName$
&&
modelObject
.
instanceInfo
)
{
var
guid
=
model
.
toJSON
().
instanceInfo
.
guid
;
var
json
=
model
.
toJSON
();
json
[
'id'
]
=
guid
;
return
CommonViewFunction
.
propertyTable
({
'notUsedKey'
:
json
},
that
,
true
);
}
else
if
(
!
modelObject
.
$typeName$
)
{
var
guid
=
model
.
toJSON
().
guid
;
var
json
=
model
.
toJSON
();
json
[
'id'
]
=
guid
;
return
CommonViewFunction
.
propertyTable
({
'notUsedKey'
:
json
},
that
,
true
);
}
}
})
}
},
this
.
searchCollection
);
},
addTagModalView
:
function
(
e
)
{
var
that
=
this
;
require
([
'views/tag/addTagModalView'
],
function
(
AddTagModalView
)
{
...
...
This diff is collapsed.
Click to expand it.
release-log.txt
View file @
28c9efb1
...
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ATLAS-1065 UI: Full text search view same as DSL's (kevalbhat18 via shwethags)
ATLAS-1066 Falcon fails to post entity to Atlas due to kafka exception (mneethiraj via shwethags)
ATLAS-1064 UI: Pagination for full text search results (Kalyanikashikar via shwethags)
ATLAS-1006 Paginate full text search results (shwethags)
...
...
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