Repository: incubator-griffin Updated Branches: refs/heads/master 168ebdfe9 -> ada0add95
fix dashbord bugs 1. Fetch 30 metric value instead of 300 on dashboard view. 2. delete Last Access Time on data asserts view. Author: dodobel <[email protected]> Closes #226 from dodobel/button. Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/ada0add9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/ada0add9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/ada0add9 Branch: refs/heads/master Commit: ada0add957efab53643dda6b0e2724918e2a8952 Parents: 168ebdf Author: dodobel <[email protected]> Authored: Wed Feb 28 13:38:39 2018 +0800 Committer: Lionel Liu <[email protected]> Committed: Wed Feb 28 13:38:39 2018 +0800 ---------------------------------------------------------------------- ui/angular/src/app/dataasset/dataasset.component.html | 2 -- ui/angular/src/app/metric/metric.component.ts | 4 ++++ ui/angular/src/app/sidebar/sidebar.component.ts | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/ada0add9/ui/angular/src/app/dataasset/dataasset.component.html ---------------------------------------------------------------------- diff --git a/ui/angular/src/app/dataasset/dataasset.component.html b/ui/angular/src/app/dataasset/dataasset.component.html index f12a868..de3f25d 100644 --- a/ui/angular/src/app/dataasset/dataasset.component.html +++ b/ui/angular/src/app/dataasset/dataasset.component.html @@ -35,7 +35,6 @@ under the License. <th st-ratio="10">DB Name</th> <th st-ratio="20">Owner</th> <th st-ratio="10">Creation Time</th> - <th st-ratio="20">Last Access Time</th> <th st-ratio="20">Location</th> </tr> </thead> @@ -58,7 +57,6 @@ under the License. <td>{{row.dbName || 'N/A'}}</td> <td>{{row.owner || 'N/A'}}</td> <td>{{(row.createTime * 1000 | date: 'short') || 'N/A'}}</td> - <td>{{(row.lastAccessTime * 1000 | date: 'short') || 'N/A' }}</td> <td>{{row.sd.location || 'N/A'}}</td> </tr> <tr *ngIf="row.showDetail"> http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/ada0add9/ui/angular/src/app/metric/metric.component.ts ---------------------------------------------------------------------- diff --git a/ui/angular/src/app/metric/metric.component.ts b/ui/angular/src/app/metric/metric.component.ts index eae6e2a..7df1f84 100644 --- a/ui/angular/src/app/metric/metric.component.ts +++ b/ui/angular/src/app/metric/metric.component.ts @@ -70,6 +70,10 @@ export class MetricComponent implements OnInit { node.type = "accuracy"; for (let i = 0; i < jobs.length; i++) { if (jobs[i].metricValues.length != 0) { + var someMetrics = jobs[i].metricValues.slice(0,30); + jobs[i].metricValues = JSON.parse( + JSON.stringify(someMetrics) + ); var metricNode = { name: "", timestamp: "", http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/ada0add9/ui/angular/src/app/sidebar/sidebar.component.ts ---------------------------------------------------------------------- diff --git a/ui/angular/src/app/sidebar/sidebar.component.ts b/ui/angular/src/app/sidebar/sidebar.component.ts index c15b826..30ae045 100644 --- a/ui/angular/src/app/sidebar/sidebar.component.ts +++ b/ui/angular/src/app/sidebar/sidebar.component.ts @@ -117,6 +117,10 @@ export class SidebarComponent implements OnInit { node.type = "accuracy"; for (let i = 0; i < jobs.length; i++) { if (jobs[i].metricValues.length != 0) { + var someMetrics = jobs[i].metricValues.slice(0,30); + jobs[i].metricValues = JSON.parse( + JSON.stringify(someMetrics) + ); var metricNode = { name: "", timestamp: "",
