From 7ac4e2a9d90159312636c95b9905655171705ee3 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Wed, 16 Jan 2019 11:55:08 +0530 Subject: [PATCH] Fixed following issues: - Process watcher made fixed width with header changes, time details rounded to 2 decimals - Query history will show "No query history" if no query fired. Query editor default size increased. - Fixed a bug where New folder create button not working when in List mode and No files/folder present. - Other minor improvements. --- .../schemas/functions/static/js/function.js | 1 + .../databases/schemas/types/static/js/type.js | 10 +++++-- web/pgadmin/browser/static/css/wizard.css | 3 -- .../browser/templates/browser/index.html | 2 +- web/pgadmin/misc/bgprocess/processes.py | 10 ++----- .../misc/bgprocess/static/js/bgprocess.js | 11 +++++-- .../bgprocess/static/scss/_bgprocess.scss | 2 ++ .../misc/file_manager/static/js/utility.js | 15 +++++++--- .../static/scss/_file_manager.scss | 4 +++ .../preferences/static/js/preferences.js | 11 +++++++ web/pgadmin/static/js/backform.pgadmin.js | 5 ++++ .../static/jsx/history/query_history.jsx | 29 ++++++++++++------- .../static/scss/_aci_tree.overrides.scss | 14 ++++----- web/pgadmin/static/scss/_alert.scss | 4 +-- .../static/scss/_alertify.overrides.scss | 14 ++++----- .../static/scss/_bootstrap.overrides.scss | 3 +- web/pgadmin/static/scss/_pgadmin.style.scss | 22 +++++++++----- .../static/scss/_webcabin.pgadmin.scss | 4 +++ .../scss/resources/_default.variables.scss | 6 +++- web/pgadmin/tools/backup/__init__.py | 18 ++++++++++-- .../tools/backup/tests/test_backup_message.py | 6 ++-- .../grant_wizard/static/js/grant_wizard.js | 8 ----- web/pgadmin/tools/import_export/__init__.py | 14 +++++---- web/pgadmin/tools/maintenance/__init__.py | 4 +++ web/pgadmin/tools/restore/__init__.py | 6 +++- .../restore/tests/test_restore_message.py | 2 +- .../tools/sqleditor/static/css/sqleditor.css | 10 ------- .../tools/sqleditor/static/js/sqleditor.js | 2 +- .../tools/sqleditor/static/scss/_history.scss | 11 ++++++- .../sqleditor/static/scss/_sqleditor.scss | 15 ++++++---- .../javascript/history/query_history_spec.jsx | 2 +- 31 files changed, 168 insertions(+), 100 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/static/js/function.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/static/js/function.js index e90af570f..6ac7a8a5a 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/static/js/function.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/static/js/function.js @@ -108,6 +108,7 @@ define('pgadmin.node.function', [ collection_type: 'coll-function', hasSQL: true, hasDepends: true, + width: pgBrowser.stdW.md + 'px', hasStatistics: (treeInformation) => { return treeInformation.server.server_type !== 'gpdb'; }, diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/types/static/js/type.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/types/static/js/type.js index 4cc480124..6623aafdf 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/types/static/js/type.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/types/static/js/type.js @@ -348,7 +348,7 @@ define('pgadmin.node.type', [ id: 'typtype', label: gettext('Type'), mode: ['create','edit'], disabled: 'inSchemaWithModelCheck', group: gettext('Definition'), - select2: { width: '50%', allowClear: false }, + select2: { allowClear: false }, options: function() { return [ {label: 'Composite', value: 'c'}, @@ -553,11 +553,13 @@ define('pgadmin.node.type', [ },{ type: 'nested', control: 'tab', group: gettext('Definition'), label: gettext('External Type'), deps: ['typtype'], - mode: ['create', 'edit'], + mode: ['create', 'edit'], tabPanelExtraClasses:'inline-tab-panel-padded', visible: function(m) { return m.get('typtype') === 'b'; }, schema:[{ + id: 'spacer_ctrl', group: gettext('Required'), mode: ['edit', 'create'], type: 'spacer', + },{ id: 'typinput', label: gettext('Input function'), cell: 'string',type: 'text', mode: ['properties', 'create', 'edit'], group: gettext('Required'), @@ -574,6 +576,8 @@ define('pgadmin.node.type', [ ,control: 'node-ajax-options', url: 'get_external_functions', transform: 'external_func_combo', select2: { allowClear: true, placeholder: '', width: '100%' }, + },{ + id: 'spacer_ctrl_optional_1', group: gettext('Optional-1'), mode: ['edit', 'create'], type: 'spacer', },{ id: 'typreceive', label: gettext('Receive function'), cell: 'string', type: 'text', group: gettext('Optional-1'), @@ -675,6 +679,8 @@ define('pgadmin.node.type', [ type: 'switch', mode: ['properties', 'create','edit'], disabled: 'inSchemaWithModelCheck', group: gettext('Optional-1'), + },{ + id: 'spacer_ctrl_optional_2', group: gettext('Optional-2'), mode: ['edit', 'create'], type: 'spacer', },{ id: 'element', label: gettext('Element type'), cell: 'string', control: 'node-ajax-options', group: gettext('Optional-2'), diff --git a/web/pgadmin/browser/static/css/wizard.css b/web/pgadmin/browser/static/css/wizard.css index 29641bc11..a4a7d73f2 100644 --- a/web/pgadmin/browser/static/css/wizard.css +++ b/web/pgadmin/browser/static/css/wizard.css @@ -1,7 +1,4 @@ /** CSS for Wizard **/ -.pgadmin_grant_wizard_body .ajs-content { - padding: 0px !important; -} .wizard-header h3 { font-size: 14px; diff --git a/web/pgadmin/browser/templates/browser/index.html b/web/pgadmin/browser/templates/browser/index.html index 89877f59f..965ae5ce4 100644 --- a/web/pgadmin/browser/templates/browser/index.html +++ b/web/pgadmin/browser/templates/browser/index.html @@ -96,7 +96,7 @@ window.onload = function(e){
{{ _('Loading {0} v{1}...').format(config.APP_NAME, config.APP_VERSION) }}
-