snipsco / snips-issues

Feel free to share your bugs with us.
14 stars 5 forks source link

unable to create a previously deleted intent #214

Open sifus opened 4 years ago

sifus commented 4 years ago

What's the issue? I deleted MusicPreviousJeedom intent by mistake (besides a cancellation feature would be cool) and Snips will not let me rewrite an intent with the same name.

Version and Environment Snips console

214 unable to create a previously deleted intent

Capture d’écran 2019-11-12 à 14 36 11
pocketjoso commented 4 years ago

Hi.

Before deleting an intent we show a confirmation modal; did you see this modal and confirm the deletion inside? Just wondering as there's another feature that can seem close, the option to Remove an intent from an app: Capture d’écran 2019-11-12 à 14 54 08 If what you did was removing the intent from an app, and not deleting it, then it will still be on your account. In this case that's why you have the warning when trying to re-create it. In this case you can use the Import Intents button in the screenshot above to add the intent back to the app.

If you did indeed delete the intent via a confirmation modal, then can you refresh the page and then try creating the intent again, to see if you still have the same error?

sifus commented 4 years ago

Thx for reply.

I'm sorry, i didn't remember that my fork intent was stock on another tab 😅

On the other side, a didn't had a popup when i remove this intent, maybe because it was a fork intent ?

pocketjoso commented 4 years ago

Ah if you had forked the intent, then it was already yours, so that's why it's left on your account. Removing an intent from app does not delete it from your account.

Removing and Deleting are two separate operations. I know this can be confusing, let me explain below.

Remove After removing an intent from an app it still exist on your account, and you can add it back to the app again after. Since this action can be reversed we don't show any confirmation modal.

Delete After deleting an intent it no longer exists on your account. This is a permanent action, it cannot be undone.

This is what deleting an intent looks like: Capture d’écran 2019-11-12 à 15 43 12

Capture d’écran 2019-11-12 à 15 43 20

Intents can also be deleted from the intent editor.


Is it more clear to you now what happened? You can add back the forked intent via the Import intents button in the app. If you prefer, you could also remove the forked intent, and then you can create a new one using the same name.