Skip to content

Commit f29772a

Browse files
committed
Fix feature tests.
1 parent 4c2fbfe commit f29772a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

web/pgadmin/tools/debugger/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,10 +1233,6 @@ def execute_debugger_query(trans_id, query_type):
12331233
if not status:
12341234
return internal_server_error(errormsg=result)
12351235

1236-
if result == BUSY:
1237-
return make_json_response(
1238-
data={'status': 'Busy', 'result': []}
1239-
)
12401236
return make_json_response(
12411237
data={'status': status, 'result': result}
12421238
)

web/pgadmin/tools/debugger/static/js/components/DebuggerComponent.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panelId,
276276
}
277277
// Call function to create and update Stack information ....
278278
getStackInformation(transId);
279+
if (params.directDebugger.debug_type) {
280+
pollEndExecutionResult(transId);
281+
}
279282
} else if (res.data.data.status === 'NotConnected') {
280283
pgAdmin.Browser.notifier.alert(
281284
gettext('Debugger Error'),
@@ -701,7 +704,9 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panelId,
701704
method: 'GET',
702705
})
703706
.then(function (res) {
704-
if (res.data.data.status) {
707+
if (isBusy(res)) {
708+
continueDebugger();
709+
} else if (res.data.data.status) {
705710
pollResult(params.transId);
706711
} else {
707712
pgAdmin.Browser.notifier.alert(

0 commit comments

Comments
 (0)