msyavuz opened a new pull request, #35264:
URL: https://github.com/apache/superset/pull/35264

   ### SUMMARY
   Implements dataset cache clearing functionality to ensure fresh data is 
fetched after dataset modifications. This addresses potential stale data issues 
where cached API responses were not being invalidated when datasets were 
updated.
   
   **Key Changes:**
   - Added `datasetCache.ts` utility with functions to clear cached API 
responses for specific datasets
   - Integrated cache clearing in `SaveDatasetModal` after dataset updates  
   - Integrated cache clearing in `DatasourceModal` and `DatasourceEditor` 
components
   - Ensures that any subsequent API calls fetch fresh data from the server
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   N/A - This is a backend caching improvement with no visible UI changes
   
   ### TESTING INSTRUCTIONS
   1. Navigate to SQL Lab and create/modify a dataset
   2. Open the dataset in the datasource editor and make changes
   3. Verify that the changes are immediately reflected without requiring a 
page refresh
   4. Test saving datasets from SQL Lab and confirm fresh data is loaded
   5. Check browser network tab to verify cache invalidation is working (no 
stale cached responses)
   
   ### ADDITIONAL INFORMATION
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [x] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   🤖 Generated with [Claude Code](https://claude.ai/code)


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to