[pgadmin-hackers] [pgAdmin4][Patch]: RM1938 - Backgrid sorting not working forInteger/Number types

Поиск
Список
Период
Сортировка
От Surinder Kumar
Тема [pgadmin-hackers] [pgAdmin4][Patch]: RM1938 - Backgrid sorting not working forInteger/Number types
Дата
Msg-id CAM5-9D9GdhuaxHKk__a+QgNStjE=EKV=jZZKK2cyMJX=ZB6SaQ@mail.gmail.com
обсуждение исходный текст
Список pgadmin-hackers
Hi,

As the type of data we get from server side is of string type, due to which the sorting for Integer/Number type columns is not working.

To fix this issue, we are using BigNumber JS library.
We are overriding Backgrid's sort and make_comparator method in backgrid.pgadmin.js.

When sorting is performed based on column we identify the column type(integer/number) and then convert its value into BigInteger and the sorts data.

This patch is dependent on patch sent for "Adding support for BigNumber JS library".

Also, thanks to Murtuza for help.

Please find attached patch and review.


Thanks,
Surinder Kumar
Вложения

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

Предыдущее
От: Surinder Kumar
Дата:
Сообщение: [pgadmin-hackers] [pgAdmin4][Patch]: Add support for BigNumber JS library
Следующее
От: Khushboo Vashi
Дата:
Сообщение: [pgadmin-hackers] [pgAdmin4][Patch]: RM 1730 - Role membership control display needs improvement