bharos opened a new pull request, #11300:
URL: https://github.com/apache/gravitino/pull/11300

   ### What changes were proposed in this pull request?
   
   Handle HTTP 405 (Method Not Allowed) responses in the Web UI V2 `fetchViews` 
and `getViewDetails` Redux thunks by returning empty data instead of 
propagating the error as a toast notification.
   
   ### Why are the changes needed?
   
   Relational catalogs that don't implement the `ViewCatalog` interface (e.g., 
MySQL, PostgreSQL, Doris, OceanBase, Fluss) return HTTP 405 when the UI 
attempts to load views. This causes an error toast to appear every time a user 
navigates the metadata tree for these catalogs, even though not supporting 
views is expected behavior.
   
   Fix: #11291
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes — users will no longer see error toasts when browsing catalogs that 
don't support views in Web UI V2.
   
   ### How was this patch tested?
   
   - Local testing with a Paimon filesystem catalog: verified the Views tab 
shows "No data" with no error toast.
   - Verified no console errors after navigating catalog tree and switching 
tabs.
   - Existing view-supporting catalogs (e.g., Iceberg, Hive) are unaffected — 
the 405 check only triggers on non-view catalogs.


-- 
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]

Reply via email to