bharos opened a new pull request, #11160: URL: https://github.com/apache/gravitino/pull/11160
### What changes were proposed in this pull request? Add view support to the web-v2 UI for relational catalogs. This includes: - **API client** (`lib/api/views/index.js`): `getViewsApi` and `getViewDetailsApi` functions with proper `encodeURIComponent` encoding - **Redux store** (`lib/store/metalakes/index.js`): `fetchViews` and `getViewDetails` async thunks, `views: []` state, tree node merging helpers (`mergeWithViewNodes`), views fetched alongside tables/functions in `setIntoTreeNodeWithFetch` - **Tree sidebar** (`TreeComponent.js`): View nodes rendered with `mdi:eye-outline` icon - **Routing** (`page.js`, `RightContent.js`): View data fetching at schema level, view details loading at entity level, `ViewDetailsPage` dynamic import - **View details page** (`ViewDetailsPage.js`): Header with metadata, three tabs (Columns with search/filter/resize/pagination, SQL with Descriptions, Properties) - **Schema details page** (`SchemaDetailsPage.js`): Views tab added for relational catalogs with search and table listing (no Create View button — deferred to #11158) ### Why are the changes needed? Relational catalogs (e.g., Iceberg, Hive) support views, but the web-v2 UI had no way to browse or inspect them. Users could only see tables and functions. This PR adds first-class view browsing support. Fix: #11157 ### Does this PR introduce _any_ user-facing change? Yes: 1. Views now appear in the tree sidebar under relational catalog schemas 2. Clicking a view shows its details (columns, SQL definition, properties) 3. Schema detail page has a new "Views" tab listing all views in the schema ### How was this patch tested? Manual testing against a local Gravitino server (1.3.0-SNAPSHOT) with an Iceberg catalog: 1. Created a metalake, catalog, and schema 2. Verified views appear in the tree sidebar with eye icon 3. Verified Views tab appears on schema detail page for relational catalogs 4. Verified view details page renders columns, SQL, and properties tabs 5. Verified search filtering works in both Views tab and Columns tab 6. Verified URL routing works correctly for direct navigation to views -- 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]
