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
efb6a365
Commit
efb6a365
authored
6 years ago
by
Sarath Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3062: UI : Add relationship table inside relationships tab #2 fix date format
parent
be84c4d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
6 deletions
+50
-6
graph.scss
dashboardv2/public/css/scss/graph.scss
+9
-0
CommonViewFunction.js
dashboardv2/public/js/utils/CommonViewFunction.js
+7
-1
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+34
-5
No files found.
dashboardv2/public/css/scss/graph.scss
View file @
efb6a365
...
...
@@ -411,4 +411,12 @@ span#zoom_in {
g
.edgePath.hover-active-node
{
opacity
:
1
!
important
;
}
}
.lineage-node-detail
{
.table-quickMenu
{
td
{
word-break
:
break-all
;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
efb6a365
...
...
@@ -73,6 +73,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Glob
};
CommonViewFunction
.
propertyTable
=
function
(
options
)
{
var
scope
=
options
.
scope
,
sortBy
=
options
.
sortBy
,
valueObject
=
options
.
valueObject
,
extractJSON
=
options
.
extractJSON
,
isTable
=
_
.
isUndefined
(
options
.
isTable
)
?
true
:
options
.
isTable
,
...
...
@@ -215,7 +216,12 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Glob
}
return
subLink
;
}
_
.
sortBy
(
_
.
keys
(
valueObject
)).
map
(
function
(
key
)
{
var
valueObjectKeysList
=
_
.
keys
(
valueObject
);
if
(
_
.
isUndefined
(
sortBy
)
||
sortBy
==
true
)
{
valueObjectKeysList
=
_
.
sortBy
(
valueObjectKeysList
);
}
valueObjectKeysList
.
map
(
function
(
key
)
{
key
=
_
.
escape
(
key
);
if
(
key
==
"profileData"
)
{
return
;
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
efb6a365
...
...
@@ -271,12 +271,13 @@ define(['require',
},
getNestedSuperTypes
:
function
(
options
)
{
var
entityDef
=
options
.
entityDef
;
return
Utils
.
getNestedSuperTypes
({
data
:
entityDef
.
toJSON
()
,
collection
:
this
.
entityDefCollection
})
return
Utils
.
getNestedSuperTypes
({
data
:
entityDef
,
collection
:
this
.
entityDefCollection
})
},
getEntityDef
:
function
(
typeName
)
{
var
entityDef
=
null
;
if
(
typeName
)
{
entityDef
=
this
.
entityDefCollection
.
fullCollection
.
find
({
name
:
typeName
});
entityDef
=
entityDef
?
entityDef
.
toJSON
()
:
entityDef
;
}
return
entityDef
;
},
...
...
@@ -289,7 +290,7 @@ define(['require',
serviceType
=
null
;
if
(
typeName
)
{
if
(
entityDef
)
{
serviceType
=
entityDef
.
get
(
"serviceType"
)
||
null
;
serviceType
=
entityDef
.
serviceType
||
null
;
}
}
return
serviceType
;
...
...
@@ -836,11 +837,39 @@ define(['require',
},
updateRelationshipDetails
:
function
(
options
)
{
var
that
=
this
,
data
=
that
.
guidEntityMap
[
options
.
guid
],
typeName
=
data
.
typeName
||
options
.
guid
;
guid
=
options
.
guid
,
initialData
=
that
.
guidEntityMap
[
guid
],
typeName
=
initialData
.
typeName
||
guid
,
attributeDefs
=
that
.
g
.
_nodes
[
guid
]
&&
that
.
g
.
_nodes
[
guid
].
entityDef
?
that
.
g
.
_nodes
[
guid
].
entityDef
.
attributeDefs
:
null
;
this
.
$
(
"[data-id='typeName']"
).
text
(
typeName
);
this
.
entityModel
=
new
VEntity
({});
this
.
ui
.
nodeDetailTable
.
html
(
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
data
,
attributeDefs
:
that
.
attributeDefs
}));
var
config
=
{
guid
:
'guid'
,
typeName
:
'typeName'
,
name
:
'name'
,
qualifiedName
:
'qualifiedName'
,
owner
:
'owner'
,
createTime
:
'createTime'
,
status
:
'status'
,
classificationNames
:
'classifications'
,
meanings
:
'term'
};
var
data
=
{};
_
.
each
(
config
,
function
(
valKey
,
key
)
{
var
val
=
initialData
[
key
];
if
(
_
.
isUndefined
(
val
)
&&
initialData
.
attributes
[
key
])
{
val
=
initialData
.
attributes
[
key
];
}
if
(
val
)
{
data
[
valKey
]
=
val
;
}
});
this
.
ui
.
nodeDetailTable
.
html
(
CommonViewFunction
.
propertyTable
({
"scope"
:
this
,
"valueObject"
:
data
,
"attributeDefs"
:
attributeDefs
,
"sortBy"
:
false
}));
}
});
return
LineageLayoutView
;
...
...
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