mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed value error in the restore dialog. Fixes #7151
This commit is contained in:
parent
ad64491a98
commit
4a195e7ef6
@ -35,3 +35,4 @@ Bug fixes
|
|||||||
| `Issue #7142 <https://redmine.postgresql.org/issues/7142>`_ - Fixed an issue where a warning message was shown after database creation/modification.
|
| `Issue #7142 <https://redmine.postgresql.org/issues/7142>`_ - Fixed an issue where a warning message was shown after database creation/modification.
|
||||||
| `Issue #7145 <https://redmine.postgresql.org/issues/7145>`_ - Ensure that owner should be ignored while comparing extensions.
|
| `Issue #7145 <https://redmine.postgresql.org/issues/7145>`_ - Ensure that owner should be ignored while comparing extensions.
|
||||||
| `Issue #7146 <https://redmine.postgresql.org/issues/7146>`_ - Fixed event trigger comparing issue in Schema Diff tool.
|
| `Issue #7146 <https://redmine.postgresql.org/issues/7146>`_ - Fixed event trigger comparing issue in Schema Diff tool.
|
||||||
|
| `Issue #7151 <https://redmine.postgresql.org/issues/7151>`_ - Fixed value error in the restore dialog.
|
||||||
|
@ -174,7 +174,8 @@ class EventTriggerView(PGChildNodeView, SchemaDiffObjectCompare):
|
|||||||
'fopts': [{'get': 'get_event_funcs'}, {'get': 'get_event_funcs'}]
|
'fopts': [{'get': 'get_event_funcs'}, {'get': 'get_event_funcs'}]
|
||||||
})
|
})
|
||||||
|
|
||||||
keys_to_ignore = ['oid', 'xmin', 'oid-2', 'eventfuncoid', 'schemaoid']
|
keys_to_ignore = ['oid', 'xmin', 'oid-2', 'eventfuncoid', 'schemaoid',
|
||||||
|
'source']
|
||||||
|
|
||||||
def check_precondition(f):
|
def check_precondition(f):
|
||||||
"""
|
"""
|
||||||
|
@ -77,7 +77,7 @@ export class Tree {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async before(item, data) {
|
async before(item, data) {
|
||||||
await this.tree.create(item.parent, data);
|
return Promise.resolve(await this.tree.create(item.parent, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
async update(item, data) {
|
async update(item, data) {
|
||||||
@ -89,7 +89,7 @@ export class Tree {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async append(item, data) {
|
async append(item, data) {
|
||||||
await this.tree.create(item, data);
|
return Promise.resolve(await this.tree.create(item, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
async destroy() {
|
async destroy() {
|
||||||
|
@ -211,10 +211,10 @@ def _connect_server(sid):
|
|||||||
server = get_server(sid)
|
server = get_server(sid)
|
||||||
|
|
||||||
if server is None:
|
if server is None:
|
||||||
return make_json_response(
|
return True, make_json_response(
|
||||||
success=0,
|
success=0,
|
||||||
errormsg=_("Could not find the specified server.")
|
errormsg=_("Could not find the specified server.")
|
||||||
)
|
), None, None, None, None, None
|
||||||
|
|
||||||
# To fetch MetaData for the server
|
# To fetch MetaData for the server
|
||||||
from pgadmin.utils.driver import get_driver
|
from pgadmin.utils.driver import get_driver
|
||||||
@ -228,7 +228,7 @@ def _connect_server(sid):
|
|||||||
return True, make_json_response(
|
return True, make_json_response(
|
||||||
success=0,
|
success=0,
|
||||||
errormsg=_("Please connect to the server first.")
|
errormsg=_("Please connect to the server first.")
|
||||||
), driver, manager, conn, connected
|
), driver, manager, conn, connected, server
|
||||||
|
|
||||||
return False, '', driver, manager, conn, connected, server
|
return False, '', driver, manager, conn, connected, server
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user