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

   ## **Sequence Diagram**
   
   This PR lets dashboard authors pre-filter which time grain options are 
available in a native Time Grain filter and applies that allowlist at runtime 
so viewers only see the configured subset.
   
   ```mermaid
   sequenceDiagram
       participant Author
       participant DashboardUI
       participant Backend
       participant Runtime
       participant TimeGrainFilter
       participant Viewer
   
       Author->>DashboardUI: Open Time Grain filter configuration
       DashboardUI->>Backend: Fetch dataset with supported time grains
       Backend-->>DashboardUI: Return dataset time grain list
       Author->>DashboardUI: Select allowed time grains and save
       DashboardUI->>Backend: Save filter config with time_grains allowlist
   
       Viewer->>Runtime: Load dashboard
       Runtime->>TimeGrainFilter: Initialize with filter config and data
       TimeGrainFilter->>TimeGrainFilter: Filter options by time_grains 
allowlist
       TimeGrainFilter-->>Viewer: Render Time Grain select with allowed options
   ```
   
   ---
   *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