ayush786hack opened a new pull request, #14917:
URL: https://github.com/apache/gravitino/pull/14917
### What changes were proposed in this pull request?
This PR restores basic column metadata visibility and management support in
Gravitino Web UI V2.
Changes include:
1. Added the following metadata columns to the table details page:
- Nullable
- AutoIncrement
- Default Value
- Comment
2. Added a column settings popover to toggle the visibility of these
metadata columns.
3. Enabled AutoIncrement editing for supported column types in the table
edit dialog.
4. Added AutoIncrement update generation using `updateColumnAutoIncrement`.
5. Added default-value normalization to preserve literal, field, function,
and unparsed expressions during table updates.
6. Added unit tests covering AutoIncrement update generation.
### Why are the changes needed?
Currently, the Columns section in Web UI V2 displays only Column Name, Data
Type, Tags, and Policies.
Unlike Web UI V1, users cannot easily view or manage important column
properties such as nullability, auto-increment behavior, default values, and
comments.
This PR addresses the missing metadata functionality and improves schema
management usability in Web UI V2.
Fixes #11547
### Does this PR introduce any user-facing change?
Yes.
1. Users can view column comments, nullable status, auto-increment status,
and default values.
2. Users can toggle the visibility of these metadata columns through Column
Settings.
3. Users can modify AutoIncrement for supported column types when editing a
table.
4. Existing default-value expressions are normalized to preserve their
supported expression structures during table updates.
### How was this patch tested?
**Automated checks:**
- ESLint passed for all four modified/new JavaScript files.
- Vitest passed: 3 tests in `genUpdates.test.js`.
- `git diff --cached --check` passed.
**Suggested manual verification:**
1. Open Web UI V2 and navigate to a table's Columns section.
2. Verify the Nullable, AutoIncrement, Default Value, and Comment columns.
3. Use Column Settings to show and hide these columns.
4. Edit a table and verify supported column metadata updates.
5. Verify that existing default-value expressions are preserved when editing
other column properties.
--
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]