instedd / verboice

Open source toolkit for voice services; with special focus to the needs of medium- and low-income countries, scalable services, and interacting with vulnerable populations
http://verboice.instedd.org/
GNU General Public License v3.0
44 stars 18 forks source link

Call flow fails to load after an external service step is removed #810

Open ggiraldez opened 7 years ago

ggiraldez commented 7 years ago

Designer fails to load the user flow when a referenced external step is removed after updating the manifest. Either the flow should load anyway and show the error on the screen, or after updating the manifest, all project call flows should be checked for consistency and revert the manifest or allow the user to take another action on the spot.

Steps to reproduce:

  1. Add an external service to a project
  2. Create a call flow which uses a step from the external service
  3. Remove the step from the service manifest
  4. Update the manifest from the external services page
  5. Attempt to load the call flow in the designer

The JS code throws and exception here but that is not handled in any way by the calling code.