Xiao-zhen-Liu opened a new issue, #5886:
URL: https://github.com/apache/texera/issues/5886

   Parent: #5881 ยท Design: #5880
   
   ## Goal
   
   Show the cache to the user: a panel that lists cache entries, marks the ones 
the current run can use, and lets the user clear them; and canvas markings for 
operators that completed from the cache and ports that have a saved result. 
Largest PR by line count, lowest risk.
   
   ## What is included
   
   - A Cache tab in the left panel listing the workflow's cache entries 
(operator, port, tuple count, source execution, last updated, short cache key), 
with a filter for entries the current run can use and a button to clear all.
   - Services that subscribe to the cache websocket events and drive the panel 
and the per-port labels.
   - Canvas: cached operators shown in a distinct color, cached output ports 
marked, an operator that completed from the cache shown in the new state, and 
worker count reading "from cache".
   - Context-menu actions to clear the cache for a selected operator, or for it 
and the operators upstream of it.
   - After the editor validates a workflow, entries whose cache key no longer 
matches are removed, with a toggle to turn that off and a notice when it 
happens.
   - TypeScript types for the cache entry and the two websocket events.
   
   ## Why this is safe
   
   The pieces are additive. If the backend sends no cache events, the panel is 
empty and the canvas markings stay hidden, so a workflow that does not use the 
cache looks and behaves as today. The result location is never sent to the UI. 
The one shared-code touch is the canvas port markup, which also touches the 
connection-validation code used by every workflow.
   
   ## Depends on
   
   PR 4 (the cache events and endpoints the UI reads). Best merged last, when 
the backend is live.
   
   ## Out of scope
   
   Any backend behavior (PRs 1 to 4). Cost or eviction controls.
   
   ## Notes
   
   The validate-time invalidation adds one network call after the editor 
validates a workflow; it is guarded by a toggle and its failures are ignored, 
and it can be split into a follow-up PR if reviewers prefer the read-only panel 
to land first. One unused helper (`setShowRegion`) will be removed before this 
PR.
   
   ## Size
   
   About 1,450 lines of code, plus tests.


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