-
Notifications
You must be signed in to change notification settings - Fork 380
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
Conversation
…ting, editing, and deleting schema
{!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> |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
const searchParams = useSearchParams() | ||
const [isShowBtn, setBtnVisiable] = useState(true) | ||
const [isShowSchemaBtn, setSchemaBtnVisiable] = useState(false) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
8289d30
to
2672742
Compare
…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
What changes were proposed in this pull request?
Add support for creating, editing, and deleting schema
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