dosubot[bot] commented on issue #37864:
URL: https://github.com/apache/superset/issues/37864#issuecomment-3880891527
<!-- Answer -->
Yes, you need to enable both `ALERT_REPORTS_FILTER` and `ALERT_REPORTS_TABS`
for the dashboard filter option to appear in alert reports. The backend only
applies dashboard filter parameters if `ALERT_REPORTS_TABS` is enabled, and the
frontend UI for filter selection is shown only when both flags are on. Also,
make sure `ALERT_REPORTS` is enabled, as it's required for any alert/report
features to work at all. Your `superset_config.py` should include:
```python
FEATURE_FLAGS = {
"ALERT_REPORTS": True,
"ALERT_REPORTS_TABS": True,
"ALERT_REPORTS_FILTER": True,
# ...other flags
}
```
After updating your config, restart your Superset instance. If you still
don't see the filter option, clear your browser cache and ensure all nodes (if
running in multi-node) have the updated config.
More details and code references are in [the PR introducing this
feature](https://github.com/apache/superset/pull/32196) and in [related
discussions](https://github.com/apache/superset/issues/35624).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/b1ff6d13-2d99-4ace-a2a9-2fb8f116e516?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/b1ff6d13-2d99-4ace-a2a9-2fb8f116e516?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/b1ff6d13-2d99-4ace-a2a9-2fb8f116e516?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/b1ff6d13-2d99-4ace-a2a9-2fb8f116e516?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/b1ff6d13-2d99-4ace-a2a9-2fb8f116e516?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/b1ff6d13-2d99-4ace-a2a9-2fb8f116e516?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/b1ff6d13-2d99-4ace-a2a9-2fb8f116e516?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=Yes%2C%20you%20need%20to%20enable%20both%20%60ALERT_REPORTS_FILTER%60%20and%20%60ALERT_REPORTS_TABS%60%20for%20the%20dashboard%20filter%20option%20to%20appear%20in%20alert%20reports.%20The%20backend%20only%20applies%20dashboard%20filter%20parameters%20if%20%60ALERT_REPORTS_TABS%60%20is%20enabled%2C%20and%20the%20frontend%20UI%20for%20filter%20selection%20is%20shown%20only%20when%20both%20flags%20are%20on.%20Also%2C%20make%20sure%20%60ALERT_REPORTS%60%20is%20enabled%2C%20as%20it%27s%20required%20for%20any%20alert/report%20features%20to%20work%20at%20all.%20Your%20%60superset_config.py%60%20should%20include%3A%0A%0A%60%60%60python%0AFEATURE_FLAGS%20%3D%20%7B%0A%20%20%20%20%22ALERT_REPORTS%22%3A%20True%2C%0A%20%20%20%20%22ALERT_REPORTS_TABS%22%3A%20Tr
ue%2C%0A%20%20%20%20%22ALERT_REPORTS_FILTER%22%3A%20True%2C%0A%20%20%20%20%23%20...other%20flags%0A%7D%0A%60%60%60%0A%0AAfter%20updating%20your%20config%2C%20restart%20your%20Superset%20instance.%20If%20you%20still%20don%27t%20see%20the%20filter%20option%2C%20clear%20your%20browser%20cache%20and%20ensure%20all%20nodes%20%28if%20running%20in%20multi-node%29%20have%20the%20updated%20config.%20%20%0AMore%20details%20and%20code%20references%20are%20in%20%5Bthe%20PR%20introducing%20this%20feature%5D%28https%3A//github.com/apache/superset/pull/32196%29%20and%20in%20%5Brelated%20discussions%5D%28https%3A//github.com/apache/superset/issues/35624%29.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37864)
--
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]