mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 10:00:17 -04:00
* Web interface to add and delete data sources, without the need to ssh into the server. * Ability to safely delete datasources -- query results from this data sources are deleted, while queries get assigned null datasource. * Updated the BigQuery datasource to use the JSON key file from Google Developer console. Also both BigQuery and the Google Spreadsheets datasource no longer store their key on the filesystem, but rather in the DB. * Minor updates to the Flask Admin.
25 lines
740 B
JavaScript
25 lines
740 B
JavaScript
(function () {
|
|
var AdminStatusCtrl = function ($scope, Events, $http, $timeout) {
|
|
Events.record(currentUser, "view", "page", "admin/status");
|
|
$scope.$parent.pageTitle = "System Status";
|
|
|
|
var refresh = function () {
|
|
$scope.refresh_time = moment().add('minutes', 1);
|
|
$http.get('/status.json').success(function (data) {
|
|
$scope.workers = data.workers;
|
|
delete data.workers;
|
|
$scope.manager = data.manager;
|
|
delete data.manager;
|
|
$scope.status = data;
|
|
});
|
|
|
|
$timeout(refresh, 59 * 1000);
|
|
};
|
|
|
|
refresh();
|
|
};
|
|
|
|
angular.module('redash.admin_controllers', [])
|
|
.controller('AdminStatusCtrl', ['$scope', 'Events', '$http', '$timeout', AdminStatusCtrl])
|
|
})();
|