liuchunhao opened a new pull request, #5635:
URL: https://github.com/apache/gravitino/pull/5635
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): support xxx"
- "[#233] fix: check null before access result in xxx"
- "[MINOR] refactor: fix typo in variable name"
- "[MINOR] docs: fix typo in README"
- "[#255] test: fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### What changes were proposed in this pull request?
Modified:
- app/metalakes/metalake/rightContent/CreateCatalogDialog.js
- lib/utils/initial.js
### Why are the changes needed?
Iceberg catalog supports hive, jdbc catalog backend in WEB, we need to
support rest catalog backend too, it only supports uri properties.
1. Add select item 'rest' in the dropbox menu.
2. When select rest menu item, only show 'uri' properties edit needs
to input.
### Does this PR introduce _any_ user-facing change?
Yes, this PR introduces web UI changes :
1. Add a selectable item called 'rest' to the dropdown menu when
creating a new catalog.
2. Remove all other properties except 'uri.'
### How was this patch tested?
Visit the Gravitino web UI through the browser and click 'Create Catalog' .
Then, check the menu items and the API call in debug mode.
You can see the HTTP payload sent as follows:
POST http://localhost:3000/api/metalakes/test/catalogs
```json
{
"name": "1",
"type": "relational",
"provider": "lakehouse-iceberg",
"comment": "",
"properties": {
"uri": "1",
"warehouse": "",
"catalog-backend": "rest",
"authType": "simple"
}
}
```
response:
```json
{
"code": 0,
"catalog": {
"name": "1",
"type": "relational",
"provider": "lakehouse-iceberg",
"comment": "",
"properties": {
"catalog-backend": "rest",
"warehouse": "",
"authType": "simple",
"uri": "1",
"in-use": "true"
},
"audit": {
"creator": "anonymous",
"createTime": "2024-11-19T15:16:07.054Z",
"lastModifier": "anonymous",
"lastModifiedTime": "2024-11-19T15:16:07.054Z"
}
}
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]