You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "eschutho (via GitHub)" <gi...@apache.org> on 2026/02/28 02:03:45 UTC
[D] Add pre-filter option to Time Grain dashboard control [superset]
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 notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Add pre-filter option to Time Grain dashboard control [superset]
Posted by "sonfire186 (via GitHub)" <gi...@apache.org>.
GitHub user sonfire186 added a comment to the discussion: Add pre-filter option to Time Grain dashboard control
https://github.com/apache/superset/pull/42849
GitHub link: https://github.com/apache/superset/discussions/38306#discussioncomment-17922903
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Add pre-filter option to Time Grain dashboard control [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
GitHub user rusackas added a comment to the discussion: Add pre-filter option to Time Grain dashboard control
<img src="https://static.klipy.com/ii/8ce8357c78ea940b9c2015daf05ce1a5/bd/d8/ptr1vGfy.gif"/>
GitHub link: https://github.com/apache/superset/discussions/38306#discussioncomment-17843609
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Add pre-filter option to Time Grain dashboard control [superset]
Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
GitHub user betodealmeida added a comment to the discussion: Add pre-filter option to Time Grain dashboard control
A few comments:
- To get the list of available time grains it should be possible to reuse the dataset API: `GET /api/v1/dataset/{id}`
- Once we have the available time grains we can create a multi-select dropdown, with all grains enabled by default.
- The valid time grains should be stored in the dashboard model with the other configuration for the filter (`dashboard.json_metadata['native_filter_configuration']`).
- If all time grains are selected we shouldn't store anything.
- If only some time grains are selected we should store them in a new key inside `native_filter_configuration`.
- When the filter loads, if the new key is present it should render only those time grains.
```json
{
"native_filter_configuration": {
"custom_time_grains": [ { ... }, { ... } ], // omit when all time grains are selected
...
}
}
```
GitHub link: https://github.com/apache/superset/discussions/38306#discussioncomment-16015810
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Add pre-filter option to Time Grain dashboard control [superset]
Posted by "eschutho (via GitHub)" <gi...@apache.org>.
GitHub user eschutho edited 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 **Limit time grain options** 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 values should also include the time grain add-ons from configs. This should look like a multi-select filter on the dashboard level where user can select Week, Day, etc. It should not ask the user to add another filter (ie value > 1 week) like the current Pre-filter available values option does.
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 notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Add pre-filter option to Time Grain dashboard control [superset]
Posted by "eschutho (via GitHub)" <gi...@apache.org>.
GitHub user eschutho edited 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 **Customize time grains to display** 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 values should also include the time grain add-ons from configs. This should look like a multi-select filter on the dashboard level where user can select Week, Day, etc. It should not ask the user to add another filter (ie value > 1 week) like the current Pre-filter available values option does.
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 notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Add pre-filter option to Time Grain dashboard control [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
GitHub user sfirke added a comment to the discussion: Add pre-filter option to Time Grain dashboard control
I agree with everything written here by @eschutho and @betodealmeida. I desire this feature for my use case, where our water scientists need the lowest-possible time grain, but it's not appropriate to expose that time grain to the public on e.g., our public-facing rain gauges dashboard. This feature proposal would solve this problem by allowing me to restrict the time grain choices on public-facing dashboards, reducing clutter and confusion for less-technical members of the general public.
GitHub link: https://github.com/apache/superset/discussions/38306#discussioncomment-17841213
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Add pre-filter option to Time Grain dashboard control [superset]
Posted by "eschutho (via GitHub)" <gi...@apache.org>.
GitHub user eschutho edited 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 **Customize time grains to display** 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 values should also include the time grain add-ons from configs.
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 notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org