GitHub user anchet19 added a comment to the discussion: How to trigger side effects in Superset 6.0 for DAO CRUD operations
@dosu That is helpful, though it turns out there are a number of other listeners that run and make additional updates on an insert so that didn't work for me. I ended up using a combination of the SQLAlchemy `after_flush_postexec` and Flask App `after_request` listeners. Right now, the code is in my `FLASK_APP_MUTATOR` in `superset_config.py` but I'd like to move it to a separate backend extension project. I see that `apache-superset-core` doesn't have the `SqlaTable` class but it has a `Dataset` class. Would an event listener attached to this still fire or does it need to be the `SqlaTable` from the internal code? GitHub link: https://github.com/apache/superset/discussions/39841#discussioncomment-16858279 ---- 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]
