This is an automated email from the ASF dual-hosted git repository.
lauraxia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 551586400e [#9977] web-v2(UI): Should display function list under
message/fileset/model schema (#9979)
551586400e is described below
commit 551586400eb55dfd02e7580e3c7abe2a196498c8
Author: Qian Xia <[email protected]>
AuthorDate: Thu Feb 12 15:42:40 2026 +0800
[#9977] web-v2(UI): Should display function list under
message/fileset/model schema (#9979)
### What changes were proposed in this pull request?
<img width="2846" height="1864" alt="image"
src="https://github.com/user-attachments/assets/889dd204-4a44-493b-98c4-ddeeddb1399e"
/>
<img width="2850" height="1864" alt="image"
src="https://github.com/user-attachments/assets/694e4aa1-629f-4d66-904f-bab6909fd974"
/>
### Why are the changes needed?
N/A
Fix: #9977
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
manually
---
.../entitiesContent/SchemaDetailsPage.js | 18 ++++++++++++++---
web-v2/web/src/lib/store/metalakes/index.js | 23 ----------------------
2 files changed, 15 insertions(+), 26 deletions(-)
diff --git
a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
index aad47d5d25..f1f96bf72c 100644
---
a/web-v2/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
+++
b/web-v2/web/src/app/catalogs/rightContent/entitiesContent/SchemaDetailsPage.js
@@ -144,9 +144,13 @@ export default function SchemaDetailsPage() {
anthEnable
? [
{ label: 'Topics', key: 'Topics' },
+ { label: 'Functions', key: 'Functions' },
{ label: 'Associated roles', key: 'Associated roles' }
]
- : [{ label: 'Topics', key: 'Topics' }]
+ : [
+ { label: 'Topics', key: 'Topics' },
+ { label: 'Functions', key: 'Functions' }
+ ]
)
setTabKey('Topics')
setCreateBtn('Create Topic')
@@ -158,9 +162,13 @@ export default function SchemaDetailsPage() {
anthEnable
? [
{ label: 'Filesets', key: 'Filesets' },
+ { label: 'Functions', key: 'Functions' },
{ label: 'Associated roles', key: 'Associated roles' }
]
- : [{ label: 'Filesets', key: 'Filesets' }]
+ : [
+ { label: 'Filesets', key: 'Filesets' },
+ { label: 'Functions', key: 'Functions' }
+ ]
)
setTabKey('Filesets')
setCreateBtn('Create Fileset')
@@ -172,9 +180,13 @@ export default function SchemaDetailsPage() {
anthEnable
? [
{ label: 'Models', key: 'Models' },
+ { label: 'Functions', key: 'Functions' },
{ label: 'Associated roles', key: 'Associated roles' }
]
- : [{ label: 'Models', key: 'Models' }]
+ : [
+ { label: 'Models', key: 'Models' },
+ { label: 'Functions', key: 'Functions' }
+ ]
)
setTabKey('Models')
setCreateBtn('Register Model')
diff --git a/web-v2/web/src/lib/store/metalakes/index.js
b/web-v2/web/src/lib/store/metalakes/index.js
index a6d068baab..2d658023ca 100644
--- a/web-v2/web/src/lib/store/metalakes/index.js
+++ b/web-v2/web/src/lib/store/metalakes/index.js
@@ -291,15 +291,6 @@ export const setIntoTreeNodeWithFetch = createAsyncThunk(
})
: []
- if (funcResult.status === 'rejected') {
- console.warn('Failed to load functions for schema tree node', {
- metalake,
- catalog,
- schema,
- error: funcResult.reason
- })
- }
-
let entities = []
if (entityResult.status === 'fulfilled' && entityResult.value) {
switch (type) {
@@ -372,20 +363,6 @@ export const setIntoTreeNodeWithFetch = createAsyncThunk(
default:
break
}
- } else if (entityResult.status === 'rejected') {
- console.warn('Failed to load entities for schema tree node', {
- metalake,
- catalog,
- schema,
- type,
- error: entityResult.reason
- })
- }
-
- if (funcResult.status === 'rejected' && entityResult.status ===
'rejected') {
- const funcMessage = funcResult.reason?.message || funcResult.reason
- const entityMessage = entityResult.reason?.message ||
entityResult.reason
- throw new Error(funcMessage || entityMessage)
}
result.data = [...entities, ...functions]