Fix sorting of sizes on the statistics views by sorting raw values and prettifying on the client side. Includes Jasmine tests for the prettyfying function. Fixes #2315
Branch ------ master Details ------- https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=94b7fc483a3b70cb1e168396f3bc65c455a419cf Author: Khushboo Vashi <khushboo.va...@enterprisedb.com> Modified Files -------------- .../js/exclusion_constraint.js | 1 + .../index_constraint/js/index_constraint.js | 1 + .../tables/indexes/templates/index/js/index.js | 4 +- .../exclusion_constraint/sql/default/stats.sql | 4 +- .../templates/index/sql/default/coll_stats.sql | 2 +- .../tables/templates/index/sql/default/stats.sql | 4 +- .../templates/index_constraint/sql/stats.sql | 4 +- .../schemas/tables/templates/table/js/table.js | 8 ++- .../table/sql/default/coll_table_stats.sql | 4 +- .../tables/templates/table/sql/default/stats.sql | 16 ++--- .../databases/templates/databases/js/databases.js | 4 +- .../templates/databases/sql/9.2_plus/stats.sql | 4 +- .../templates/databases/sql/default/stats.sql | 2 +- .../templates/tablespaces/js/tablespaces.js | 4 +- .../templates/tablespaces/sql/default/stats.sql | 4 +- .../misc/statistics/static/js/statistics.js | 50 +++++++++++----- web/pgadmin/static/js/size_prettify.js | 24 ++++++++ web/regression/javascript/size_prettify_spec.js | 68 ++++++++++++++++++++++ 18 files changed, 169 insertions(+), 39 deletions(-) -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers