Rename analysis to analysis status backend, making room for analysis backend

This commit is contained in:
Raul Ochoa 2016-04-14 13:25:56 +02:00
parent a9ca453b17
commit aa36236ed2
2 changed files with 6 additions and 6 deletions

View File

@ -1,12 +1,12 @@
var PSQL = require('cartodb-psql');
function AnalysisBackend() {
function AnalysisStatusBackend() {
}
module.exports = AnalysisBackend;
module.exports = AnalysisStatusBackend;
AnalysisBackend.prototype.getNodeStatus = function (params, callback) {
AnalysisStatusBackend.prototype.getNodeStatus = function (params, callback) {
var nodeId = params.nodeId;
var statusQuery = 'SELECT node_id, status, updated_at FROM cdb_analysis_catalog where node_id = \'' + nodeId + '\'';

View File

@ -8,7 +8,7 @@ var cors = require('../middleware/cors');
var userMiddleware = require('../middleware/user');
var DataviewBackend = require('../backends/dataview');
var AnalysisBackend = require('../backends/analysis');
var AnalysisStatusBackend = require('../backends/analysis-status');
var MapStoreMapConfigProvider = require('../models/mapconfig/map_store_provider');
@ -42,7 +42,7 @@ function LayergroupController(authApi, pgConnection, mapStore, tileBackend, prev
this.layergroupAffectedTables = layergroupAffectedTables;
this.dataviewBackend = new DataviewBackend();
this.analysisBackend = new AnalysisBackend();
this.analysisStatusBackend = new AnalysisStatusBackend();
}
util.inherits(LayergroupController, BaseController);
@ -107,7 +107,7 @@ LayergroupController.prototype.analysisNodeStatus = function(req, res) {
},
function retrieveNodeStatus(err) {
assert.ifError(err);
self.analysisBackend.getNodeStatus(req.params, this);
self.analysisStatusBackend.getNodeStatus(req.params, this);
},
function finish(err, nodeStatus, stats) {
req.profiler.add(stats || {});