rusackas commented on code in PR #44126:
URL: https://github.com/apache/superset/pull/44126#discussion_r4021399174
##########
docs/admin_docs/configuration/configuring-superset.mdx:
##########
@@ -606,6 +606,33 @@ def FLASK_APP_MUTATOR(app: Flask) -> None:
app.before_request_funcs.setdefault(None,
[]).append(make_session_permanent)
```
+## Reacting to chart and dashboard creation
+
+`AFTER_ASSET_CREATE` is an optional hook that runs after a chart or dashboard
Review Comment:
Explore Save As actually goes through the REST API's
CreateChartCommand/CreateDashboardCommand, so it does fire the hook, same as
the blank-dashboard button. MCP-generated dashboards are the real gap though,
generate_dashboard.py builds the row directly rather than going through
CreateDashboardCommand, so the hook never runs there. Added a note about that.
--
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]