BY-239 KPI> /api/1.0/api/dashboard/ownerData/00000000000000000000000000000001 -- Bad Request
- por el cambio realizado por System::getHttpServerHostnameRequestsFrontEnd(), se cambia la forma de optener el server base para las llamadas REST.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
var TimeSeriesModel = function (oauthToken, server, workspace, userId, strings) {
|
||||
this.server = server;
|
||||
this.workspace = workspace;
|
||||
this.baseUrl = "/api/1.0/" + workspace + "/";
|
||||
this.baseUrl = server;
|
||||
this.oauthToken = oauthToken;
|
||||
this.helper = new ViewDashboardHelper();
|
||||
this.cache = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
helper = new ViewDashboardHelper();
|
||||
var ws = urlProxy.split('/');
|
||||
tsModel = new TimeSeriesModel(token, urlProxy, ws[3], pageUserId, G_STRING);
|
||||
tsModel = new TimeSeriesModel(token, urlProxy, workspace, pageUserId, G_STRING);
|
||||
tsPresenter = new TimeSeriesPresenter(tsModel);
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
var ViewDashboardModel = function (oauthToken, server, workspace, moneySymbol) {
|
||||
this.server = server;
|
||||
this.workspace = workspace;
|
||||
this.baseUrl = "/api/1.0/" + workspace + "/";
|
||||
//this.baseUrl = "http://127.0.0.1:8080/api/1.0/workflow/";
|
||||
this.baseUrl = server;
|
||||
this.oauthToken = oauthToken;
|
||||
this.helper = new ViewDashboardHelper();
|
||||
this.moneySymbol = moneySymbol;
|
||||
|
||||
@@ -230,8 +230,7 @@ WidgetBuilder.prototype.setColorForInefficiency = function ($widget, indicatorDa
|
||||
|
||||
/**********************************************************************/
|
||||
helper = new ViewDashboardHelper();
|
||||
var ws = urlProxy.split('/');
|
||||
model = new ViewDashboardModel(token, urlProxy, ws[3], moneyUnit);
|
||||
model = new ViewDashboardModel(token, urlProxy, workspace, moneyUnit);
|
||||
presenter = new ViewDashboardPresenter(model);
|
||||
|
||||
window.loadedIndicators = []; //updated in das-title-selector.click->fillIndicatorWidgets, ready->fillIndicatorWidgets
|
||||
|
||||
Reference in New Issue
Block a user