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
e050bc06
Commit
e050bc06
authored
6 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3174 : UI : Exclude process or deleted entity from search drop-down if…
ATLAS-3174 : UI : Exclude process or deleted entity from search drop-down if respective options are chosen
parent
eaee02fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
24 deletions
+31
-24
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+31
-24
No files found.
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
e050bc06
...
...
@@ -219,9 +219,6 @@ define(['require',
that
.
lineageData
=
$
.
extend
(
true
,
{},
data
);
that
.
relationshipMap
=
that
.
crateLineageRelationshipHashMap
(
data
);
that
.
guidEntityMap
=
$
.
extend
(
true
,
{},
data
.
guidEntityMap
);
if
(
that
.
lineageData
)
{
that
.
renderLineageTypeSearch
();
}
that
.
generateData
({
"relationshipMap"
:
that
.
relationshipMap
,
"guidEntityMap"
:
that
.
guidEntityMap
});
that
.
toggleDisableState
({
"el"
:
that
.
$
(
".graph-button-group button,select[data-id='selectDepth']"
)
...
...
@@ -442,6 +439,7 @@ define(['require',
this
.
fromToNodeData
[
this
.
guid
][
'isLineage'
]
=
false
;
this
.
findImpactNodeAndUpdateData
({
"relationshipMap"
:
filterRelationshipMap
,
"guid"
:
this
.
guid
,
"getStyleObjStr"
:
getStyleObjStr
});
}
this
.
renderLineageTypeSearch
();
this
.
createGraph
();
},
findImpactNodeAndUpdateData
:
function
(
options
)
{
...
...
@@ -759,17 +757,19 @@ define(['require',
});
svgGroup
.
selectAll
(
"g.edgePath path.path"
).
on
(
'click'
,
function
(
d
)
{
var
data
=
{
obj
:
_
.
find
(
that
.
lineageData
.
relations
,
{
"fromEntityId"
:
d
.
v
,
"toEntityId"
:
d
.
w
})
},
relationshipId
=
data
.
obj
.
relationshipId
;
require
([
'views/graph/PropagationPropertyModal'
],
function
(
PropagationPropertyModal
)
{
var
view
=
new
PropagationPropertyModal
({
edgeInfo
:
data
,
relationshipId
:
relationshipId
,
lineageData
:
that
.
lineageData
,
apiGuid
:
that
.
apiGuid
,
detailPageFetchCollection
:
that
.
fetchCollection
var
data
=
{
obj
:
_
.
find
(
that
.
lineageData
.
relations
,
{
"fromEntityId"
:
d
.
v
,
"toEntityId"
:
d
.
w
})
};
if
(
data
.
obj
)
{
var
relationshipId
=
data
.
obj
.
relationshipId
;
require
([
'views/graph/PropagationPropertyModal'
],
function
(
PropagationPropertyModal
)
{
var
view
=
new
PropagationPropertyModal
({
edgeInfo
:
data
,
relationshipId
:
relationshipId
,
lineageData
:
that
.
lineageData
,
apiGuid
:
that
.
apiGuid
,
detailPageFetchCollection
:
that
.
fetchCollection
});
});
}
);
}
})
$
(
'body'
).
on
(
'mouseover'
,
'.d3-tip'
,
function
(
el
)
{
that
.
activeTip
=
true
;
...
...
@@ -818,18 +818,23 @@ define(['require',
}).
init
();
},
renderLineageTypeSearch
:
function
()
{
var
that
=
this
;
var
lineageData
=
$
.
extend
(
true
,
{},
this
.
lineageData
);
var
data
=
[];
var
typeStr
=
'<option></option>'
;
var
that
=
this
,
lineageData
=
$
.
extend
(
true
,
{},
this
.
lineageData
),
data
=
[],
typeStr
=
'<option></option>'
;
if
(
!
_
.
isEmpty
(
lineageData
))
{
_
.
each
(
lineageData
.
guidEntityMap
,
function
(
obj
,
index
)
{
var
nodeData
=
that
.
fromToNodeData
[
obj
.
guid
];
if
(
that
.
filterObj
.
isProcessHideCheck
&&
nodeData
&&
nodeData
.
isProcess
)
{
return
;
}
else
if
(
that
.
filterObj
.
isDeletedEntityHideCheck
&&
nodeData
&&
nodeData
.
isDeleted
)
{
return
}
typeStr
+=
'<option value="'
+
obj
.
guid
+
'">'
+
obj
.
attributes
.
name
+
'</option>'
;
});
}
that
.
ui
.
lineageTypeSearch
.
html
(
typeStr
);
this
.
initilizelineageTypeSearch
()
this
.
initilizelineageTypeSearch
()
;
},
initilizelineageTypeSearch
:
function
()
{
var
that
=
this
;
...
...
@@ -939,9 +944,10 @@ define(['require',
scaleFactor
=
1
,
svgWidth
=
that
.
$
(
'svg'
).
width
(),
svgHeight
=
that
.
$
(
'svg'
).
height
();
svgClone
.
setAttribute
(
'width'
,
svgWidth
);
svgClone
.
setAttribute
(
'height'
,
svgHeight
);
if
(
platform
.
name
!=
"Chrome"
)
{
svgClone
.
setAttribute
(
'width'
,
svgWidth
);
svgClone
.
setAttribute
(
'height'
,
svgHeight
);
}
$
(
'.hidden-svg'
).
html
(
svgClone
);
$
(
svgClone
).
find
(
'>g'
).
attr
(
"transform"
,
"scale("
+
scaleFactor
+
")"
);
var
canvasOffset
=
{
x
:
150
,
y
:
150
},
...
...
@@ -975,8 +981,9 @@ define(['require',
img
.
onload
=
function
()
{
try
{
var
a
=
document
.
createElement
(
"a"
);
a
.
download
=
that
.
entityName
+
".png"
;
var
a
=
document
.
createElement
(
"a"
),
entityAttributes
=
that
.
entity
&&
that
.
entity
.
attributes
;
a
.
download
=
((
entityAttributes
&&
entityAttributes
.
qualifiedName
)
||
"lineage_export"
)
+
".png"
;
document
.
body
.
appendChild
(
a
);
ctx
.
drawImage
(
img
,
50
,
50
,
canvas
.
width
,
canvas
.
height
);
canvas
.
toBlob
(
function
(
blob
)
{
...
...
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