[pgAdmin4][RM#3238] Proper error handling when connection will belost to server.

Поиск
Список
Период
Сортировка
От Aditya Toshniwal
Тема [pgAdmin4][RM#3238] Proper error handling when connection will belost to server.
Дата
Msg-id CAM9w-_nmzThAbpFUaZmVB3sJJGVeLRSqgUtsB8SAgfb1ok50zQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: [pgAdmin4][RM#3238] Proper error handling when connection will belost to server.  (Dave Page <dpage@pgadmin.org>)
Список 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"
Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Khushboo Vashi
Дата:
Сообщение: Re: [pgAdmin4][Patch]: Fixed RMs #1220 & #1221
Следующее
От: Dave Page
Дата:
Сообщение: Re: [pgAdmin4][RM#3238] Proper error handling when connection will belost to server.