mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 09:40:21 -06:00
Ensure size stats are prettified on the statistics tab when the UI language != English. Fixes #3096
This commit is contained in:
parent
a39f43788b
commit
e5598038fa
@ -19,6 +19,7 @@ Features
|
|||||||
Bug fixes
|
Bug fixes
|
||||||
*********
|
*********
|
||||||
|
|
||||||
|
| `Bug #3096 <https://redmine.postgresql.org/issues/3096>`_ - Ensure size stats are prettified on the statistics tab when the UI language is not English.
|
||||||
| `Bug #3544 <https://redmine.postgresql.org/issues/3544>`_ - Make the Query Tool tab titles more concise and useful.
|
| `Bug #3544 <https://redmine.postgresql.org/issues/3544>`_ - Make the Query Tool tab titles more concise and useful.
|
||||||
| `Bug #3673 <https://redmine.postgresql.org/issues/3673>`_ - Modify the Download as CSV option to use the same connection as the Query Tool its running in so temporary tables etc. can be used.
|
| `Bug #3673 <https://redmine.postgresql.org/issues/3673>`_ - Modify the Download as CSV option to use the same connection as the Query Tool its running in so temporary tables etc. can be used.
|
||||||
| `Bug #3873 <https://redmine.postgresql.org/issues/3873>`_ - Fix context sub-menu alignment on Safari.
|
| `Bug #3873 <https://redmine.postgresql.org/issues/3873>`_ - Fix context sub-menu alignment on Safari.
|
||||||
|
@ -628,7 +628,7 @@ define('pgadmin.node.exclusion_constraint', [
|
|||||||
canDropCascade: true,
|
canDropCascade: true,
|
||||||
hasDepends: true,
|
hasDepends: true,
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Index size'],
|
statsPrettifyFields: [gettext('Index size')],
|
||||||
Init: function() {
|
Init: function() {
|
||||||
/* Avoid multiple registration of menus */
|
/* Avoid multiple registration of menus */
|
||||||
if (this.initialized)
|
if (this.initialized)
|
||||||
|
@ -25,7 +25,7 @@ define('pgadmin.node.primary_key', [
|
|||||||
hasSQL: true,
|
hasSQL: true,
|
||||||
hasDepends: true,
|
hasDepends: true,
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Index size'],
|
statsPrettifyFields: [gettext('Index size')],
|
||||||
parent_type: ['table','partition'],
|
parent_type: ['table','partition'],
|
||||||
canDrop: true,
|
canDrop: true,
|
||||||
canDropCascade: true,
|
canDropCascade: true,
|
||||||
|
@ -25,7 +25,7 @@ define('pgadmin.node.unique_constraint', [
|
|||||||
hasSQL: true,
|
hasSQL: true,
|
||||||
hasDepends: true,
|
hasDepends: true,
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Index size'],
|
statsPrettifyFields: [gettext('Index size')],
|
||||||
parent_type: ['table','partition'],
|
parent_type: ['table','partition'],
|
||||||
canDrop: true,
|
canDrop: true,
|
||||||
canDropCascade: true,
|
canDropCascade: true,
|
||||||
|
@ -29,7 +29,7 @@ define('pgadmin.node.index', [
|
|||||||
dialogHelp: url_for('help.static', {'filename': 'index_dialog.html'}),
|
dialogHelp: url_for('help.static', {'filename': 'index_dialog.html'}),
|
||||||
columns: ['name', 'description'],
|
columns: ['name', 'description'],
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Size', 'Index size'],
|
statsPrettifyFields: [gettext('Size'), gettext('Index size')],
|
||||||
canDrop: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
canDrop: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||||
canDropCascade: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
canDropCascade: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||||
});
|
});
|
||||||
@ -232,7 +232,7 @@ define('pgadmin.node.index', [
|
|||||||
hasSQL: true,
|
hasSQL: true,
|
||||||
hasDepends: true,
|
hasDepends: true,
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Size', 'Index size'],
|
statsPrettifyFields: [gettext('Size'), gettext('Index size')],
|
||||||
Init: function() {
|
Init: function() {
|
||||||
/* Avoid mulitple registration of menus */
|
/* Avoid mulitple registration of menus */
|
||||||
if (this.initialized)
|
if (this.initialized)
|
||||||
|
@ -42,9 +42,9 @@ function(
|
|||||||
hasSQL: true,
|
hasSQL: true,
|
||||||
hasDepends: true,
|
hasDepends: true,
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Size', 'Indexes size', 'Table size',
|
statsPrettifyFields: [gettext('Size'), gettext('Indexes size'), gettext('Table size'),
|
||||||
'Toast table size', 'Tuple length',
|
gettext('Toast table size'), gettext('Tuple length'),
|
||||||
'Dead tuple length', 'Free space'],
|
gettext('Dead tuple length'), gettext('Free space')],
|
||||||
sqlAlterHelp: 'sql-altertable.html',
|
sqlAlterHelp: 'sql-altertable.html',
|
||||||
sqlCreateHelp: 'sql-createtable.html',
|
sqlCreateHelp: 'sql-createtable.html',
|
||||||
dialogHelp: url_for('help.static', {'filename': 'table_dialog.html'}),
|
dialogHelp: url_for('help.static', {'filename': 'table_dialog.html'}),
|
||||||
|
@ -30,9 +30,9 @@ define('pgadmin.node.table', [
|
|||||||
type: 'coll-table',
|
type: 'coll-table',
|
||||||
columns: ['name', 'relowner', 'is_partitioned', 'description'],
|
columns: ['name', 'relowner', 'is_partitioned', 'description'],
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Size', 'Indexes size', 'Table size',
|
statsPrettifyFields: [gettext('Size'), gettext('Indexes size'), gettext('Table size'),
|
||||||
'Toast table size', 'Tuple length',
|
gettext('Toast table size'), gettext('Tuple length'),
|
||||||
'Dead tuple length', 'Free space'],
|
gettext('Dead tuple length'), gettext('Free space')],
|
||||||
canDrop: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
canDrop: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||||
canDropCascade: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
canDropCascade: SchemaChildTreeNode.isTreeItemOfChildOfSchema,
|
||||||
});
|
});
|
||||||
@ -46,9 +46,9 @@ define('pgadmin.node.table', [
|
|||||||
hasSQL: true,
|
hasSQL: true,
|
||||||
hasDepends: true,
|
hasDepends: true,
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Size', 'Indexes size', 'Table size',
|
statsPrettifyFields: [gettext('Size'), gettext('Indexes size'), gettext('Table size'),
|
||||||
'Toast table size', 'Tuple length',
|
gettext('Toast table size'), gettext('Tuple length'),
|
||||||
'Dead tuple length', 'Free space'],
|
gettext('Dead tuple length'), gettext('Free space')],
|
||||||
sqlAlterHelp: 'sql-altertable.html',
|
sqlAlterHelp: 'sql-altertable.html',
|
||||||
sqlCreateHelp: 'sql-createtable.html',
|
sqlCreateHelp: 'sql-createtable.html',
|
||||||
dialogHelp: url_for('help.static', {'filename': 'table_dialog.html'}),
|
dialogHelp: url_for('help.static', {'filename': 'table_dialog.html'}),
|
||||||
|
@ -24,7 +24,7 @@ define('pgadmin.node.database', [
|
|||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
canDrop: true,
|
canDrop: true,
|
||||||
canDropCascade: false,
|
canDropCascade: false,
|
||||||
statsPrettifyFields: ['Size', 'Size of temporary files'],
|
statsPrettifyFields: [gettext('Size'), gettext('Size of temporary files')],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ define('pgadmin.node.database', [
|
|||||||
hasSQL: true,
|
hasSQL: true,
|
||||||
hasDepends: true,
|
hasDepends: true,
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Size', 'Size of temporary files'],
|
statsPrettifyFields: [gettext('Size'), gettext('Size of temporary files')],
|
||||||
canDrop: function(node) {
|
canDrop: function(node) {
|
||||||
return node.canDrop;
|
return node.canDrop;
|
||||||
},
|
},
|
||||||
|
@ -24,7 +24,7 @@ define('pgadmin.node.tablespace', [
|
|||||||
type: 'coll-tablespace',
|
type: 'coll-tablespace',
|
||||||
columns: ['name', 'spcuser', 'description'],
|
columns: ['name', 'spcuser', 'description'],
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Size'],
|
statsPrettifyFields: [gettext('Size')],
|
||||||
canDrop: true,
|
canDrop: true,
|
||||||
canDropCascade: false,
|
canDropCascade: false,
|
||||||
});
|
});
|
||||||
@ -42,7 +42,7 @@ define('pgadmin.node.tablespace', [
|
|||||||
canDrop: true,
|
canDrop: true,
|
||||||
hasDepends: true,
|
hasDepends: true,
|
||||||
hasStatistics: true,
|
hasStatistics: true,
|
||||||
statsPrettifyFields: ['Size'],
|
statsPrettifyFields: [gettext('Size')],
|
||||||
Init: function() {
|
Init: function() {
|
||||||
/* Avoid mulitple registration of menus */
|
/* Avoid mulitple registration of menus */
|
||||||
if (this.initialized)
|
if (this.initialized)
|
||||||
|
Loading…
Reference in New Issue
Block a user