You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "LauraXia123 (via GitHub)" <gi...@apache.org> on 2026/06/16 08:43:48 UTC
[PR] [#11623] web-v2(UI):Hide catalog properties not present in API response during edit mode [gravitino]
LauraXia123 opened a new pull request, #11675:
URL: https://github.com/apache/gravitino/pull/11675
### What changes were proposed in this pull request?
<img width="2518" height="1698" alt="image" src="https://github.com/user-attachments/assets/48f5ef94-03a7-4349-857d-142e20d3a1c2" />
Fix the CreateCatalogDialog to hide required properties that are not returned in the catalog API response during edit mode. Previously, properties with `parentField` (e.g., `jdbc-user`, `jdbc-password` with `parentField: 'catalog-backend'`) were always shown based on the parent field value, even when the API response didn't include them.
### Why are the changes needed?
When editing a catalog (e.g., `lakehouse-iceberg` with `rest` backend), the API response may not include certain required properties like `jdbc-user` and `jdbc-password`. The form still displayed these fields and required validation, preventing users from submitting the form.
Root cause: The `isHidden` function checked `cacheData.properties` only in the `default` branch, but properties with `parentField` entered different branches (`case 'catalog-backend'`, `case 'authentication.type'`) and bypassed this check.
Fix: #11623
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
- Verify that `jdbc-user` and `jdbc-password` are hidden when editing a `lakehouse-iceberg` catalog with `rest` backend (properties not in API response)
- Verify that these fields are still shown when editing a `lakehouse-iceberg` catalog with `jdbc` backend (properties present in API response)
- Verify that other providers (e.g., `jdbc-mysql`, `hive`) still work correctly in both create and edit modes
--
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
Re: [PR] [#11623] web-v2(UI):Hide catalog properties not present in API response during edit mode [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades merged PR #11675:
URL: https://github.com/apache/gravitino/pull/11675
--
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