GitHub user eschutho created a discussion: Add pre-filter option to Time Grain 
dashboard control

For time grain controls, some users don't need all the values, or they just 
aren't applicable. 
<img width="604" height="602" alt="image" 
src="https://github.com/user-attachments/assets/eb41a41e-30e7-4b78-9cb6-755ff35916bd";
 />
We'd like to add the ability to limit the options that are available in this 
control, as for example, not all dashboards would have hourly data.

## Proposed Solution

We'd like to add the **Pre-filter available values** option to the Time Grain 
control:
<img width="596" height="438" alt="image" 
src="https://github.com/user-attachments/assets/558c4c54-9196-43a8-a414-ac49dee024ad";
 />
 
The dropdown should list all supported time grains for the dataset, allowing 
users to specify which ones should be visible.
These are the configurations currently available:

<img width="599" height="601" alt="image" 
src="https://github.com/user-attachments/assets/0cbd4d17-237c-470e-8113-95a5e9ef3a2a";
 />

## Consideration

This functionality shouldn't affect existing assets (so the new control should 
have an “undefined” value for complete backwards compatibility). There should 
also be full export/import and API support (which is likely already standard by 
being a filter config).

GitHub link: https://github.com/apache/superset/discussions/38306

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to