Skip to content

[#990] feat(UI): Add create catalog in webUI#991

Merged
jerryshao merged 5 commits intoapache:mainfrom
ch3yne:issue-ch3yne-create-catalog-990
Dec 7, 2023
Merged

[#990] feat(UI): Add create catalog in webUI#991
jerryshao merged 5 commits intoapache:mainfrom
ch3yne:issue-ch3yne-create-catalog-990

Conversation

@ch3yne
Copy link
Contributor

@ch3yne ch3yne commented Dec 6, 2023

What changes were proposed in this pull request?

Create a catalog with actual data in the web UI.
image

Why are the changes needed?

Fix: #990

Does this PR introduce any user-facing change?

No

How was this patch tested?

No

@ch3yne ch3yne requested review from jerryshao and xunliu December 6, 2023 10:08
@ch3yne ch3yne self-assigned this Dec 6, 2023
@github-actions
Copy link

github-actions bot commented Dec 6, 2023

Code Coverage Report

Overall Project 65.7% 🟢

There is no coverage information present for the Files changed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does RightContent mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It signifies the right part section, and it can be altered to be named TableContent.

const { propItems, ...mainData } = data

const properties = innerProps.reduce((acc, item) => {
acc[item.key] = item.value
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a better variable name than acc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The full name is accumulator, but it's too long, so we just call it acc.

error={Boolean(errors.provider)}
labelId='select-catalog-provider'
>
<MenuItem value={'hive'}>hive</MenuItem>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we needs add another provider list in here, like jdbc-mysql, jdbc-postgresql, and iceberg.
@FANNG1 , @Clearvive , Please help double check these names if correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lakehouse-iceberg not iceberg

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be changed to the following

<MenuItem value={'lakehouse-iceberg'}>iceberg</MenuItem>
<MenuItem value={'jdbc-mysql'}>mysql</MenuItem>
<MenuItem value={'jdbc-postgresql'}>postgresql</MenuItem>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, I will incorporate these values.

@xunliu xunliu changed the title [#990] Add create catalog in webUI [#990] feat(UI): Add create catalog in webUI Dec 6, 2023
@jerryshao jerryshao added this to the Gravitino 0.3.0 milestone Dec 6, 2023
@jerryshao jerryshao closed this Dec 7, 2023
@jerryshao jerryshao reopened this Dec 7, 2023

const [innerProps, setInnerProps] = useState([
{
key: 'metastore.uris',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"metastore.uris" is the required property for hive catalog. And for different catalogs, they have different required properties, you can check with @mchades to get all the required properties for different catalogs.

Copy link
Contributor Author

@ch3yne ch3yne Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Clearvive Please review the outcome.

hive:
image

iceberg:
image

mysql:
image

postgresql:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mysql:
image

postgresql:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iceberg--catalog-backend--hive:
image

iceberg--catalog-backend--jdbc:
image

@ch3yne ch3yne force-pushed the issue-ch3yne-create-catalog-990 branch from 66b739a to 8e6cf94 Compare December 7, 2023 08:26
@jerryshao jerryshao merged commit fa6a82a into apache:main Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Subtask] Add create catalog in webUI

5 participants