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
6677c80d
Commit
6677c80d
authored
5 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3365.patch : Expose image names on lineage page
parent
fdbc36e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+7
-11
No files found.
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
6677c80d
...
...
@@ -571,13 +571,7 @@ define(['require',
.
attr
(
"href"
,
function
(
d
)
{
var
that
=
this
;
if
(
node
)
{
// to check for IE-10
var
originLink
=
window
.
location
.
origin
;
if
(
platform
.
name
===
"IE"
)
{
originLink
=
window
.
location
.
protocol
+
"//"
+
window
.
location
.
host
;
}
var
imageIconPath
=
Utils
.
getEntityIconPath
({
entityData
:
node
}),
imagePath
=
((
originLink
+
Utils
.
getBaseUrl
(
window
.
location
.
pathname
))
+
imageIconPath
);
var
imageIconPath
=
Utils
.
getEntityIconPath
({
entityData
:
node
});
var
getImageData
=
function
(
options
)
{
var
imagePath
=
options
.
imagePath
,
...
...
@@ -590,12 +584,12 @@ define(['require',
if
(
platform
.
name
!==
"IE"
)
{
ajaxOptions
[
"mimeType"
]
=
"text/plain; charset=x-user-defined"
;
}
shapeSvg
.
attr
(
"data-iconpath"
,
imagePath
);
$
.
ajax
(
ajaxOptions
)
.
always
(
function
(
data
,
status
,
xhr
)
{
if
(
data
.
status
==
404
)
{
getImageData
({
"imagePath"
:
Utils
.
getEntityIconPath
({
entityData
:
node
,
errorUrl
:
imagePath
}),
"imageIconPath"
:
imageIconPath
"imagePath"
:
Utils
.
getEntityIconPath
({
entityData
:
node
,
errorUrl
:
imagePath
})
});
}
else
if
(
data
)
{
if
(
platform
.
name
!==
"IE"
)
{
...
...
@@ -608,8 +602,7 @@ define(['require',
}
if
(
_
.
keys
(
imageObject
).
indexOf
(
imageIconPath
)
===
-
1
)
{
getImageData
({
"imagePath"
:
imagePath
,
"imageIconPath"
:
imageIconPath
"imagePath"
:
imageIconPath
});
}
...
...
@@ -621,6 +614,9 @@ define(['require',
imageObject
[
imageIconPath
].
push
(
d3
.
select
(
that
));
}
else
{
d3
.
select
(
that
).
attr
(
"xlink:href"
,
imageObject
[
imageIconPath
]);
if
(
imageIconPath
!==
shapeSvg
.
attr
(
"data-iconpath"
))
{
shapeSvg
.
attr
(
"data-iconpathorigin"
,
imageIconPath
);
}
return
imageObject
[
imageIconPath
];
}
}
...
...
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