j1wonpark opened a new pull request, #4075:
URL: https://github.com/apache/amoro/pull/4075

   ## Why are the changes needed?
   
   When a table is deleted or no longer exists, the UI may still attempt to 
load it from stale cache (`localStorage`), causing a "Table does not exist" 
error. This creates a poor user experience as the UI gets stuck trying to load 
a non-existent table.
   
   This fix ensures that when a table is not found:
   1. The stale cache entry is cleared from `localStorage`
   2. The user is redirected to the tables list page
   3. The component state is properly reset
   
   ## Brief change log
   
   - **amoro-web/src/views/tables/components/Details.vue**:
     - Added `tableNotFound` emit event to notify parent component when table 
doesn't exist
     - Clear `localStorage` cache when API returns "not exist" or "not found" 
error
     - Redirect to `/tables` page when table is not found
   
   - **amoro-web/src/views/tables/index.vue**:
     - Added `handleTableNotFound` handler to reset `baseInfo` state
     - Connected the `tableNotFound` event from `UDetails` component
   
   ## How was this patch tested?
   
   - [x] Run test locally before making a pull request
   
   - [x] Add screenshots for manual tests if appropriate
     - Manually tested by deleting a table while viewing it in the UI
     - Verified that the stale cache is cleared and user is redirected properly
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   - If yes, how is the feature documented? not applicable>>


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