This is an automated email from the ASF dual-hosted git repository.

diqiu50 pushed a commit to branch branch-1.2
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-1.2 by this push:
     new 52710c4dc8 [Cherry-pick to branch-1.2] [#10837] fix(web-v2): Preserve 
hidden properties when editing a catalog (#10838) (#10890)
52710c4dc8 is described below

commit 52710c4dc824d367c1d52c46865aec4777644207
Author: Yuhui <[email protected]>
AuthorDate: Wed Apr 29 11:41:02 2026 +0800

    [Cherry-pick to branch-1.2] [#10837] fix(web-v2): Preserve hidden 
properties when editing a catalog (#10838) (#10890)
    
    **Cherry-pick Information:**
    - Original commit: 954eb5814
    - Target branch: `branch-1.2`
    - Status: ✅ Clean cherry-pick (no conflicts)
    
    Co-authored-by: Bharath Krishna <[email protected]>
---
 .../web/src/app/catalogs/rightContent/CreateCatalogDialog.js  | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js 
b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js
index b1dab97d56..11ec2de7a1 100644
--- a/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js
+++ b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js
@@ -294,6 +294,17 @@ export default function CreateCatalogDialog({ ...props }) {
         setConfirmLoading(true)
         const submitData = getSubmitData()
         if (editCatalog) {
+          // Backfill hidden default props that the form doesn't render during 
edit
+          const allDefaultProps =
+            (catalogType === 'model'
+              ? providerBase['model'].defaultProps
+              : providerBase[currentProvider]?.defaultProps) || []
+          allDefaultProps.forEach(prop => {
+            if (isHidden(prop) && !(prop.key in submitData.properties) && 
cacheData?.properties?.[prop.key] != null) {
+              submitData.properties[prop.key] = cacheData.properties[prop.key]
+            }
+          })
+
           // update catalog
           const reqData = { updates: genUpdates(cacheData, submitData) }
           if (reqData.updates.length) {

Reply via email to