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
414b7bbc
Commit
414b7bbc
authored
Feb 10, 2017
by
kevalbhatt
Committed by
Madhan Neethiraj
Feb 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1549: Remove unwanted API call for Lineage
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
938af9ee
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
35 deletions
+20
-35
gruntfile.js
dashboardv2/gruntfile.js
+1
-0
DetailPageLayoutView_tmpl.html
...c/js/templates/detail_page/DetailPageLayoutView_tmpl.html
+5
-1
DetailPageLayoutView.js
...ardv2/public/js/views/detail_page/DetailPageLayoutView.js
+5
-5
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+5
-29
SchemaLayoutView.js
dashboardv2/public/js/views/schema/SchemaLayoutView.js
+4
-0
No files found.
dashboardv2/gruntfile.js
View file @
414b7bbc
...
...
@@ -139,6 +139,7 @@ module.exports = function(grunt) {
},
files
:
{
'bootstrap/css'
:
'bootstrap/dist/css/bootstrap.min.css'
,
'bootstrap/fonts'
:
'bootstrap/fonts/glyphicons-halflings-regular.woff2'
,
'backgrid/css'
:
'backgrid/lib/backgrid.css'
,
'backgrid-filter/css'
:
'backgrid-filter/backgrid-filter.min.css'
,
'backgrid-orderable-columns/css'
:
'backgrid-orderable-columns/backgrid-orderable-columns.css'
,
...
...
dashboardv2/public/js/templates/detail_page/DetailPageLayoutView_tmpl.html
View file @
414b7bbc
...
...
@@ -49,7 +49,11 @@
<div
class=
"atlast-tabbable"
>
<h4
class=
"lineageLabel"
>
LINEAGE
</h4>
<div
class=
"panel panel-default lineageLayout"
>
<div
id=
"r_lineageLayoutView"
></div>
<div
id=
"r_lineageLayoutView"
style=
"height:385px"
>
<div
class=
"fontLoader"
>
<i
class=
"fa fa-refresh fa-spin-custom"
></i>
</div>
</div>
</div>
</div>
</div>
...
...
dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
View file @
414b7bbc
...
...
@@ -108,8 +108,8 @@ define(['require',
bindEvents
:
function
()
{
var
that
=
this
;
this
.
listenTo
(
this
.
collection
,
'reset'
,
function
()
{
var
entityObject
=
this
.
collection
.
first
().
toJSON
();
var
collectionJSON
=
entityObject
.
entity
;
this
.
entityObject
=
this
.
collection
.
first
().
toJSON
();
var
collectionJSON
=
this
.
entityObject
.
entity
;
if
(
collectionJSON
&&
collectionJSON
.
guid
)
{
var
tagGuid
=
collectionJSON
.
guid
;
this
.
readOnly
=
Enums
.
entityStateReadOnly
[
collectionJSON
.
status
];
...
...
@@ -164,7 +164,7 @@ define(['require',
this
.
hideLoader
();
var
obj
=
{
entity
:
collectionJSON
,
referredEntities
:
entityObject
.
referredEntities
,
referredEntities
:
this
.
entityObject
.
referredEntities
,
guid
:
this
.
id
,
entityName
:
this
.
name
,
entityDefCollection
:
this
.
entityDefCollection
,
...
...
@@ -174,7 +174,6 @@ define(['require',
this
.
renderAuditTableLayoutView
(
obj
);
this
.
renderTagTableLayoutView
(
obj
);
this
.
renderTermTableLayoutView
(
_
.
extend
({},
obj
,
{
term
:
true
}));
this
.
renderLineageLayoutView
(
obj
);
// To render Schema check attribute "schemaElementsAttribute"
var
schemaOptions
=
this
.
entityDefCollection
.
fullCollection
.
find
({
name
:
collectionJSON
.
typeName
}).
get
(
'options'
);
if
(
schemaOptions
&&
schemaOptions
.
hasOwnProperty
(
'schemaElementsAttribute'
)
&&
schemaOptions
.
schemaElementsAttribute
!==
""
)
{
...
...
@@ -197,6 +196,7 @@ define(['require',
var
that
=
this
;
Utils
.
showTitleLoader
(
this
.
$
(
'.page-title .fontLoader'
),
this
.
$
(
'.entityDetail'
));
this
.
$
(
'.fontLoader'
).
show
();
// to show tab loader
this
.
renderLineageLayoutView
({
guid
:
this
.
id
,
entityDefCollection
:
this
.
entityDefCollection
});
},
fetchCollection
:
function
()
{
this
.
collection
.
fetch
({
reset
:
true
});
...
...
@@ -270,7 +270,7 @@ define(['require',
require
([
'views/tag/addTagModalView'
],
function
(
AddTagModalView
)
{
var
view
=
new
AddTagModalView
({
guid
:
that
.
id
,
tagList
:
_
.
map
(
that
.
collection
.
first
().
toJSON
()
.
classifications
,
function
(
obj
)
{
tagList
:
_
.
map
(
that
.
entityObject
.
entity
.
classifications
,
function
(
obj
)
{
return
obj
.
typeName
;
}),
callback
:
function
()
{
...
...
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
414b7bbc
...
...
@@ -56,7 +56,7 @@ define(['require',
* @constructs
*/
initialize
:
function
(
options
)
{
_
.
extend
(
this
,
_
.
pick
(
options
,
'guid'
));
_
.
extend
(
this
,
_
.
pick
(
options
,
'guid'
,
'entityDefCollection'
));
this
.
entityModel
=
new
VEntity
();
this
.
collection
=
new
VLineageList
();
this
.
typeMap
=
{};
...
...
@@ -113,29 +113,6 @@ define(['require',
generateData
:
function
(
relations
,
guidEntityMap
)
{
var
that
=
this
;
function
fetchEntity
(
name
)
{
++
that
.
asyncFetchCounter
;
that
.
entityModel
.
getEntityDef
(
name
,
{
success
:
function
(
data
)
{
if
(
that
.
typeMap
[
data
.
name
])
{
_
.
keys
(
that
.
fromToObj
).
map
(
function
(
key
)
{
var
obj
=
that
.
fromToObj
[
key
];
if
(
obj
.
typeName
===
data
.
name
)
{
that
.
fromToObj
[
key
][
'isProcess'
]
=
_
.
contains
(
data
.
superTypes
,
"Process"
)
?
true
:
false
;
}
});
}
that
.
typeMap
[
data
.
name
]
=
data
.
superTypes
;
},
complete
:
function
()
{
--
that
.
asyncFetchCounter
;
if
(
that
.
asyncFetchCounter
==
0
)
{
that
.
createGraph
();
}
}
});
}
function
makeNodeObj
(
relationObj
)
{
var
obj
=
{};
obj
[
'shape'
]
=
"img"
;
...
...
@@ -147,12 +124,11 @@ define(['require',
if
(
relationObj
.
status
)
{
obj
[
'status'
]
=
relationObj
.
status
;
}
if
(
that
.
typeMap
&&
that
.
typeMap
[
relationObj
.
typeName
])
{
obj
[
'isProcess'
]
=
_
.
contains
(
that
.
typeMap
[
relationObj
.
typeName
],
"Process"
)
?
true
:
false
;
}
else
{
that
.
typeMap
[
relationObj
.
typeName
]
=
{
fetch
:
true
};
fetchEntity
(
relationObj
.
typeName
);
var
entityDef
=
that
.
entityDefCollection
.
fullCollection
.
find
({
name
:
relationObj
.
typeName
});
if
(
entityDef
&&
entityDef
.
get
(
'superTypes'
))
{
obj
[
'isProcess'
]
=
_
.
contains
(
entityDef
.
get
(
'superTypes'
),
"Process"
)
?
true
:
false
;
}
return
obj
;
}
...
...
dashboardv2/public/js/views/schema/SchemaLayoutView.js
View file @
414b7bbc
...
...
@@ -329,10 +329,14 @@ define(['require',
},
addTagModalView
:
function
(
guid
,
multiple
)
{
var
that
=
this
;
var
tagList
=
that
.
schemaCollection
.
find
({
'guid'
:
guid
});
require
([
'views/tag/addTagModalView'
],
function
(
AddTagModalView
)
{
var
view
=
new
AddTagModalView
({
guid
:
guid
,
multiple
:
multiple
,
tagList
:
_
.
map
((
tagList
?
tagList
.
get
(
'classifications'
)
:
[]),
function
(
obj
)
{
return
obj
.
typeName
;
}),
callback
:
function
()
{
that
.
fetchCollection
();
that
.
arr
=
[];
...
...
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