World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#10837] fix(web-v2): Preserve hidden properties when editing a catalog (#10838)
Bharath Krishna954eb5814d1b
diff --git a/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.js b/web-v2/web/src/app/catalogs/rightContent/CreateCatalogDialog.jsindex b76b936024..9bf9289c5d 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 catalogconst reqData = { updates: genUpdates(cacheData, submitData) }if (reqData.updates.length) {