[pgAdmin4][RM#3238] Proper error handling when connection will belost to server. - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject [pgAdmin4][RM#3238] Proper error handling when connection will belost to server.
Date
Msg-id CAM9w-_nmzThAbpFUaZmVB3sJJGVeLRSqgUtsB8SAgfb1ok50zQ@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin4][RM#3238] Proper error handling when connection will belost to server.  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
Hi Hackers,

PFA patch for proper error handling when connection will be lost to server. I have created a common function alertify.pgRespErrorNotify in web/pgadmin/static/js/alertify.pgadmin.defaults.js on the lines of existing function alertify.pgNotifier. The function is called in error callback of $.ajax call. The XHR is passed and handled in the function itself. Please note that I have used JSON.parse and not $.parseJSON as it will be deprecated in jQuery 3.x and thus removing many $.parseJSON calls.

Request you to kindly review.


Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB Software Solutions | Pune
"Don't Complain about Heat, Plant a tree"
Attachment

pgadmin-hackers by date:

Previous
From: Khushboo Vashi
Date:
Subject: Re: [pgAdmin4][Patch]: Fixed RMs #1220 & #1221
Next
From: Dave Page
Date:
Subject: Re: [pgAdmin4][RM#3238] Proper error handling when connection will belost to server.