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

   ## **Sequence Diagram**
   
   This PR lets dashboard authors pre-select which time grain options are 
available in a native time grain filter and ensures those selections are stored 
and used to filter the runtime options while remaining backward compatible.
   
   ```mermaid
   sequenceDiagram
       participant Author as Dashboard author
       participant ConfigUI as Filter config UI
       participant Dataset as Dataset metadata
       participant Storage as Dashboard storage
       participant Viewer as Dashboard viewer
       participant Filter as Time grain filter
   
       Author->>ConfigUI: Open time grain filter config
       ConfigUI->>Dataset: Load supported time grains
       Dataset-->>ConfigUI: Return list of time grain choices
       Author->>ConfigUI: Select subset of allowed time grains
       ConfigUI->>Storage: Save filter config with optional time_grains 
allowlist
   
       Viewer->>Filter: Open time grain filter on dashboard
       Filter->>Storage: Read filter config and data
       alt time_grains allowlist present
           Filter-->>Viewer: Show only allowed time grain options
       else time_grains missing or empty
           Filter-->>Viewer: Show all available time grain options
       end
   ```
   
   ---
   *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