apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
1.1k stars 344 forks source link

[#5450] subtask(web): support web ui for creating table (basic column type) #5524

Closed orenccl closed 1 week ago

orenccl commented 2 weeks ago

Proposed Changes in This Pull Request

Why Are These Changes Necessary?

These changes introduce the ability to create tables directly from the UI, improving user experience and efficiency.

Closes: #5450

User-Facing Changes

How Was This Patch Tested?

  1. Started the Gravitino playground.
  2. Ran the web UI to test the create table functionality, as well as the view, edit properties, and delete actions.
  3. Conducted a lint check using Prettier for code formatting.
  4. Built the entire project to ensure no build errors.

2024-11-08 002032

image

image

LauraXia123 commented 1 week ago
image

Failed to create, probably because the submitted data should be deleted hasDuplicateName field.

LauraXia123 commented 1 week ago
image image image

Must have a column by default. Then you can't delete when there is only one column left

orenccl commented 1 week ago

@LauraXia123

Apologies—I should have tested the table creation feature after the latest commit.

I've corrected the issue and added functionality to hide the delete button when there is only one column. Additionally, I set a default value for the columns.

LauraXia123 commented 1 week ago

Thank you very much for your contribution. LGTM

orenccl commented 1 week ago

Thank you very much for your time I will take extra care in future PRs.