This is an automated email from the ASF dual-hosted git repository.
lauraxia pushed a commit to branch antdUI-gravitino-base1.1.0
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/antdUI-gravitino-base1.1.0 by
this push:
new 656c73434d [#9625][#9626] fix edit table and edit topic name issue
656c73434d is described below
commit 656c73434dd5278f177d0f19c5e45bfbdb5c1b3b
Author: Qian Xia <[email protected]>
AuthorDate: Mon Jan 5 17:56:44 2026 +0800
[#9625][#9626] fix edit table and edit topic name issue
---
web/web/src/app/catalogs/rightContent/CreateTableDialog.js | 8 ++++----
web/web/src/app/catalogs/rightContent/CreateTopicDialog.js | 2 +-
.../catalogs/rightContent/entitiesContent/SchemaDetailsPage.js | 8 ++++----
web/web/src/lib/store/metalakes/index.js | 2 ++
4 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/web/web/src/app/catalogs/rightContent/CreateTableDialog.js
b/web/web/src/app/catalogs/rightContent/CreateTableDialog.js
index 525d9497bc..f46a0ab50b 100644
--- a/web/web/src/app/catalogs/rightContent/CreateTableDialog.js
+++ b/web/web/src/app/catalogs/rightContent/CreateTableDialog.js
@@ -492,8 +492,8 @@ export default function CreateTableDialog({ ...props }) {
if (item.comment) {
f.comment = item.comment
}
-
-return f
+
+ return f
})
}
case 'union':
@@ -685,7 +685,7 @@ return f
}
await dispatch(createTable({ data: submitData, metalake, catalog,
schema, catalogType }))
}
- init && treeRef.current.onLoadData({ key: `${catalog}/${schema}`,
nodeType: 'schema' })
+ treeRef.current.onLoadData({ key: `${catalog}/${schema}`, nodeType:
'schema' })
setConfirmLoading(false)
setOpen(false)
})
@@ -1276,7 +1276,7 @@ return f
label='Table Name'
rules={[{ required: true }, { type: 'string', max: 64 }, {
pattern: new RegExp(nameRegex) }]}
>
- <Input data-refer='table-name-field'
placeholder={mismatchName} disabled={!init} />
+ <Input data-refer='table-name-field'
placeholder={mismatchName} disabled={init} />
</Form.Item>
<Tabs activeKey={tabKey} onChange={onChangeTab}
items={tabOptions} />
<Form.Item
diff --git a/web/web/src/app/catalogs/rightContent/CreateTopicDialog.js
b/web/web/src/app/catalogs/rightContent/CreateTopicDialog.js
index a84fd48b78..143e03d46b 100644
--- a/web/web/src/app/catalogs/rightContent/CreateTopicDialog.js
+++ b/web/web/src/app/catalogs/rightContent/CreateTopicDialog.js
@@ -188,7 +188,7 @@ export default function CreateTopicDialog({ ...props }) {
label='Topic Name'
rules={[{ required: true }, { type: 'string', max: 64 }, {
pattern: new RegExp(nameRegex) }]}
>
- <Input data-refer='topic-name-field'
placeholder={mismatchName} disabled={!init} />
+ <Input data-refer='topic-name-field'
placeholder={mismatchName} disabled={!!editTopic} />
</Form.Item>
<Form.Item name='comment' label='Comment'>
<TextArea data-refer='topic-comment-field' />
diff --git
a/web/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
b/web/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
index 8f14d33e4a..6b64ee5228 100644
--- a/web/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
+++ b/web/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
@@ -611,7 +611,7 @@ export default function SchemaDetailsPage() {
provider={catalogData?.provider}
schema={schema}
editTable={editTable}
- init={true}
+ init={false}
catalogLocation={catalogData?.properties?.location}
schemaLocation={store.activatedDetails?.properties?.location}
/>
@@ -626,7 +626,7 @@ export default function SchemaDetailsPage() {
schema={schema}
locationProviders={catalogData?.properties?.['filesystem-providers']?.split(',')
|| []}
editFileset={editFileset}
- init={true}
+ init={false}
/>
)}
{openTopic && (
@@ -638,7 +638,7 @@ export default function SchemaDetailsPage() {
catalogType={catalogType}
schema={schema}
editTopic={editTopic}
- init={true}
+ init={false}
/>
)}
{openModel && (
@@ -650,7 +650,7 @@ export default function SchemaDetailsPage() {
catalogType={catalogType}
schema={schema}
editModel={editModel}
- init={true}
+ init={false}
/>
)}
</>
diff --git a/web/web/src/lib/store/metalakes/index.js
b/web/web/src/lib/store/metalakes/index.js
index a0526ba2b4..ca311ae9f2 100644
--- a/web/web/src/lib/store/metalakes/index.js
+++ b/web/web/src/lib/store/metalakes/index.js
@@ -1031,6 +1031,8 @@ export const updateTable = createAsyncThunk(
await dispatch(setActivatedDetailsLoading(true))
await dispatch(getTableDetails({ init, metalake, catalog, catalogType,
schema, table }))
await dispatch(setActivatedDetailsLoading(false))
+ } else {
+ await dispatch(fetchTables({ metalake, catalog, catalogType, schema,
page: 'schemas', init: true }))
}
return res.table