Skip to content

Commit 3fe4857

Browse files
Fix review comments.
1 parent 34fad53 commit 3fe4857

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/en_US/restore_dialog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ restore process:
2727

2828
* Select *Custom or tar* to restore from a custom archive file to create a
2929
copy of the backed-up object.
30+
* Select *Plain* to restore a plain SQL backup. When selecting this option
31+
all the other options will not be applicable.
3032
* Select *Directory* to restore from a compressed directory-format archive.
3133

3234
* Enter the complete path to the backup file in the *Filename* field.

web/pgadmin/static/js/SchemaView/FormViewTab.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import PropTypes from 'prop-types';
1515

1616
export default function FormViewTab({tabGroup, idx, tabValue, ...props}) {
1717
const accessPath = [tabGroup.id];
18-
const [, setRefreshKey] = useState(0);
18+
const [refreshKey, setRefreshKey] = useState(0);
1919
const subscriberManager = useSchemaStateSubscriber(setRefreshKey);
2020
const schemaState = useContext(SchemaStateContext);
2121
const options = useFieldOptions(accessPath, schemaState, subscriberManager);
2222

2323
return (
2424
<Tab
25-
key={tabGroup.id}
25+
key={refreshKey}
2626
label={tabGroup.label}
2727
data-test={tabGroup.id}
2828
iconPosition='start'

web/pgadmin/tools/restore/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ def get_sql_util_args(data, manager, server, filepath):
358358
:param data: Data.
359359
:param manager: Manager.
360360
:param server: Server.
361-
:param driver: Driver.
362-
:param conn: Connection.
363361
:param filepath: File.
364362
:return: args list.
365363
"""

web/pgadmin/tools/restore/tests/test_restore_create_job_unit_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
4141
database='postgres'
4242
),
4343
url=RESTORE_JOB_URL,
44-
expected_cmd='/psql',
44+
expected_cmd='psql',
4545
expected_cmd_opts=['--file'],
4646
not_expected_cmd_opts=[],
4747
expected_exit_code=[0, None]

0 commit comments

Comments
 (0)