From f8bd3838083f340f99ac69291d05b7c4fa49746b Mon Sep 17 00:00:00 2001 From: scottashton Date: Wed, 12 Nov 2014 13:59:04 +0100 Subject: [PATCH 1/2] show warnings in aql result --- .../system/aardvark/frontend/js/views/queryView.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/js/apps/system/aardvark/frontend/js/views/queryView.js b/js/apps/system/aardvark/frontend/js/views/queryView.js index 2196b542b2..f53f7e7da7 100644 --- a/js/apps/system/aardvark/frontend/js/views/queryView.js +++ b/js/apps/system/aardvark/frontend/js/views/queryView.js @@ -597,7 +597,17 @@ contentType: "application/json", processData: false, success: function (data) { - outputEditor.setValue(JSON.stringify(data.result, undefined, 2)); + var warnings = ""; + if (data.extra.warnings.length > 0) { + warnings += "Warnings:" + "\r\n\r\n"; + data.extra.warnings.forEach(function(w) { + warnings += "[" + w.code + "], '" + w.message + "'\r\n"; + }); + } + if (warnings !== "") { + warnings += "\r\n" + "Result:" + "\r\n\r\n"; + } + outputEditor.setValue(warnings + JSON.stringify(data.result, undefined, 2)); self.switchTab("result-switch"); window.progressView.hide(); self.deselect(outputEditor); From 3fdcfe584e68e5f5b7dc7a8c55f2c0253268c58f Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Wed, 12 Nov 2014 08:50:36 -0500 Subject: [PATCH 2/2] Revert "issue #1095: non-kaputtbar" This reverts commit 2bbe73e1d3409e6345012d120fa7d550ee66ff9e. --- js/actions/api-endpoint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/actions/api-endpoint.js b/js/actions/api-endpoint.js index 57ba819880..dbd31145f6 100644 --- a/js/actions/api-endpoint.js +++ b/js/actions/api-endpoint.js @@ -226,8 +226,8 @@ var internal = require("internal"); /// database only. Calling this action in any other database will make the server /// return an error. /// -/// Futhermore, the last remaining endpoint cannot be deleted as this would -/// render the server's HTTP interface useless. +/// Futhermore, the last remaining endpoint cannot be deleted as this would make +/// the server kaputt. /// /// @RESTRETURNCODES ///