
This re-adds the Tempest timeline view as a set of Angular directives. This includes related functionality, such as the Dstat parser and some array utilities. The timeline view consists of a timeline component, which includes the d3 chart, and a separate details component, which shows additional information for tests when selected in the timeline. Change-Id: Ifaaeda91b0617e8cf7a60d30728005f5c8d00546
25 lines
464 B
JavaScript
25 lines
464 B
JavaScript
'use strict';
|
|
|
|
var controllersModule = require('./_index');
|
|
|
|
/**
|
|
* @ngInject
|
|
*/
|
|
function TimelineCtrl($stateParams, datasetService) {
|
|
|
|
// ViewModel
|
|
var vm = this;
|
|
|
|
datasetService.get($stateParams.datasetId).then(function(dataset) {
|
|
vm.dataset = dataset;
|
|
}, function(reason) {
|
|
vm.error = "Unable to load dataset: " + reason;
|
|
});
|
|
|
|
vm.hoveredItem = null;
|
|
vm.selectedItem = null;
|
|
|
|
}
|
|
|
|
controllersModule.controller('TimelineCtrl', TimelineCtrl);
|