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
0c3d2ed3
Commit
0c3d2ed3
authored
Jun 30, 2020
by
kevalbhatt
Committed by
nixonrodrigues
Jul 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3870:- UI: hive_table entity table not updating queryparams based on filter selected
parent
337575c8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
40 deletions
+42
-40
CreateEntityLayoutView.js
dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
+1
-1
EntityBusinessMetaDataItemView.js
.../public/js/views/entity/EntityBusinessMetaDataItemView.js
+8
-8
ProfileLayoutView.js
dashboardv2/public/js/views/profile/ProfileLayoutView.js
+1
-1
SearchResultLayoutView.js
dashboardv2/public/js/views/search/SearchResultLayoutView.js
+11
-10
CreateEntityLayoutView.js
dashboardv3/public/js/views/entity/CreateEntityLayoutView.js
+1
-1
EntityBusinessMetaDataItemView.js
.../public/js/views/entity/EntityBusinessMetaDataItemView.js
+8
-8
ProfileLayoutView.js
dashboardv3/public/js/views/profile/ProfileLayoutView.js
+1
-1
SearchResultLayoutView.js
dashboardv3/public/js/views/search/SearchResultLayoutView.js
+10
-10
EntityTreeLayoutView.js
...ardv3/public/js/views/search/tree/EntityTreeLayoutView.js
+1
-0
No files found.
dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
View file @
0c3d2ed3
...
...
@@ -775,7 +775,7 @@ define(['require',
success
:
function
(
model
,
response
)
{
that
.
modal
.
$el
.
find
(
'button.ok'
).
hideButtonLoader
();
that
.
modal
.
close
();
var
msgType
=
that
.
guid
?
'editSuccessMessage'
:
'addSuccessMessage'
;
var
msgType
=
(
model
.
mutatedEntities
&&
model
.
mutatedEntities
.
UPDATE
)
?
'editSuccessMessage'
:
'addSuccessMessage'
;
Utils
.
notifySuccess
({
content
:
"Entity "
+
Messages
.
getAbbreviationMsg
(
false
,
msgType
)
});
...
...
dashboardv2/public/js/views/entity/EntityBusinessMetaDataItemView.js
View file @
0c3d2ed3
...
...
@@ -115,7 +115,7 @@ define(['require',
if
(
!
that
.
model
.
has
(
"__internal_UI_businessMetadataName"
))
{
updateObj
[
"__internal_UI_businessMetadataName"
]
=
businessMetadata
;
}
if
(
typeName
.
indexOf
(
"date"
)
>
-
1
)
{
if
(
typeName
===
"date"
||
typeName
===
"array<date>"
)
{
if
(
multi
&&
updateObj
[
key
].
value
)
{
var
dateValues
=
updateObj
[
key
].
value
.
split
(
','
),
dateStr
=
[];
...
...
@@ -133,7 +133,7 @@ define(['require',
});
this
.
$el
.
on
(
'keypress'
,
'.select2_only_number .select2-search__field'
,
function
()
{
var
typename
=
$
(
this
).
parents
(
".select2_only_number"
).
find
(
"select[data-typename]"
).
data
(
"typename"
)
if
(
typename
.
indexOf
(
"float"
)
>
-
1
&&
event
.
which
==
46
)
{
if
(
(
typename
===
"float"
||
typename
===
"array<float>"
)
&&
event
.
which
==
46
)
{
return
;
}
if
((
event
.
which
<
48
||
event
.
which
>
57
))
{
...
...
@@ -159,10 +159,10 @@ define(['require',
if
(
!
isMultiValued
&&
!
_
.
isEmpty
(
val
))
{
val
=
_
.
escape
(
val
);
}
if
(
!
_
.
isUndefinedNull
(
val
)
&&
typeName
.
indexOf
(
"boolean"
)
>
-
1
)
{
if
(
!
_
.
isUndefinedNull
(
val
)
&&
(
typeName
===
"boolean"
||
typeName
===
"array<boolean>"
)
)
{
val
=
String
(
val
);
}
if
(
typeName
.
indexOf
(
"date"
)
>
-
1
)
{
if
(
typeName
===
"date"
||
typeName
===
"array<date>"
)
{
if
(
isMultiValued
&&
val
&&
val
.
length
)
{
var
dateStr
=
[];
_
.
each
(
val
,
function
(
selectedDate
)
{
...
...
@@ -175,11 +175,11 @@ define(['require',
val
=
moment
(
val
).
format
(
Globals
.
dateFormat
);
}
}
if
(
typeName
.
indexOf
(
"string"
)
>
-
1
)
{
if
(
typeName
===
"string"
||
typeName
===
"array<string>"
)
{
returnEL
=
'<'
+
elType
+
' type="text" data-key="'
+
key
+
'" data-businessMetadata="'
+
businessMetadata
+
'" data-typename="'
+
typeName
+
'" data-multi="'
+
isMultiValued
+
'" data-tags="true" placeholder="Enter String" class="form-control" '
+
(
isMultiValued
===
false
&&
!
_
.
isUndefinedNull
(
val
)
?
'value="'
+
val
+
'"'
:
""
)
+
'></'
+
elType
+
'>'
;
}
else
if
(
typeName
.
indexOf
(
"boolean"
)
>
-
1
)
{
}
else
if
(
typeName
===
"boolean"
||
typeName
===
"array<boolean>"
)
{
returnEL
=
'<select data-key="'
+
key
+
'" data-businessMetadata="'
+
businessMetadata
+
'" data-typename="'
+
typeName
+
'" data-multi="'
+
isMultiValued
+
'" class="form-control">'
+
(
isMultiValued
?
""
:
'<option value="">--Select Value--</option>'
)
+
'<option value="true" '
+
(
!
_
.
isUndefinedNull
(
val
)
&&
val
==
"true"
?
"selected"
:
""
)
+
'>true</option><option value="false" '
+
(
!
_
.
isUndefinedNull
(
val
)
&&
val
==
"false"
?
"selected"
:
""
)
+
'>false</option></select>'
;
}
else
if
(
typeName
.
indexOf
(
"date"
)
>
-
1
)
{
}
else
if
(
typeName
===
"date"
||
typeName
===
"array<date>"
)
{
returnEL
=
'<'
+
(
isMultiValued
?
"textarea"
:
"input"
)
+
' type="text" data-key="'
+
key
+
'" data-businessMetadata="'
+
businessMetadata
+
'" data-typename="'
+
typeName
+
'"data-multi="'
+
isMultiValued
+
'" data-type="date" class="form-control" '
+
(
isMultiValued
===
false
&&
!
_
.
isUndefinedNull
(
val
)
?
'value="'
+
val
+
'"'
:
""
)
+
'>'
+
(
isMultiValued
===
true
&&
!
_
.
isUndefinedNull
(
val
)
?
val
:
""
)
+
(
isMultiValued
?
"</textarea>"
:
""
);
setTimeout
(
function
()
{
var
dateObj
=
{
singleDatePicker
:
true
,
showDropdowns
:
true
,
autoUpdateInput
:
isMultiValued
?
false
:
true
},
...
...
@@ -195,7 +195,7 @@ define(['require',
});
}
},
0
);
}
else
if
(
typeName
.
indexOf
(
"byte"
)
>
-
1
||
typeName
.
indexOf
(
"short"
)
>
-
1
||
typeName
.
indexOf
(
"int"
)
>
-
1
||
typeName
.
indexOf
(
"float"
)
>
-
1
||
typeName
.
indexOf
(
"double"
)
>
-
1
||
typeName
.
indexOf
(
"long"
)
>
-
1
)
{
}
else
if
(
typeName
===
"byte"
||
typeName
===
"array<byte>"
||
typeName
===
"short"
||
typeName
===
"array<short>"
||
typeName
===
"int"
||
typeName
===
"array<int>"
||
typeName
===
"float"
||
typeName
===
"array<float>"
||
typeName
===
"double"
||
typeName
===
"array<double>"
||
typeName
===
"long"
||
typeName
===
"array<long>"
)
{
allowOnlyNum
=
true
;
returnEL
=
'<'
+
elType
+
' data-key="'
+
key
+
'" data-businessMetadata="'
+
businessMetadata
+
'" data-typename="'
+
typeName
+
'" type="number" data-multi="'
+
isMultiValued
+
'" data-tags="true" placeholder="Enter Number" class="form-control" '
+
(
!
_
.
isUndefinedNull
(
val
)
?
'value="'
+
val
+
'"'
:
""
)
+
'></'
+
elType
+
'>'
;
}
else
if
(
typeName
)
{
...
...
dashboardv2/public/js/views/profile/ProfileLayoutView.js
View file @
0c3d2ed3
...
...
@@ -80,11 +80,11 @@ define(['require',
var
value
=
_
.
extend
({},
that
.
value
,
{
'guid'
:
that
.
guid
,
'searchType'
:
'relationship'
,
'profileDBView'
:
true
,
'typeName'
:
that
.
typeName
});
that
.
RProfileTableOrColumnLayoutView
.
show
(
new
SearchResultLayoutView
({
'value'
:
value
,
'profileDBView'
:
true
,
'typeHeaders'
:
that
.
typeHeaders
,
'entityDefCollection'
:
that
.
entityDefCollection
,
'enumDefCollection'
:
that
.
enumDefCollection
,
...
...
dashboardv2/public/js/views/search/SearchResultLayoutView.js
View file @
0c3d2ed3
...
...
@@ -147,7 +147,7 @@ define(['require',
* @constructs
*/
initialize
:
function
(
options
)
{
_
.
extend
(
this
,
_
.
pick
(
options
,
'value'
,
'guid'
,
'initialView'
,
'isTypeTagNotExists'
,
'classificationDefCollection'
,
'entityDefCollection'
,
'typeHeaders'
,
'searchVent'
,
'enumDefCollection'
,
'tagCollection'
,
'searchTableColumns'
,
'isTableDropDisable'
,
'fromView'
,
'glossaryCollection'
,
'termName'
,
'businessMetadataDefCollection'
));
_
.
extend
(
this
,
_
.
pick
(
options
,
'value'
,
'guid'
,
'initialView'
,
'isTypeTagNotExists'
,
'classificationDefCollection'
,
'entityDefCollection'
,
'typeHeaders'
,
'searchVent'
,
'enumDefCollection'
,
'tagCollection'
,
'searchTableColumns'
,
'isTableDropDisable'
,
'fromView'
,
'glossaryCollection'
,
'termName'
,
'businessMetadataDefCollection'
,
'profileDBView'
));
this
.
entityModel
=
new
VEntity
();
this
.
searchCollection
=
new
VSearchList
();
this
.
limit
=
25
;
...
...
@@ -250,7 +250,7 @@ define(['require',
collection
:
this
.
searchCollection
,
includePagination
:
false
,
includeFooterRecords
:
false
,
includeColumnManager
:
(
Utils
.
getUrlState
.
isSearchTab
()
&&
this
.
value
&&
this
.
value
.
searchType
===
"basic"
&&
!
this
.
value
.
profileDBView
?
true
:
false
),
includeColumnManager
:
(
Utils
.
getUrlState
.
isSearchTab
()
&&
this
.
value
&&
this
.
value
.
searchType
===
"basic"
&&
!
this
.
profileDBView
?
true
:
false
),
includeOrderAbleColumns
:
false
,
includeSizeAbleColumns
:
false
,
includeTableLoader
:
false
,
...
...
@@ -486,7 +486,8 @@ define(['require',
if
(
dataLength
>
0
)
{
that
.
$
(
'.searchTable'
).
removeClass
(
'noData'
)
}
if
(
Utils
.
getUrlState
.
isSearchTab
()
&&
value
&&
!
value
.
profileDBView
)
{
if
(
Utils
.
getUrlState
.
isSearchTab
()
&&
value
&&
!
that
.
profileDBView
)
{
var
searchString
=
'Results for: <span class="filterQuery">'
+
CommonViewFunction
.
generateQueryOfFilter
(
that
.
value
)
+
"</span>"
;
if
(
Globals
.
entityCreate
&&
Globals
.
entityTypeConfList
&&
Utils
.
getUrlState
.
isSearchTab
())
{
searchString
+=
"<p>If you do not find the entity in search result below then you can"
+
'<a href="javascript:void(0)" data-id="createEntity"> create new entity</a></p>'
;
...
...
@@ -510,7 +511,7 @@ define(['require',
this
.
searchCollection
.
url
=
UrlLinks
.
searchApiUrl
(
value
.
searchType
);
}
_
.
extend
(
this
.
searchCollection
.
queryParams
,
{
'limit'
:
this
.
limit
,
'offset'
:
this
.
offset
,
'query'
:
_
.
trim
(
value
.
query
),
'typeName'
:
value
.
type
||
null
,
'classification'
:
value
.
tag
||
null
,
'termName'
:
value
.
term
||
null
});
if
(
value
.
profileDBView
&&
value
.
typeName
&&
value
.
guid
)
{
if
(
this
.
profileDBView
&&
value
.
typeName
&&
value
.
guid
)
{
var
profileParam
=
{};
profileParam
[
'guid'
]
=
value
.
guid
;
profileParam
[
'relation'
]
=
value
.
typeName
===
'hive_db'
?
'__hive_table.db'
:
'__hbase_table.namespace'
;
...
...
@@ -520,12 +521,12 @@ define(['require',
}
if
(
isPostMethod
)
{
this
.
searchCollection
.
filterObj
=
_
.
extend
({},
filterObj
);
apiObj
[
'data'
]
=
_
.
extend
(
checkBoxValue
,
filterObj
,
_
.
pick
(
this
.
searchCollection
.
queryParams
,
'query'
,
'excludeDeletedEntities'
,
'limit'
,
'offset'
,
'typeName'
,
'classification'
,
'termName'
))
apiObj
[
'data'
]
=
_
.
extend
(
checkBoxValue
,
filterObj
,
_
.
pick
(
this
.
searchCollection
.
queryParams
,
'query'
,
'excludeDeletedEntities'
,
'limit'
,
'offset'
,
'typeName'
,
'classification'
,
'termName'
))
;
Globals
.
searchApiCallRef
=
this
.
searchCollection
.
getBasicRearchResult
(
apiObj
);
}
else
{
apiObj
.
data
=
null
;
this
.
searchCollection
.
filterObj
=
null
;
if
(
this
.
value
.
profileDBView
)
{
if
(
this
.
profileDBView
)
{
_
.
extend
(
this
.
searchCollection
.
queryParams
,
checkBoxValue
);
}
Globals
.
searchApiCallRef
=
this
.
searchCollection
.
fetch
(
apiObj
);
...
...
@@ -537,7 +538,7 @@ define(['require',
Globals
.
searchApiCallRef
=
this
.
searchCollection
.
getBasicRearchResult
(
apiObj
);
}
else
{
apiObj
.
data
=
null
;
if
(
this
.
value
.
profileDBView
)
{
if
(
this
.
profileDBView
)
{
_
.
extend
(
this
.
searchCollection
.
queryParams
,
checkBoxValue
);
}
Globals
.
searchApiCallRef
=
this
.
searchCollection
.
fetch
(
apiObj
);
...
...
@@ -655,7 +656,7 @@ define(['require',
col
[
'name'
]
=
{
label
:
this
.
value
&&
this
.
value
.
profileDBView
?
"Table Name"
:
"Name"
,
label
:
this
.
value
&&
this
.
profileDBView
?
"Table Name"
:
"Name"
,
cell
:
"html"
,
editable
:
false
,
resizeable
:
true
,
...
...
@@ -734,7 +735,7 @@ define(['require',
}
})
};
if
(
this
.
value
&&
this
.
value
.
profileDBView
)
{
if
(
this
.
value
&&
this
.
profileDBView
)
{
col
[
'createTime'
]
=
{
label
:
"Date Created"
,
cell
:
"Html"
,
...
...
@@ -751,7 +752,7 @@ define(['require',
})
}
}
if
(
this
.
value
&&
!
this
.
value
.
profileDBView
)
{
if
(
this
.
value
&&
!
this
.
profileDBView
)
{
col
[
'description'
]
=
{
label
:
"Description"
,
cell
:
"String"
,
...
...
dashboardv3/public/js/views/entity/CreateEntityLayoutView.js
View file @
0c3d2ed3
...
...
@@ -778,7 +778,7 @@ define(['require',
success
:
function
(
model
,
response
)
{
that
.
modal
.
$el
.
find
(
'button.ok'
).
hideButtonLoader
();
that
.
modal
.
close
();
var
msgType
=
that
.
guid
?
"editSuccessMessage"
:
"addSuccessMessage"
;
var
msgType
=
(
model
.
mutatedEntities
&&
model
.
mutatedEntities
.
UPDATE
)
?
"editSuccessMessage"
:
"addSuccessMessage"
;
Utils
.
notifySuccess
({
content
:
"Entity"
+
Messages
.
getAbbreviationMsg
(
false
,
msgType
)
});
...
...
dashboardv3/public/js/views/entity/EntityBusinessMetaDataItemView.js
View file @
0c3d2ed3
...
...
@@ -115,7 +115,7 @@ define(['require',
if
(
!
that
.
model
.
has
(
"__internal_UI_businessMetadataName"
))
{
updateObj
[
"__internal_UI_businessMetadataName"
]
=
businessMetadata
;
}
if
(
typeName
.
indexOf
(
"date"
)
>
-
1
)
{
if
(
typeName
===
"date"
||
typeName
===
"array<date>"
)
{
if
(
multi
&&
updateObj
[
key
].
value
)
{
var
dateValues
=
updateObj
[
key
].
value
.
split
(
','
),
dateStr
=
[];
...
...
@@ -133,7 +133,7 @@ define(['require',
});
this
.
$el
.
on
(
'keypress'
,
'.select2_only_number .select2-search__field'
,
function
()
{
var
typename
=
$
(
this
).
parents
(
".select2_only_number"
).
find
(
"select[data-typename]"
).
data
(
"typename"
)
if
(
typename
.
indexOf
(
"float"
)
>
-
1
&&
event
.
which
==
46
)
{
if
(
(
typename
===
"float"
||
typename
===
"array<float>"
)
&&
event
.
which
==
46
)
{
return
;
}
if
((
event
.
which
<
48
||
event
.
which
>
57
))
{
...
...
@@ -159,10 +159,10 @@ define(['require',
if
(
!
isMultiValued
&&
!
_
.
isEmpty
(
val
))
{
val
=
_
.
escape
(
val
);
}
if
(
!
_
.
isUndefinedNull
(
val
)
&&
typeName
.
indexOf
(
"boolean"
)
>
-
1
)
{
if
(
!
_
.
isUndefinedNull
(
val
)
&&
(
typeName
===
"boolean"
||
typeName
===
"array<boolean>"
)
)
{
val
=
String
(
val
);
}
if
(
typeName
.
indexOf
(
"date"
)
>
-
1
)
{
if
(
typeName
===
"date"
||
typeName
===
"array<date>"
)
{
if
(
isMultiValued
&&
val
&&
val
.
length
)
{
var
dateStr
=
[];
_
.
each
(
val
,
function
(
selectedDate
)
{
...
...
@@ -175,11 +175,11 @@ define(['require',
val
=
moment
(
val
).
format
(
Globals
.
dateFormat
);
}
}
if
(
typeName
.
indexOf
(
"string"
)
>
-
1
)
{
if
(
typeName
===
"string"
||
typeName
===
"array<string>"
)
{
returnEL
=
'<'
+
elType
+
' type="text" data-key="'
+
key
+
'" data-businessMetadata="'
+
businessMetadata
+
'" data-typename="'
+
typeName
+
'" data-multi="'
+
isMultiValued
+
'" data-tags="true" placeholder="Enter String" class="form-control" '
+
(
isMultiValued
===
false
&&
!
_
.
isUndefinedNull
(
val
)
?
'value="'
+
val
+
'"'
:
""
)
+
'></'
+
elType
+
'>'
;
}
else
if
(
typeName
.
indexOf
(
"boolean"
)
>
-
1
)
{
}
else
if
(
typeName
===
"boolean"
||
typeName
===
"array<boolean>"
)
{
returnEL
=
'<select data-key="'
+
key
+
'" data-businessMetadata="'
+
businessMetadata
+
'" data-typename="'
+
typeName
+
'" data-multi="'
+
isMultiValued
+
'" class="form-control">'
+
(
isMultiValued
?
""
:
'<option value="">--Select Value--</option>'
)
+
'<option value="true" '
+
(
!
_
.
isUndefinedNull
(
val
)
&&
val
==
"true"
?
"selected"
:
""
)
+
'>true</option><option value="false" '
+
(
!
_
.
isUndefinedNull
(
val
)
&&
val
==
"false"
?
"selected"
:
""
)
+
'>false</option></select>'
;
}
else
if
(
typeName
.
indexOf
(
"date"
)
>
-
1
)
{
}
else
if
(
typeName
===
"date"
||
typeName
===
"array<date>"
)
{
returnEL
=
'<'
+
(
isMultiValued
?
"textarea"
:
"input"
)
+
' type="text" data-key="'
+
key
+
'" data-businessMetadata="'
+
businessMetadata
+
'" data-typename="'
+
typeName
+
'"data-multi="'
+
isMultiValued
+
'" data-type="date" class="form-control" '
+
(
isMultiValued
===
false
&&
!
_
.
isUndefinedNull
(
val
)
?
'value="'
+
val
+
'"'
:
""
)
+
'>'
+
(
isMultiValued
===
true
&&
!
_
.
isUndefinedNull
(
val
)
?
val
:
""
)
+
(
isMultiValued
?
"</textarea>"
:
""
);
setTimeout
(
function
()
{
var
dateObj
=
{
singleDatePicker
:
true
,
showDropdowns
:
true
,
autoUpdateInput
:
isMultiValued
?
false
:
true
},
...
...
@@ -195,7 +195,7 @@ define(['require',
});
}
},
0
);
}
else
if
(
typeName
.
indexOf
(
"byte"
)
>
-
1
||
typeName
.
indexOf
(
"short"
)
>
-
1
||
typeName
.
indexOf
(
"int"
)
>
-
1
||
typeName
.
indexOf
(
"float"
)
>
-
1
||
typeName
.
indexOf
(
"double"
)
>
-
1
||
typeName
.
indexOf
(
"long"
)
>
-
1
)
{
}
else
if
(
typeName
===
"byte"
||
typeName
===
"array<byte>"
||
typeName
===
"short"
||
typeName
===
"array<short>"
||
typeName
===
"int"
||
typeName
===
"array<int>"
||
typeName
===
"float"
||
typeName
===
"array<float>"
||
typeName
===
"double"
||
typeName
===
"array<double>"
||
typeName
===
"long"
||
typeName
===
"array<long>"
)
{
allowOnlyNum
=
true
;
returnEL
=
'<'
+
elType
+
' data-key="'
+
key
+
'" data-businessMetadata="'
+
businessMetadata
+
'" data-typename="'
+
typeName
+
'" type="number" data-multi="'
+
isMultiValued
+
'" data-tags="true" placeholder="Enter Number" class="form-control" '
+
(
!
_
.
isUndefinedNull
(
val
)
?
'value="'
+
val
+
'"'
:
""
)
+
'></'
+
elType
+
'>'
;
}
else
if
(
typeName
)
{
...
...
dashboardv3/public/js/views/profile/ProfileLayoutView.js
View file @
0c3d2ed3
...
...
@@ -80,11 +80,11 @@ define(['require',
var
value
=
_
.
extend
({},
that
.
value
,
{
'guid'
:
that
.
guid
,
'searchType'
:
'relationship'
,
'profileDBView'
:
true
,
'typeName'
:
that
.
typeName
});
that
.
RProfileTableOrColumnLayoutView
.
show
(
new
SearchResultLayoutView
({
'value'
:
value
,
'profileDBView'
:
true
,
'typeHeaders'
:
that
.
typeHeaders
,
'entityDefCollection'
:
that
.
entityDefCollection
,
'enumDefCollection'
:
that
.
enumDefCollection
,
...
...
dashboardv3/public/js/views/search/SearchResultLayoutView.js
View file @
0c3d2ed3
...
...
@@ -153,7 +153,7 @@ define(['require',
* @constructs
*/
initialize
:
function
(
options
)
{
_
.
extend
(
this
,
_
.
pick
(
options
,
'value'
,
'guid'
,
'initialView'
,
'isTypeTagNotExists'
,
'classificationDefCollection'
,
'entityDefCollection'
,
'typeHeaders'
,
'searchVent'
,
'enumDefCollection'
,
'tagCollection'
,
'searchTableColumns'
,
'isTableDropDisable'
,
'fromView'
,
'glossaryCollection'
,
'termName'
,
'businessMetadataDefCollection'
));
_
.
extend
(
this
,
_
.
pick
(
options
,
'value'
,
'guid'
,
'initialView'
,
'isTypeTagNotExists'
,
'classificationDefCollection'
,
'entityDefCollection'
,
'typeHeaders'
,
'searchVent'
,
'enumDefCollection'
,
'tagCollection'
,
'searchTableColumns'
,
'isTableDropDisable'
,
'fromView'
,
'glossaryCollection'
,
'termName'
,
'businessMetadataDefCollection'
,
'profileDBView'
));
this
.
entityModel
=
new
VEntity
();
this
.
searchCollection
=
new
VSearchList
();
this
.
limit
=
25
;
...
...
@@ -259,7 +259,7 @@ define(['require',
collection
:
this
.
searchCollection
,
includePagination
:
false
,
includeFooterRecords
:
false
,
includeColumnManager
:
(
Utils
.
getUrlState
.
isSearchTab
()
&&
this
.
value
&&
this
.
value
.
searchType
===
"basic"
&&
!
this
.
value
.
profileDBView
?
true
:
false
),
includeColumnManager
:
(
Utils
.
getUrlState
.
isSearchTab
()
&&
this
.
value
&&
this
.
value
.
searchType
===
"basic"
&&
!
this
.
profileDBView
?
true
:
false
),
includeOrderAbleColumns
:
false
,
includeSizeAbleColumns
:
false
,
includeTableLoader
:
false
,
...
...
@@ -496,7 +496,7 @@ define(['require',
that
.
$
(
'.searchTable'
).
removeClass
(
'noData'
)
}
if
(
Utils
.
getUrlState
.
isSearchTab
()
&&
value
&&
!
value
.
profileDBView
)
{
if
(
Utils
.
getUrlState
.
isSearchTab
()
&&
value
&&
!
that
.
profileDBView
)
{
// var searchString = 'Results for: <span class="filterQuery">' + CommonViewFunction.generateQueryOfFilter(that.value, true) + "</span>";
var
isCapsuleView
=
true
;
var
searchString
=
'<span class="filterQuery">'
+
CommonViewFunction
.
generateQueryOfFilter
(
that
.
value
,
isCapsuleView
)
+
"</span>"
;
...
...
@@ -522,7 +522,7 @@ define(['require',
this
.
searchCollection
.
url
=
UrlLinks
.
searchApiUrl
(
value
.
searchType
);
}
_
.
extend
(
this
.
searchCollection
.
queryParams
,
{
'limit'
:
this
.
limit
,
'offset'
:
this
.
offset
,
'query'
:
_
.
trim
(
value
.
query
),
'typeName'
:
value
.
type
||
null
,
'classification'
:
value
.
tag
||
null
,
'termName'
:
value
.
term
||
null
});
if
(
value
.
profileDBView
&&
value
.
typeName
&&
value
.
guid
)
{
if
(
this
.
profileDBView
&&
value
.
typeName
&&
value
.
guid
)
{
var
profileParam
=
{};
profileParam
[
'guid'
]
=
value
.
guid
;
profileParam
[
'relation'
]
=
value
.
typeName
===
'hive_db'
?
'__hive_table.db'
:
'__hbase_table.namespace'
;
...
...
@@ -532,12 +532,12 @@ define(['require',
}
if
(
isPostMethod
)
{
this
.
searchCollection
.
filterObj
=
_
.
extend
({},
filterObj
);
apiObj
[
'data'
]
=
_
.
extend
(
checkBoxValue
,
filterObj
,
_
.
pick
(
this
.
searchCollection
.
queryParams
,
'query'
,
'excludeDeletedEntities'
,
'limit'
,
'offset'
,
'typeName'
,
'classification'
,
'termName'
))
apiObj
[
'data'
]
=
_
.
extend
(
checkBoxValue
,
filterObj
,
_
.
pick
(
this
.
searchCollection
.
queryParams
,
'query'
,
'excludeDeletedEntities'
,
'limit'
,
'offset'
,
'typeName'
,
'classification'
,
'termName'
))
;
Globals
.
searchApiCallRef
=
this
.
searchCollection
.
getBasicRearchResult
(
apiObj
);
}
else
{
apiObj
.
data
=
null
;
this
.
searchCollection
.
filterObj
=
null
;
if
(
this
.
value
.
profileDBView
)
{
if
(
this
.
profileDBView
)
{
_
.
extend
(
this
.
searchCollection
.
queryParams
,
checkBoxValue
);
}
Globals
.
searchApiCallRef
=
this
.
searchCollection
.
fetch
(
apiObj
);
...
...
@@ -549,7 +549,7 @@ define(['require',
Globals
.
searchApiCallRef
=
this
.
searchCollection
.
getBasicRearchResult
(
apiObj
);
}
else
{
apiObj
.
data
=
null
;
if
(
this
.
value
.
profileDBView
)
{
if
(
this
.
profileDBView
)
{
_
.
extend
(
this
.
searchCollection
.
queryParams
,
checkBoxValue
);
}
Globals
.
searchApiCallRef
=
this
.
searchCollection
.
fetch
(
apiObj
);
...
...
@@ -668,7 +668,7 @@ define(['require',
col
[
'name'
]
=
{
label
:
this
.
value
&&
this
.
value
.
profileDBView
?
"Table Name"
:
"Name"
,
label
:
this
.
value
&&
this
.
profileDBView
?
"Table Name"
:
"Name"
,
cell
:
"html"
,
editable
:
false
,
resizeable
:
true
,
...
...
@@ -747,7 +747,7 @@ define(['require',
}
})
};
if
(
this
.
value
&&
this
.
value
.
profileDBView
)
{
if
(
this
.
value
&&
this
.
profileDBView
)
{
col
[
'createTime'
]
=
{
label
:
"Date Created"
,
cell
:
"Html"
,
...
...
@@ -764,7 +764,7 @@ define(['require',
})
}
}
if
(
this
.
value
&&
!
this
.
value
.
profileDBView
)
{
if
(
this
.
value
&&
!
this
.
profileDBView
)
{
col
[
'description'
]
=
{
label
:
"Description"
,
cell
:
"String"
,
...
...
dashboardv3/public/js/views/search/tree/EntityTreeLayoutView.js
View file @
0c3d2ed3
...
...
@@ -105,6 +105,7 @@ define([
that
.
metricCollection
.
fetch
({
complete
:
function
()
{
that
.
entityCountObj
=
_
.
first
(
that
.
metricCollection
.
toJSON
());
that
.
fromManualRender
=
true
;
that
.
ui
.
entitySearchTree
.
jstree
(
true
).
refresh
();
that
.
changeLoaderState
(
false
);
}
...
...
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