codeant-ai-for-open-source[bot] commented on PR #38568:
URL: https://github.com/apache/superset/pull/38568#issuecomment-4037308686
## **Sequence Diagram**
This diagram shows how dashboard authors configure a subset of allowed time
grain options for a native Time Grain filter and how that configuration is
applied at runtime so end users only see the allowed grains.
```mermaid
sequenceDiagram
participant Author as Dashboard author
participant ConfigUI as Filter configuration UI
participant API as Superset API
participant Runtime as Dashboard runtime
participant TimeGrain as Time Grain filter
Author->>ConfigUI: Open Time Grain filter configuration
ConfigUI->>API: Fetch dataset metadata including time grains
API-->>ConfigUI: Return time_grain_sqla values
Author->>ConfigUI: Select allowed time grains and save
ConfigUI->>API: Save dashboard with time_grains allowlist in native
filter config
Author-->>Runtime: Publish updated dashboard
Runtime->>TimeGrain: Initialize filter with time_grains and datasource
grains
TimeGrain-->>Runtime: Expose only allowed time grain options to end users
```
---
*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]