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
4d6169f5
Commit
4d6169f5
authored
Apr 24, 2019
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3159 : UI : Add Reset button for Lienage
parent
1c620155
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
8 deletions
+28
-8
LineageLayoutView_tmpl.html
...dv2/public/js/templates/graph/LineageLayoutView_tmpl.html
+9
-4
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+19
-4
No files found.
dashboardv2/public/js/templates/graph/LineageLayoutView_tmpl.html
View file @
4d6169f5
...
@@ -90,7 +90,12 @@
...
@@ -90,7 +90,12 @@
</div>
</div>
<div
class=
"graph-button-group pull-right"
>
<div
class=
"graph-button-group pull-right"
>
<div>
<div>
<button
data-id=
"saveSvg"
class=
"disabled btn btn-action btn-gray btn-sm"
title=
"Export to PNG"
>
<button
data-id=
"resetLineage"
class=
"btn btn-action btn-gray btn-sm"
title=
"Realign Lineage"
>
<i
class=
"fa fa-retweet"
></i>
</button>
</div>
<div>
<button
data-id=
"saveSvg"
class=
"btn btn-action btn-gray btn-sm"
title=
"Export to PNG"
>
<i
class=
"fa fa-camera"
></i>
<i
class=
"fa fa-camera"
></i>
</button>
</button>
</div>
</div>
...
@@ -133,9 +138,9 @@
...
@@ -133,9 +138,9 @@
<i
class=
"fa fa-refresh fa-spin-custom"
></i>
<i
class=
"fa fa-refresh fa-spin-custom"
></i>
</div>
</div>
<div
class=
"legends pull-left"
style=
"height: 25px; padding: 2px;"
>
<div
class=
"legends pull-left"
style=
"height: 25px; padding: 2px;"
>
<span
style=
"margin-right: 8px; color:#fb4200;"
><i
class=
"fa fa-circle-o fa-fw"
aria-hidden=
"true"
></i>
Current Entity
</span>
<span
style=
"margin-right: 8px; color:#fb4200;"
><i
class=
"fa fa-circle-o fa-fw"
></i>
Current Entity
</span>
<span
style=
"margin-right: 8px; color:#df9b00;"
><i
class=
"fa fa-long-arrow-right fa-fw"
aria-hidden=
"true"
></i>
Lineage
</span>
<span
style=
"margin-right: 8px; color:#df9b00;"
><i
class=
"fa fa-long-arrow-right fa-fw"
></i>
Lineage
</span>
<span
style=
"margin-right: 8px; color:#fb4200;"
><i
class=
"fa fa-long-arrow-right fa-fw"
aria-hidden=
"true"
></i>
Impact
</span>
<span
style=
"margin-right: 8px; color:#fb4200;"
><i
class=
"fa fa-long-arrow-right fa-fw"
></i>
Impact
</span>
</div>
</div>
<svg
width=
"{{width}}"
height=
"{{height}}"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
version=
"1.1"
></svg>
<svg
width=
"{{width}}"
height=
"{{height}}"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
version=
"1.1"
></svg>
</div>
</div>
...
...
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
4d6169f5
...
@@ -65,6 +65,7 @@ define(['require',
...
@@ -65,6 +65,7 @@ define(['require',
showOnlyHoverPath
:
'[data-id="showOnlyHoverPath"]'
,
showOnlyHoverPath
:
'[data-id="showOnlyHoverPath"]'
,
showTooltip
:
'[data-id="showTooltip"]'
,
showTooltip
:
'[data-id="showTooltip"]'
,
saveSvg
:
'[data-id="saveSvg"]'
,
saveSvg
:
'[data-id="saveSvg"]'
,
resetLineage
:
'[data-id="resetLineage"]'
},
},
templateHelpers
:
function
()
{
templateHelpers
:
function
()
{
return
{
return
{
...
@@ -84,6 +85,7 @@ define(['require',
...
@@ -84,6 +85,7 @@ define(['require',
events
[
"click "
+
this
.
ui
.
lineageFullscreenToggler
]
=
'onClickLineageFullscreenToggler'
;
events
[
"click "
+
this
.
ui
.
lineageFullscreenToggler
]
=
'onClickLineageFullscreenToggler'
;
events
[
"click "
+
this
.
ui
.
searchToggler
]
=
'onClickSearchToggler'
;
events
[
"click "
+
this
.
ui
.
searchToggler
]
=
'onClickSearchToggler'
;
events
[
"click "
+
this
.
ui
.
saveSvg
]
=
'onClickSaveSvg'
;
events
[
"click "
+
this
.
ui
.
saveSvg
]
=
'onClickSaveSvg'
;
events
[
"click "
+
this
.
ui
.
resetLineage
]
=
'onClickResetLineage'
;
return
events
;
return
events
;
},
},
...
@@ -97,7 +99,6 @@ define(['require',
...
@@ -97,7 +99,6 @@ define(['require',
this
.
lineageData
=
null
;
this
.
lineageData
=
null
;
this
.
typeMap
=
{};
this
.
typeMap
=
{};
this
.
apiGuid
=
{};
this
.
apiGuid
=
{};
this
.
asyncFetchCounter
=
0
;
this
.
edgeCall
;
this
.
edgeCall
;
this
.
filterObj
=
{
this
.
filterObj
=
{
isProcessHideCheck
:
false
,
isProcessHideCheck
:
false
,
...
@@ -207,6 +208,9 @@ define(['require',
...
@@ -207,6 +208,9 @@ define(['require',
this
.
fromToNodeData
=
{};
this
.
fromToNodeData
=
{};
this
.
$
(
'.fontLoader'
).
show
();
this
.
$
(
'.fontLoader'
).
show
();
this
.
$
(
'svg>g'
).
hide
();
this
.
$
(
'svg>g'
).
hide
();
this
.
toggleDisableState
({
"el"
:
that
.
$
(
".graph-button-group button,select[data-id='selectDepth']"
)
});
this
.
collection
.
getLineage
(
this
.
guid
,
{
this
.
collection
.
getLineage
(
this
.
guid
,
{
skipDefaultError
:
true
,
skipDefaultError
:
true
,
queryParam
:
queryParam
,
queryParam
:
queryParam
,
...
@@ -219,9 +223,13 @@ define(['require',
...
@@ -219,9 +223,13 @@ define(['require',
that
.
renderLineageTypeSearch
();
that
.
renderLineageTypeSearch
();
}
}
that
.
generateData
({
"relationshipMap"
:
that
.
relationshipMap
,
"guidEntityMap"
:
that
.
guidEntityMap
});
that
.
generateData
({
"relationshipMap"
:
that
.
relationshipMap
,
"guidEntityMap"
:
that
.
guidEntityMap
});
that
.
toggleDisableState
({
"el"
:
that
.
$
(
".graph-button-group button,select[data-id='selectDepth']"
)
});
}
else
{
}
else
{
that
.
noLineage
();
that
.
noLineage
();
that
.
hideCheckForProcess
();
that
.
hideCheckForProcess
();
}
}
},
},
cust_error
:
function
(
model
,
response
)
{
cust_error
:
function
(
model
,
response
)
{
...
@@ -434,9 +442,7 @@ define(['require',
...
@@ -434,9 +442,7 @@ define(['require',
this
.
fromToNodeData
[
this
.
guid
][
'isLineage'
]
=
false
;
this
.
fromToNodeData
[
this
.
guid
][
'isLineage'
]
=
false
;
this
.
findImpactNodeAndUpdateData
({
"relationshipMap"
:
filterRelationshipMap
,
"guid"
:
this
.
guid
,
"getStyleObjStr"
:
getStyleObjStr
});
this
.
findImpactNodeAndUpdateData
({
"relationshipMap"
:
filterRelationshipMap
,
"guid"
:
this
.
guid
,
"getStyleObjStr"
:
getStyleObjStr
});
}
}
if
(
this
.
asyncFetchCounter
==
0
)
{
this
.
createGraph
();
this
.
createGraph
();
}
},
},
findImpactNodeAndUpdateData
:
function
(
options
)
{
findImpactNodeAndUpdateData
:
function
(
options
)
{
var
that
=
this
,
var
that
=
this
,
...
@@ -807,7 +813,6 @@ define(['require',
...
@@ -807,7 +813,6 @@ define(['require',
g
:
this
.
g
,
g
:
this
.
g
,
guid
:
this
.
guid
guid
:
this
.
guid
}).
init
();
}).
init
();
this
.
$el
.
find
(
'[data-id="saveSvg"]'
).
removeClass
(
'disabled'
)
},
},
renderLineageTypeSearch
:
function
()
{
renderLineageTypeSearch
:
function
()
{
var
that
=
this
;
var
that
=
this
;
...
@@ -1008,6 +1013,15 @@ define(['require',
...
@@ -1008,6 +1013,15 @@ define(['require',
(
element
).
removeClass
(
"fa-spin-custom fa-refresh"
).
addClass
(
'fa-camera'
);
(
element
).
removeClass
(
"fa-spin-custom fa-refresh"
).
addClass
(
'fa-camera'
);
}
}
},
},
onClickResetLineage
:
function
()
{
this
.
createGraph
()
},
toggleDisableState
:
function
(
options
)
{
var
el
=
options
.
el
;
if
(
el
&&
el
.
prop
)
{
el
.
prop
(
"disabled"
,
!
el
.
prop
(
"disabled"
));
}
}
});
});
return
LineageLayoutView
;
return
LineageLayoutView
;
});
});
\ No newline at end of file
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