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
70f71570
Commit
70f71570
authored
May 27, 2016
by
Hemanth Yamijala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-821 Atlas UI - Add arrow to navigate to child term (kevalbhatt18 via yhemanth)
parent
705014eb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
134 additions
and
207 deletions
+134
-207
tree.scss
dashboardv2/public/css/scss/tree.scss
+11
-164
Router.js
dashboardv2/public/js/router/Router.js
+7
-8
BusinessCatalogHeader.js
...public/js/views/business_catalog/BusinessCatalogHeader.js
+1
-1
BusinessCatalogLayoutView.js
...ic/js/views/business_catalog/BusinessCatalogLayoutView.js
+84
-20
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+30
-14
release-log.txt
release-log.txt
+1
-0
No files found.
dashboardv2/public/css/scss/tree.scss
View file @
70f71570
/* tree.scss */
/* .fuelux {
margin-top: 10px;
.tree {
padding-left: 0;
position: relative;
list-style: none;
ul {
padding-left: 0;
margin-top: 0;
margin-bottom: 0;
list-style: none;
}
li {
margin: 0;
margin-top: 5px;
margin-bottom: 5px;
}
.tree-loader {
margin-left: 45px;
}
.tree-branch {
.tree-branch-header {
color: $white;
position: relative;
white-space: nowrap;
padding: 4px 0;
.tree-branch-name {
white-space: nowrap;
background-color: transparent;
border: 0;
&:hover {
color: $white;
}
}
.glyphicon-menu-right {
font-size: 10px;
padding-right: 5px;
padding-left: 7px;
&:before {
position: relative;
top: -2px;
}
}
label {
font-weight: normal;
padding-left: 3px;
margin-bottom: 0;
cursor: pointer;
}
}
.tree-branch-children {
margin-left: 25px;
}
}
.tree-item {
white-space: nowrap;
position: relative;
cursor: pointer;
padding: 4px 0;
.tree-item-name {
color: $white;
white-space: nowrap;
background-color: transparent;
border: 0;
&:hover {
color: $white;
}
}
&.tree-selected {
background-color: $color_keppel_approx;
&:before {
content: "";
position: absolute;
background-color: $color_keppel_approx;
height: 33px;
top: 0;
left: -100%;
right: -100%;
z-index: -1;
}
}
label {
font-weight: normal;
padding-left: 7px;
margin-bottom: 0;
cursor: pointer;
}
}
*:focus {
outline: none;
}
button:focus {
color: $white;
}
.tree-open > .tree-branch-header .glyphicon-menu-right {
//Instead of the line below you could use @include transform($scale, $rotate, $transx, $transy, $skewx, $skewy, $originx, $originy)
transform: rotate(90deg);
position: relative;
}
[data-children=false] > .tree-branch-header .icon-caret:before {
content: '\00a0';
}
.tree-branch[haschildren='false'] .icon-caret {
visibility: hidden;
}
.tree-branch[data-has-children='false'] .icon-caret {
visibility: hidden;
}
.icon-caret:hover + .tree-branch-name {
color: $white;
}
&.tree-folder-select .tree-branch {
.icon-folder {
visibility: hidden;
}
.icon-caret {
background-color: transparent;
border: 0;
&:hover {
cursor: pointer;
color: $white;
}
}
> .tree-branch-name {
padding: 1px 5px 0;
&.tree-selected {
background-color: $color_gallery_approx;
}
}
&.tree-selected > .tree-branch-header {
background-color: $color_keppel_approx;
&:before {
content: "";
position: absolute;
background-color: $color_keppel_approx;
height: 33px;
top: 0;
left: -100%;
right: -100%;
z-index: -1;
}
.tree-branch-name:hover {
background-color: $color_keppel_approx;
}
> .action-icons {
visibility: visible;
}
}
}
}
.action-icons {
visibility: hidden;
float: right;
a {
display: inline-block;
margin-left: 4px;
color: $white;
}
}
} */
.jstree-container-ul
{
padding-left
:
0px
;
...
...
@@ -216,7 +56,7 @@
width
:
91%
;
}
a
{
max-width
:
9
2
%
;
max-width
:
9
0
%
;
}
}
}
...
...
@@ -240,7 +80,7 @@
display
:
block
;
color
:
$concrete
;
white-space
:
nowrap
;
padding
:
5px
18
px
;
padding
:
5px
25
px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
cursor
:
pointer
;
...
...
@@ -249,8 +89,8 @@
background
:
$color_jungle_green_approx
;
display
:
none
;
position
:
absolute
;
right
:
3
px
;
padding
:
5px
10px
;
right
:
2
px
;
padding
:
5px
;
}
}
}
...
...
@@ -284,3 +124,10 @@
padding
:
5px
;
}
}
.toggleArrow
{
position
:
absolute
;
left
:
0px
;
padding
:
8px
;
cursor
:
pointer
;
}
dashboardv2/public/js/router/Router.js
View file @
70f71570
...
...
@@ -108,6 +108,7 @@ define([
'views/business_catalog/SideNavLayoutView'
,
'collection/VCatalogList'
],
function
(
BusinessCatalogHeader
,
BusinessCatalogDetailLayoutView
,
SideNavLayoutView
,
VCatalogList
)
{
var
paramObj
=
Utils
.
getUrlState
.
getQueryParams
();
this
.
collection
=
new
VCatalogList
();
this
.
collection
.
url
=
url
;
App
.
rNHeader
.
show
(
new
BusinessCatalogHeader
({
'globalVent'
:
that
.
globalVent
,
'url'
:
url
,
'collection'
:
this
.
collection
}));
...
...
@@ -117,15 +118,13 @@ define([
}
else
{
var
view
=
App
.
rSideNav
.
currentView
.
RBusinessCatalogLayoutView
.
currentView
;
if
(
view
.
dblClick
==
false
&&
view
.
singleClick
==
false
&&
!
Globals
.
saveApplicationState
.
tabState
.
stateChanged
)
{
App
.
rSideNav
.
currentView
.
RBusinessCatalogLayoutView
.
currentView
.
manualRender
(
url
,
true
);
if
(
paramObj
&&
paramObj
.
back
==
"true"
)
{
App
.
rSideNav
.
currentView
.
RBusinessCatalogLayoutView
.
currentView
.
manualRender
(
url
,
true
,
true
);
}
else
{
App
.
rSideNav
.
currentView
.
RBusinessCatalogLayoutView
.
currentView
.
manualRender
(
url
,
true
);
}
view
.
dblClick
==
false
;
}
/* else if (view.firstManualClick) {
view.firstManualClick = false;
App.rSideNav.currentView.RBusinessCatalogLayoutView.currentView.manualRender(url);
}*/
else
if
(
view
.
singleClick
)
{
}
else
if
(
view
.
singleClick
)
{
view
.
singleClick
=
false
;
}
App
.
rSideNav
.
currentView
.
selectTab
();
...
...
dashboardv2/public/js/views/business_catalog/BusinessCatalogHeader.js
View file @
70f71570
...
...
@@ -76,7 +76,7 @@ define(['require',
value
=
this
.
value
,
that
=
this
;
_
.
each
(
value
,
function
(
object
)
{
li
+=
'<li><a href="/#!/taxonomy/detailCatalog/api/atlas/v1/taxonomies/'
+
object
.
href
+
'">'
+
object
.
value
+
'</a></li>'
;
li
+=
'<li><a href="/#!/taxonomy/detailCatalog/api/atlas/v1/taxonomies/'
+
object
.
href
+
'
?back=true
">'
+
object
.
value
+
'</a></li>'
;
});
this
.
$
(
'.breadcrumb'
).
html
(
li
);
//this.$(".breadcrumb").asBreadcrumbs("destroy");
...
...
dashboardv2/public/js/views/business_catalog/BusinessCatalogLayoutView.js
View file @
70f71570
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
70f71570
...
...
@@ -124,7 +124,17 @@ define(['require',
obj
[
'toolTiplabel'
]
=
values
.
name
;
}
obj
[
'class'
]
=
"type-TOP"
;
that
.
g
.
setNode
(
data
.
GUID
,
obj
);
if
(
data
.
GUID
)
{
that
.
g
.
setNode
(
data
.
GUID
,
obj
);
}
else
{
if
(
data
&&
data
.
definition
)
{
if
(
_
.
isString
(
data
.
definition
.
id
))
{
that
.
g
.
setNode
(
data
.
definition
.
id
,
obj
);
}
else
if
(
_
.
isString
(
data
.
definition
.
id
.
id
))
{
that
.
g
.
setNode
(
data
.
definition
.
id
.
id
,
obj
);
}
}
}
--
that
.
fetchList
;
if
(
that
.
fetchList
<=
0
)
{
if
(
that
.
edgesAndvertices
)
{
...
...
@@ -169,7 +179,9 @@ define(['require',
obj
[
'class'
]
=
"type-TOP"
;
obj
[
'shape'
]
=
"img"
;
obj
[
'typeName'
]
=
vertices
[
val
].
values
.
vertexId
.
values
.
typeName
;
that
.
g
.
setNode
(
val
,
obj
);
if
(
val
&&
obj
)
{
that
.
g
.
setNode
(
val
,
obj
);
}
}
else
{
fetchLoadProcess
(
val
);
}
...
...
@@ -186,7 +198,6 @@ define(['require',
};
_
.
each
(
valuObj
.
edges
,
function
(
val
,
key
,
obj
)
{
_
.
each
(
val
,
function
(
val1
,
key1
,
obj1
)
{
var
chiledParent
=
{};
if
(
!
obj
[
val1
])
{
that
.
startingPoint
.
push
(
val1
);
}
...
...
@@ -215,18 +226,13 @@ define(['require',
}
},
createGraph
:
function
(
edgesAndvertices
,
startingPoint
)
{
var
that
=
this
;
this
.
g
.
nodes
().
forEach
(
function
(
v
)
{
var
node
=
that
.
g
.
node
(
v
);
// Round the corners of the nodes
node
.
rx
=
node
.
ry
=
5
;
});
// Set up edges, no special attributes.
// For input
var
lastVal
=
""
;
var
that
=
this
,
lastVal
=
""
;
_
.
each
(
startingPoint
,
function
(
val
,
key
,
obj
)
{
_
.
each
(
edgesAndvertices
.
edges
[
val
],
function
(
val1
)
{
that
.
g
.
setEdge
(
val
,
val1
);
if
(
val
&&
val1
)
{
that
.
g
.
setEdge
(
val
,
val1
);
}
createRemaningEdge
(
edgesAndvertices
.
edges
,
val1
);
});
});
...
...
@@ -234,11 +240,21 @@ define(['require',
function
createRemaningEdge
(
obj
,
starting
)
{
if
(
obj
[
starting
]
&&
obj
[
starting
].
length
)
{
_
.
each
(
obj
[
starting
],
function
(
val
,
key
)
{
that
.
g
.
setEdge
(
starting
,
val
);
if
(
starting
&&
val
)
{
that
.
g
.
setEdge
(
starting
,
val
);
}
createRemaningEdge
(
obj
,
val
);
});
}
}
this
.
g
.
nodes
().
forEach
(
function
(
v
)
{
var
node
=
that
.
g
.
node
(
v
);
// Round the corners of the nodes
if
(
node
)
{
node
.
rx
=
node
.
ry
=
5
;
}
});
if
(
this
.
outputState
)
{
// Create the renderer
var
render
=
new
dagreD3
.
render
();
...
...
release-log.txt
View file @
70f71570
...
...
@@ -22,6 +22,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset
ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags)
ALL CHANGES:
ATLAS-821 Atlas UI - Add arrow to navigate to child term (kevalbhatt18 via yhemanth)
ATLAS-812 Atlas UI - Associate Terms with Assets (kevalbhatt18 via yhemanth)
ATLAS-809 JAAS configuration needed for Kafka interaction via Atlas config file (abhayk via shwethags)
ATLAS-817 Asset details page -- generate schema dynamically based on attributeDefinitions (kevalbhatt18 via yhemanth)
...
...
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