From 1f6a0a87f6b42e7299e4264823e1dbc1f5857271 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Fri, 25 Oct 2019 12:38:46 +0100 Subject: [PATCH] Ensure all messages are retained in the Query Tool from long running queries. Fixes #4730 --- docs/en_US/release_notes_4_15.rst | 1 + web/pgadmin/static/js/sqleditor/call_render_after_poll.js | 2 +- .../javascript/sqleditor/call_render_after_poll_spec.js | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/en_US/release_notes_4_15.rst b/docs/en_US/release_notes_4_15.rst index fe99e6e2c..e26b66bbb 100644 --- a/docs/en_US/release_notes_4_15.rst +++ b/docs/en_US/release_notes_4_15.rst @@ -21,5 +21,6 @@ Bug fixes | `Issue #3789 `_ - Ensure context menus never get hidden below the menu bar. | `Issue #3913 `_ - Ensure the correct "running at" agent is shown when a pgAgent job is executing. | `Issue #4459 `_ - Don't quote bigints when copying them from the Query Tool results grid. +| `Issue #4730 `_ - Ensure all messages are retained in the Query Tool from long running queries. | `Issue #4845 `_ - Fixed potential errorĀ in the properties dialog for the Code tab. | `Issue #4850 `_ - Fixed an issue where Datetimepicker control opens when clicking on the label. \ No newline at end of file diff --git a/web/pgadmin/static/js/sqleditor/call_render_after_poll.js b/web/pgadmin/static/js/sqleditor/call_render_after_poll.js index c3d21730c..23b1daa2b 100644 --- a/web/pgadmin/static/js/sqleditor/call_render_after_poll.js +++ b/web/pgadmin/static/js/sqleditor/call_render_after_poll.js @@ -40,7 +40,7 @@ export function callRenderAfterPoll(sqlEditor, alertify, res) { res.result += '\n\n' + msg; else res.result = msg; - sqlEditor.update_msg_history(true, res.result, true); + sqlEditor.update_msg_history(true, res.result, false); sqlEditor.reset_data_store(); if (isNotificationEnabled(sqlEditor)) { alertify.success(msg, sqlEditor.info_notifier_timeout); diff --git a/web/regression/javascript/sqleditor/call_render_after_poll_spec.js b/web/regression/javascript/sqleditor/call_render_after_poll_spec.js index 8f30c10c2..bb3ba6053 100644 --- a/web/regression/javascript/sqleditor/call_render_after_poll_spec.js +++ b/web/regression/javascript/sqleditor/call_render_after_poll_spec.js @@ -82,7 +82,7 @@ describe('#callRenderAfterPoll', () => { expect(sqlEditorSpy.update_msg_history).toHaveBeenCalledWith( true, 'Some result\n\nQuery returned successfully in 0 msec.', - true + false ); }); @@ -173,7 +173,7 @@ describe('#callRenderAfterPoll', () => { expect(sqlEditorSpy.update_msg_history).toHaveBeenCalledWith( true, 'Some result\n\nQuery returned successfully in 0 msec.', - true + false ); });