mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 08:10:03 -06:00
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.
This commit is contained in:
1 parent
2a359d9d77
commit
7ac4e2a9d9
31 files changed
+168
-100
No files matched your search
@@ -125,6 +125,18 @@ class BackupMessage(IProcessDesc):
|
||||
|
||||
return s.name, host, port
|
||||
|
||||
@property
|
||||
def type_desc(self):
|
||||
if self.backup_type == BACKUP.OBJECT:
|
||||
return _("Backing up an object on the server")
|
||||
if self.backup_type == BACKUP.GLOBALS:
|
||||
return _("Backing up the global objects")
|
||||
elif self.backup_type == BACKUP.SERVER:
|
||||
return _("Backing up the server")
|
||||
else:
|
||||
# It should never reach here.
|
||||
return _("Unknown Backup")
|
||||
|
||||
@property
|
||||
def message(self):
|
||||
name, host, port = self.get_server_details()
|
||||
@@ -132,7 +144,7 @@ class BackupMessage(IProcessDesc):
|
||||
if self.backup_type == BACKUP.OBJECT:
|
||||
return _(
|
||||
"Backing up an object on the server '{0}' "
|
||||
"from database '{1}'..."
|
||||
"from database '{1}'"
|
||||
).format(
|
||||
"{0} ({1}:{2})".format(
|
||||
name, host, port
|
||||
@@ -141,13 +153,13 @@ class BackupMessage(IProcessDesc):
|
||||
)
|
||||
if self.backup_type == BACKUP.GLOBALS:
|
||||
return _("Backing up the global objects on "
|
||||
"the server '{0}'...").format(
|
||||
"the server '{0}'").format(
|
||||
"{0} ({1}:{2})".format(
|
||||
name, host, port
|
||||
)
|
||||
)
|
||||
elif self.backup_type == BACKUP.SERVER:
|
||||
return _("Backing up the server '{0}'...").format(
|
||||
return _("Backing up the server '{0}'").format(
|
||||
"{0} ({1}:{2})".format(
|
||||
name, host, port
|
||||
)
|
||||
|
||||
@@ -47,7 +47,7 @@ class BackupMessageTest(BaseTestGenerator):
|
||||
cmd="/test_path/pg_dump"
|
||||
),
|
||||
extected_msg="Backing up the server"
|
||||
" 'test_backup_server (localhost:5444)'...",
|
||||
" 'test_backup_server (localhost:5444)'",
|
||||
expetced_details_cmd='/test_path/pg_dump --file '
|
||||
'"backup_file" --host "localhost" '
|
||||
'--port "5444" --username "postgres" '
|
||||
@@ -80,7 +80,7 @@ class BackupMessageTest(BaseTestGenerator):
|
||||
cmd="/test_path/pg_dump"
|
||||
),
|
||||
extected_msg="Backing up the global objects on the server "
|
||||
"'test_backup_server (localhost:5444)'...",
|
||||
"'test_backup_server (localhost:5444)'",
|
||||
expetced_details_cmd='/test_path/pg_dump --file "backup_file" '
|
||||
'--host "localhost"'
|
||||
' --port "5444" --username "postgres" '
|
||||
@@ -114,7 +114,7 @@ class BackupMessageTest(BaseTestGenerator):
|
||||
),
|
||||
extected_msg="Backing up an object on the server "
|
||||
"'test_backup_server (localhost:5444)'"
|
||||
" from database 'postgres'...",
|
||||
" from database 'postgres'",
|
||||
expetced_details_cmd='/test_path/pg_dump --file "backup_file" '
|
||||
'--host "localhost" '
|
||||
'--port "5444" --username "postgres" '
|
||||
|
||||
Reference in new issue
Block a user