Page 1 of 1

Possible Bug: Deleting a Trigger From a Flow

Posted: 08 Dec 2013 03:00
by 98b427af
Create a flow with two triggers. Be sure at least one of them is used nowhere else. (To avoid potential confusion later, choose triggers other than the first one in the trigger selection list, i.e. "Active Network Type." See below.)

Tap the trigger box, then tap the edit symbol. You will see a list of the two triggers to select one for editing. Dismiss the list.

Now tap on the list symbol above the trigger box. Scroll to the trigger that is only used in this flow (shows "[used once]"). DO NOT uncheck it. Long press it to get the list of options. Select "delete" and confirm the deletion.

Go back to the flow. Tap on the trigger box and then on the edit symbol. You will see that you still get the trigger selection list, and the deleted trigger still appears in the list.

(If you tap on the deleted trigger in the list you will end up in a new trigger creation view that uses the first trigger in the trigger selection list, "Active Network Type." There is no way to get back to or "recreate" the deleted trigger. This is why it's best not to use that first trigger when testing this - if you choose that one to delete, it will appear as if you are "reconnecting to" or "recreating" the deleted trigger. But see note below.)

The deleted trigger will continue to appear in the edit selection list until the phone is restarted. Killing and restarting Automagic does not remove it.

Notes:
Unchecking the trigger before deleting it does not produce this behavior.

Once it's been deleted, the deleted trigger no longer appears in the trigger selection list when you tap on it above the trigger box.

Trying to recreate the deleted trigger does not "reconnect" it. Instead, it creates a new trigger which appears in the edit list in addition to the deleted trigger.

Re: Possible Bug: Deleting a Trigger From a Flow

Posted: 08 Dec 2013 09:20
by Martin
Thanks for the detailed steps to reproduce this bug!
Fixed in the next build.

Regards,
Martin