You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "Copilot (via GitHub)" <gi...@apache.org> on 2026/06/01 02:56:42 UTC
Re: [PR] [#11245] web-v2(Improvement): UI supports hierarchical schemasupport [gravitino]
Copilot commented on code in PR #11257:
URL: https://github.com/apache/gravitino/pull/11257#discussion_r3331447639
##########
web-v2/web/src/app/catalogs/rightContent/entitiesContent/SharedSchemaColumns.js:
##########
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+'use client'
+
+import React from 'react'
+import Link from 'next/link'
+import { Tooltip, Dropdown } from 'antd'
+import Tags from '@/components/CustomTags'
+import Policies from '@/components/PolicyTag'
+import Icons from '@/components/Icons'
+import TableActions from '@/components/TableActions'
+
Review Comment:
`TableActions` is imported but never used in this shared columns module, which will fail lint/typecheck in many setups. Remove the unused import.
##########
web-v2/web/src/lib/store/metalakes/index.js:
##########
@@ -827,12 +862,12 @@ export const switchInUseCatalog = createAsyncThunk(
export const fetchSchemas = createAsyncThunk(
'appMetalakes/fetchSchemas',
- async ({ init, page, metalake, catalog, catalogType }, { getState, dispatch }) => {
+ async ({ init, page, metalake, catalog, catalogType, parentSchema }, { getState, dispatch }) => {
if (init) {
await dispatch(resetTableData())
await dispatch(setTableLoading(true))
}
- const [err, res] = await to(getSchemasApi({ metalake, catalog }))
+ const [err, res] = await to(getSchemasApi({ metalake, catalog, parentSchema }))
await dispatch(setTableLoading(false))
if (err || !res) {
Review Comment:
`fetchSchemas` now supports `parentSchema`, but the canceled-request fallback below still reads cached children from the catalog node only. When listing subschemas (`parentSchema` set), this path will miss cached children and still throw. Use the computed parent key to locate cached schemas under the correct parent node (and expand it when applicable).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org