Ensure that Materialized view size fields in Statistics should be human-readable. #6712

This commit is contained in:
Akshay Joshi
2023-09-06 11:31:04 +05:30
parent a43b70e360
commit 07d965ea46
2 changed files with 7 additions and 0 deletions

View File

@@ -21,7 +21,9 @@ New features
************ ************
| `Issue #4805 <https://github.com/pgadmin-org/pgadmin4/issues/4805>`_ - Added all the new options of the 'WITH' clause in the subscription dialog. | `Issue #4805 <https://github.com/pgadmin-org/pgadmin4/issues/4805>`_ - Added all the new options of the 'WITH' clause in the subscription dialog.
| `Issue #6378 <https://github.com/pgadmin-org/pgadmin4/issues/6378>`_ - Added USING method while creating the table.
| `Issue #6383 <https://github.com/pgadmin-org/pgadmin4/issues/6383>`_ - Added Strategy, Locale Provider, ICU Locale, ICU Rules, and OID options while creating a database. | `Issue #6383 <https://github.com/pgadmin-org/pgadmin4/issues/6383>`_ - Added Strategy, Locale Provider, ICU Locale, ICU Rules, and OID options while creating a database.
| `Issue #6400 <https://github.com/pgadmin-org/pgadmin4/issues/6400>`_ - Added USING method while creating the materialized view.
| `Issue #6736 <https://github.com/pgadmin-org/pgadmin4/issues/6736>`_ - Add support for additional ID token claim checks for OAuth 2 authentication. | `Issue #6736 <https://github.com/pgadmin-org/pgadmin4/issues/6736>`_ - Add support for additional ID token claim checks for OAuth 2 authentication.
Housekeeping Housekeeping
@@ -33,3 +35,4 @@ Bug fixes
********* *********
| `Issue #6704 <https://github.com/pgadmin-org/pgadmin4/issues/6704>`_ - Ensure user is redirected to login page after failed login. | `Issue #6704 <https://github.com/pgadmin-org/pgadmin4/issues/6704>`_ - Ensure user is redirected to login page after failed login.
| `Issue #6712 <https://github.com/pgadmin-org/pgadmin4/issues/6712>`_ - Ensure that Materialized view size fields in "Statistics" should be human-readable.

View File

@@ -40,6 +40,7 @@ define('pgadmin.node.mview', [
type: 'coll-mview', type: 'coll-mview',
columns: ['name', 'owner', 'comment'], columns: ['name', 'owner', 'comment'],
hasStatistics: true, hasStatistics: true,
statsPrettifyFields: [gettext('Total Size')],
canDrop: schemaChildTreeNode.isTreeItemOfChildOfSchema, canDrop: schemaChildTreeNode.isTreeItemOfChildOfSchema,
canDropCascade: schemaChildTreeNode.isTreeItemOfChildOfSchema, canDropCascade: schemaChildTreeNode.isTreeItemOfChildOfSchema,
}); });
@@ -66,6 +67,9 @@ define('pgadmin.node.mview', [
hasSQL: true, hasSQL: true,
hasDepends: true, hasDepends: true,
hasStatistics: true, hasStatistics: true,
statsPrettifyFields: [gettext('Total Size'), gettext('Indexes size'), gettext('Table size'),
gettext('TOAST table size'), gettext('Tuple length'),
gettext('Dead tuple length'), gettext('Free space')],
hasScriptTypes: ['create', 'select'], hasScriptTypes: ['create', 'select'],
collection_type: 'coll-mview', collection_type: 'coll-mview',
width: pgBrowser.stdW.md + 'px', width: pgBrowser.stdW.md + 'px',