When the custom dashboards project is changed, send funnels to the configurator endpoint
Problem to solve
With Add background worker to push funnel configurat... (#438035 - closed) we will have added a background worker to send funnel data to the configurator. Since funnels can be stored by a custom dashboards project rather than the project specifically, we need to make sure we update the projects funnel data when the projects custom dashboards setting gets changed.
2️⃣
Implementation plan - - When the projects custom dashboards setting is changed, trigger the background worker.
- Update the background worker to:
- Get all funnels from the old custom dashboards project setting (another project or the project itself).
- Get all funnels from the new custom dashboards project setting (another project or the project itself).
- Combine these lists and send to the configurator endpoint:
- Mark all old funnels data as “deleted”.
- Mark all new funnels data as “created”.
- Create and update tests.
Edited by Robert Hunt