Fixed an issue with the non-visibility of columns added prior to import/export data. Fixes

pull/5349/head
Yogesh Mahajan 2022-09-07 17:40:52 +05:30 committed by Akshay Joshi
parent 0f46f070ed
commit ad59380676
3 changed files with 8 additions and 1 deletions
web/pgadmin
browser/static/js
tools/import_export/static/js

View File

@ -29,4 +29,5 @@ Bug fixes
| `Issue #7644 <https://redmine.postgresql.org/issues/7644>`_ - Ensure that the dump servers functionality works from setup.py.
| `Issue #7646 <https://redmine.postgresql.org/issues/7646>`_ - Ensure that the Import/Export server menu option is visible.
| `Issue #7648 <https://redmine.postgresql.org/issues/7648>`_ - Fixed API test case for change password in the server mode.
| `Issue #7649 <https://redmine.postgresql.org/issues/7649>`_ - Fixed an issue with the non-visibility of columns added prior to import/export data.
| `Issue #7663 <https://redmine.postgresql.org/issues/7663>`_ - Fixed ModuleNotFoundError when running setup.py to load/dump servers.

View File

@ -1079,6 +1079,12 @@ define('pgadmin.browser.node', [
}
},
added: function(item, data) {
if (pgBrowser.tree.getData(item)._type.indexOf('coll-') !== -1){
setTimeout(function() {
let _item = pgAdmin.Browser.Nodes[pgBrowser.tree.getData(item).nodes[0]];
_item.clear_cache.apply(_item);
}, 0);
}
pgBrowser.Events.trigger('pgadmin:browser:tree:expand-from-previous-tree-state',
item);
pgBrowser.Node.callbacks.change_server_background(item, data);

View File

@ -64,7 +64,7 @@ define([
return new ImportExportSchema(
{
encoding: ()=>getNodeAjaxOptions('get_encodings', pgBrowser.Nodes['database'], treeNodeInfo, itemNodeData, {cacheNode: 'database',cacheLevel: 'server'}),
columns: ()=>getNodeListByName('column', treeNodeInfo, itemNodeData, { cacheLevel: 'column'}, ()=>true, (res)=>{
columns: ()=>getNodeListByName('column', treeNodeInfo, itemNodeData, { cacheLevel: 'column', cacheNode: 'column'}, ()=>true, (res)=>{
let columnsList = [];
res.forEach(d => {
columnsList.push({label: d.label, value: d.value, image:'icon-column', selected: true});