Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#5141][#5142][#5143] web(ui): Add support for creating, editing, and deleting schema #5164

Merged
merged 10 commits into from
Oct 22, 2024

Conversation

LauraXia123
Copy link
Collaborator

@LauraXia123 LauraXia123 commented Oct 17, 2024

What changes were proposed in this pull request?

Add support for creating, editing, and deleting schema
image
image
image
image
image
image

Why are the changes needed?

N/A

Fix: #5141, #5142, #5143

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

manually

@jerryshao jerryshao changed the title [#5141][#5142][#5143] web(ui): Add support for creating, editing, and… [#5141][#5142][#5143] web(ui): Add support for creating, editing, and deleting schema Oct 21, 2024
Comment on lines 271 to 292
{!isKafkaSchema && (
<IconButton
title='Edit'
size='small'
sx={{ color: theme => theme.palette.text.secondary }}
onClick={() => handleShowEditDialog({ row, type: row.node })}
data-refer={`edit-entity-${row.name}`}
>
<EditIcon />
</IconButton>
)}

{!isKafkaSchema && (
<IconButton
title='Delete'
size='small'
sx={{ color: theme => theme.palette.error.light }}
onClick={() => handleDelete({ name: row.name, type: row.node, catalogType: row.type })}
data-refer={`delete-entity-${row.name}`}
>
<DeleteIcon />
</IconButton>
Copy link
Contributor

Choose a reason for hiding this comment

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

Currently, we cannot edit or delete hudi schema, am I right @mchades ?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes

@LauraXia123 LauraXia123 reopened this Oct 21, 2024
const searchParams = useSearchParams()
const [isShowBtn, setBtnVisiable] = useState(true)
const [isShowSchemaBtn, setSchemaBtnVisiable] = useState(false)
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 should be "Visible", right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's visible when view the schema page, it's unvisible when view other pages.
The judgment condition is implemented in lines 54 to 57.

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean "visiable" is a typo we need to fix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@jerryshao jerryshao merged commit ab3e7cd into apache:main Oct 22, 2024
23 checks passed
mplmoknijb pushed a commit to mplmoknijb/gravitino that referenced this pull request Nov 6, 2024
…ting, editing, and deleting schema (apache#5164)

### What changes were proposed in this pull request?
Add support for creating, editing, and deleting schema
<img width="831" alt="image"
src="https://github.com/user-attachments/assets/8194b0e1-0da4-4ed3-967a-3f7467745681">
<img width="1168" alt="image"
src="https://github.com/user-attachments/assets/e4735560-c928-4bbc-8452-aab82a0559b1">
<img width="613" alt="image"
src="https://github.com/user-attachments/assets/90c04707-a0be-47dc-a425-233759eab84f">
<img width="752" alt="image"
src="https://github.com/user-attachments/assets/59ec3f21-b3f9-4a2d-bf0b-44c396db1555">
<img width="954" alt="image"
src="https://github.com/user-attachments/assets/6b7993c1-9848-435e-8cc0-874f3a70195b">
<img width="1149" alt="image"
src="https://github.com/user-attachments/assets/889287f1-d4e9-45b2-8e7b-18970b42f108">


### Why are the changes needed?
N/A

Fix: apache#5141, apache#5142, apache#5143

### Does this PR introduce _any_ user-facing change?
N/A

### How was this patch tested?
manually
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 support for creating schema UI
3 participants