instedd / mbuilder

Scalable SMS application builder
http://mbuilder.instedd.org/
6 stars 1 forks source link

Allow deletion of steps #21

Closed waj closed 9 years ago

waj commented 9 years ago

After deleting a step, reinterpret the action of the user in that new context.


waj commented 9 years ago

The only "conflicting" case is when you delete a "select" or "create" step and you have "store" steps afterwards. For now, those "store" steps remain after deleting the previous "select" or "create" step, and when executing them they update the whole table. For example:

Previously:

select User where Phone is +1234 store "Foo" as Name of User.

After deleting the first step:

store "Foo" as Name of User.

When executing that step, all Users will have "Foo" as their Name. It's like there's an implicit selection that is "all Users".


waj commented 9 years ago

that's perfect