mistercrunch commented on issue #25203: URL: https://github.com/apache/superset/issues/25203#issuecomment-2450541321
Digging a bit deeper, response_404 is defined in FAB here https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/api/__init__.py#L816-L823 Seems one easy-ish solution would be to change that line in [/superset/dashboards/api.py#L149-L150](https://github.com/apache/superset/blob/master/superset/dashboards/api.py#L149-L150) to `self.response(404, _("The dashboard could not be found"))`. Once we have the proper response(s) in place for each object type (dashboard, chart, ...), we need to make sure the frontend deals with it in a proper way. -- 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]
