codeant-ai-for-open-source[bot] commented on PR #38910:
URL: https://github.com/apache/superset/pull/38910#issuecomment-4142363882

   ## **Sequence Diagram**
   
   This PR changes how cache timeouts are chosen for chart data requests so 
that native filter option queries use the filter state cache timeout when 
available, falling back to the existing data cache timeout or global default 
for other cases.
   
   ```mermaid
   sequenceDiagram
       participant Dashboard
       participant ChartDataAPI
       participant QueryProcessor
       participant Config
   
       Dashboard->>ChartDataAPI: Request chart data with form data
       ChartDataAPI->>QueryProcessor: Build query context and get cache timeout
       QueryProcessor->>Config: Read filter state and data cache configs
   
       alt Native filter option query and filter state timeout set
           QueryProcessor-->>ChartDataAPI: Return filter state cache timeout
       else Other queries or no filter state timeout
           QueryProcessor-->>ChartDataAPI: Return data cache timeout or default
       end
   
       ChartDataAPI-->>Dashboard: Respond with data and cache timeout
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


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