codeant-ai-for-open-source[bot] commented on PR #38568:
URL: https://github.com/apache/superset/pull/38568#issuecomment-4054648532
## **Sequence Diagram**
This PR adds a configurable allowlist for Time Grain native filters.
Dashboard authors can save a selected subset of time grains, and at runtime the
filter shows only that subset while keeping legacy behavior when no allowlist
is stored.
```mermaid
sequenceDiagram
participant Author as Dashboard Author
participant Config as Filter Config UI
participant Dataset as Dataset Metadata
participant Store as Dashboard Configuration
participant Runtime as Filter Runtime
Author->>Config: Open time grain filter settings
Config->>Dataset: Load supported time grains
Dataset-->>Config: Return available time grains
Author->>Config: Select allowed grains and save
Config->>Store: Persist time_grains when subset selected
Runtime->>Store: Load filter settings and time grains
alt time grains configured
Runtime->>Runtime: Apply allowlist to time grain options
else time grains missing
Runtime->>Runtime: Keep all available time grains
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]