Merge pull request #435 from CartoDB/change-jobs-wip-endpoint
Change WIP jobs endpoint
This commit is contained in:
commit
2d75906d00
@ -1,3 +1,4 @@
|
||||
dist: precise
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
|
3
NEWS.md
3
NEWS.md
@ -3,6 +3,9 @@
|
||||
## 1.47.2
|
||||
Released 2017-mm-dd
|
||||
|
||||
Announcements:
|
||||
* Change work in progress jobs endpoint from `[..]/job/wip` to `[..]/jobs-wip`
|
||||
|
||||
|
||||
## 1.47.1
|
||||
Released 2017-08-13
|
||||
|
@ -49,8 +49,7 @@ JobController.prototype.route = function (app) {
|
||||
this.createJob.bind(this)
|
||||
);
|
||||
app.get(
|
||||
global.settings.base_url + '/sql/job/wip',
|
||||
userMiddleware, authenticatedMiddleware(this.userDatabaseService),
|
||||
global.settings.base_url + '/jobs-wip',
|
||||
this.listWorkInProgressJobs.bind(this)
|
||||
);
|
||||
app.get(
|
||||
@ -96,8 +95,6 @@ JobController.prototype.listWorkInProgressJobs = function (req, res) {
|
||||
return handleException(err, res);
|
||||
}
|
||||
|
||||
res.header('X-Served-By-DB-Host', req.context.userDatabase.host);
|
||||
|
||||
req.profiler.done('list');
|
||||
req.profiler.end();
|
||||
req.profiler.sendStats();
|
||||
|
@ -109,7 +109,7 @@ BatchTestClient.prototype.getWorkInProgressJobs = function(override, callback) {
|
||||
assert.response(
|
||||
this.server,
|
||||
{
|
||||
url: this.getUrl(override, 'wip'),
|
||||
url: '/api/v1/jobs-wip',
|
||||
headers: {
|
||||
host: this.getHost(override)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user