GitHub user dosubot[bot] added a comment to the discussion: Alerts and reports feature not working. URL not found
<!-- Answer --> You're right—under normal circumstances, if the `ALERT_REPORTS` feature flag is disabled, both the backend endpoints and the UI menu for Alerts & Reports are hidden, so users shouldn't be able to access those routes at all. However, there are rare cases where a user might see the UI but still get a 404 from the backend: for example, if the frontend is cached or out of sync after a config change, or in a multi-node deployment with inconsistent configs. But in a typical, single-node, freshly restarted deployment, the UI and endpoints are gated together by the flag, and a "URL not found" error would only occur if the flag is disabled or if there's a deployment/config drift issue. The backend checks the flag and returns a 404 if it's off, regardless of what the frontend shows ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/views/alerts.py)). <!-- 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/beb29103-a620-4d86-b686-dd1fcef5ae46?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/beb29103-a620-4d86-b686-dd1fcef5ae46?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/beb29103-a620-4d86-b686-dd1fcef5ae46?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/beb29103-a620-4d86-b686-dd1fcef5ae46?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/beb29103-a620-4d86-b686-dd1fcef5ae46?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/beb29103-a620-4d86-b686-dd1fcef5ae46?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/beb29103-a620-4d86-b686-dd1fcef5ae46?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](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/discussions/35642) GitHub link: https://github.com/apache/superset/discussions/35642#discussioncomment-14677886 ---- 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]
