From 524778d0cd1d0ba8dea012b8d713642c2cabe22f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 18 May 2019 13:29:21 +0200 Subject: [PATCH 1/2] Returning File Not Found in Code --- Server/AzureStorage.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Server/AzureStorage.js b/Server/AzureStorage.js index 1a589b90d..780b20f03 100644 --- a/Server/AzureStorage.js +++ b/Server/AzureStorage.js @@ -132,7 +132,13 @@ if (CONSOLE_ERROR_LOG === true) { console.log("[ERROR] Azure Storage -> readData -> onFileReceived -> err = " + JSON.stringify(err)); } if (CONSOLE_ERROR_LOG === true) { console.log("[ERROR] Azure Storage -> readData -> onFileReceived -> Returning an empty JSON object string. "); } - callBackFunction(global.DEFAULT_FAIL_RESPONSE); + let response = { + result: global.DEFAULT_FAIL_RESPONSE.result, + message: global.DEFAULT_FAIL_RESPONSE.message, + code: 'FileNotFound' + } + + callBackFunction(response); return; } From 05037e9f89b4dabaef458e067b174af86e09aaa7 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 19 May 2019 08:55:52 +0200 Subject: [PATCH 2/2] BUG FIXED: Sometimes viewPort loaded after it was needed --- Scripts/AppLoader.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Scripts/AppLoader.js b/Scripts/AppLoader.js index 292e85f4e..151d9da6d 100644 --- a/Scripts/AppLoader.js +++ b/Scripts/AppLoader.js @@ -28,7 +28,14 @@ function newAppLoader () { 'Globals.js', 'Ecosystem.js', - 'MQService', + 'MQService', + + 'ChartsSpace/ChartUtilities.js', + 'ChartsSpace/PlottersManager.js', + 'ChartsSpace/TimelineChart.js', + 'ChartsSpace/TimeMachine.js', + 'ChartsSpace/ViewPort.js', + 'ChartsSpace/TimeLineCoordinateSystem.js', 'TopSpace/CurrentEvent.js', 'TopSpace/EndUser.js', @@ -84,13 +91,6 @@ function newAppLoader () { 'Scales/TimePeriodScale.js', 'Scales/Commons.js', - 'ChartsSpace/ChartUtilities.js', - 'ChartsSpace/PlottersManager.js', - 'ChartsSpace/TimelineChart.js', - 'ChartsSpace/TimeMachine.js', - 'ChartsSpace/ViewPort.js', - 'ChartsSpace/TimeLineCoordinateSystem.js', - 'CockpitSpace/AssetBalances.js', 'CockpitSpace/Speedometer.js', 'CockpitSpace/RestartSimulation.js',