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
b5ce624f
Commit
b5ce624f
authored
Dec 15, 2020
by
prasad pawar
Committed by
nixonrodrigues
Dec 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Atlas-4078 :- UI - Lineage tab not shown on UI for entity with type Dataset or Process
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
ab92cf1e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
DetailPageLayoutView.js
...ardv2/public/js/views/detail_page/DetailPageLayoutView.js
+4
-0
DetailPageLayoutView.js
...ardv3/public/js/views/detail_page/DetailPageLayoutView.js
+5
-1
No files found.
dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
View file @
b5ce624f
...
...
@@ -167,6 +167,7 @@ define(['require',
// check if entity is process
var
isProcess
=
false
,
typeName
=
Utils
.
getName
(
collectionJSON
,
'typeName'
),
superTypes
=
Utils
.
getNestedSuperTypes
({
data
:
this
.
activeEntityDef
.
toJSON
(),
collection
:
this
.
entityDefCollection
}),
isLineageRender
=
_
.
find
(
superTypes
,
function
(
type
)
{
if
(
type
===
"DataSet"
||
type
===
"Process"
)
{
...
...
@@ -176,6 +177,9 @@ define(['require',
return
true
;
}
});
if
(
!
isLineageRender
)
{
isLineageRender
=
(
typeName
===
"DataSet"
||
typeName
===
"Process"
)
?
true
:
null
;
}
if
(
collectionJSON
&&
collectionJSON
.
guid
)
{
var
tagGuid
=
collectionJSON
.
guid
;
...
...
dashboardv3/public/js/views/detail_page/DetailPageLayoutView.js
View file @
b5ce624f
...
...
@@ -171,6 +171,7 @@ define(['require',
// check if entity is process
var
isProcess
=
false
,
typeName
=
Utils
.
getName
(
collectionJSON
,
'typeName'
),
superTypes
=
Utils
.
getNestedSuperTypes
({
data
:
this
.
activeEntityDef
.
toJSON
(),
collection
:
this
.
entityDefCollection
}),
isLineageRender
=
_
.
find
(
superTypes
,
function
(
type
)
{
if
(
type
===
"DataSet"
||
type
===
"Process"
)
{
...
...
@@ -180,7 +181,9 @@ define(['require',
return
true
;
}
});
if
(
!
isLineageRender
)
{
isLineageRender
=
(
typeName
===
"DataSet"
||
typeName
===
"Process"
)
?
true
:
null
;
}
if
(
collectionJSON
&&
collectionJSON
.
guid
)
{
var
tagGuid
=
collectionJSON
.
guid
;
this
.
readOnly
=
Enums
.
entityStateReadOnly
[
collectionJSON
.
status
];
...
...
@@ -194,6 +197,7 @@ define(['require',
}
if
(
collectionJSON
)
{
this
.
name
=
Utils
.
getName
(
collectionJSON
);
if
(
collectionJSON
.
attributes
)
{
if
(
collectionJSON
.
typeName
)
{
collectionJSON
.
attributes
.
typeName
=
_
.
escape
(
collectionJSON
.
typeName
);
...
...
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