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
fe28c005
Commit
fe28c005
authored
Jun 01, 2015
by
Vishal Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vishal: Added no linage data message and retry
parent
f7ce5a27
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
13 deletions
+16
-13
homeRoutes.js
dashboard/v2/public/modules/home/homeRoutes.js
+2
-2
lineageController.js
dashboard/v2/public/modules/lineage/lineageController.js
+9
-7
lineage.html
dashboard/v2/public/modules/lineage/views/lineage.html
+2
-1
searchController.js
dashboard/v2/public/modules/search/searchController.js
+1
-1
searchRoutes.js
dashboard/v2/public/modules/search/searchRoutes.js
+2
-2
No files found.
dashboard/v2/public/modules/home/homeRoutes.js
View file @
fe28c005
...
...
@@ -24,8 +24,8 @@ angular.module('dgc.home.routes', []).config(['$stateProvider',
// states for my app
$stateProvider
.
state
(
'home'
,
{
url
:
'/'
,
templateUrl
:
'/modules/home/views/home.html'
url
:
'/'
,
templateUrl
:
'/modules/home/views/home.html'
});
}
]);
dashboard/v2/public/modules/lineage/lineageController.js
View file @
fe28c005
...
...
@@ -26,16 +26,18 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
tableName
:
tableData
.
tableName
,
type
:
tableData
.
type
},
function
lineageSuccess
(
response
)
{
$scope
.
lineageData
=
transformData
(
response
.
results
);
if
(
callRender
)
{
render
();
if
(
!
_
.
isEmpty
(
response
.
results
.
values
.
vertices
))
{
$scope
.
lineageData
=
transformData
(
response
.
results
);
if
(
callRender
)
{
render
();
}
}
$scope
.
requested
=
false
;
});
}
$scope
.
type
=
$element
.
parent
().
attr
(
'data-table-type'
);
$scope
.
rendered
=
false
;
var
requested
=
false
;
$scope
.
requested
=
false
;
function
render
()
{
renderGraph
(
$scope
.
lineageData
,
{
...
...
@@ -49,9 +51,9 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
$scope
.
$on
(
'render-lineage'
,
function
(
event
,
lineageData
)
{
if
(
lineageData
.
type
===
$scope
.
type
)
{
if
(
!
$scope
.
lineageData
)
{
if
(
!
requested
)
{
if
(
!
$scope
.
requested
)
{
getLineageData
(
lineageData
,
true
);
requested
=
true
;
$scope
.
requested
=
true
;
}
}
else
{
render
();
...
...
dashboard/v2/public/modules/lineage/views/lineage.html
View file @
fe28c005
...
...
@@ -17,7 +17,8 @@
-->
<div
class=
"lineage-viz"
data-ng-controller=
"LineageController"
>
<i
data-ng-hide=
"rendered"
class=
"fa fa-spinner fa-spin fa-5x"
></i>
<h4
data-ng-if=
"!requested && !lineageData"
>
No lineage data found
</h4>
<i
data-ng-if=
"requested"
class=
"fa fa-spinner fa-spin fa-5x"
></i>
<svg>
<g/>
</svg>
...
...
dashboard/v2/public/modules/search/searchController.js
View file @
fe28c005
...
...
@@ -106,6 +106,6 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope
.
query
=
(
$location
.
search
()).
query
;
if
(
$scope
.
query
)
{
$scope
.
search
(
$scope
.
query
);
}
}
}
]);
dashboard/v2/public/modules/search/searchRoutes.js
View file @
fe28c005
...
...
@@ -25,7 +25,7 @@ angular.module('dgc.search').config(['$stateProvider',
$stateProvider
.
state
(
'search'
,
{
url
:
'/search?query'
,
templateUrl
:
'/modules/search/views/search.html'
,
controller
:
'SearchController'
,
})
controller
:
'SearchController'
})
;
}
]);
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