orchestrator-core icon indicating copy to clipboard operation
orchestrator-core copied to clipboard

Prevent database updates in input/form step

Open Mark90 opened this issue 2 years ago • 0 comments

It is illegal to save a subscription during an inputstep or form generator step, because these steps run "on the API side". The framework still allows you to do this.

A subscription can be saved:

  • Explicitly by calling .save() on it
  • Implicitly by making the step return it

We could investigate ways to prevent this in the inputstep and form generator.

Side note: create a decorator @form_step for the form generator functions?

Mark90 avatar Aug 09 '23 08:08 Mark90