francbohuslav / insomnia-plugin-uu-sync

Workspace to file sync plugin for Insomnia
8 stars 0 forks source link

Importing deleted requests #3

Open jmsargent opened 2 years ago

jmsargent commented 2 years ago

Hello.

When importing from a git branch which has gotten some folder/request deleted. The plugin does not delete the request.

The issue was found while having working and one person deleting from a branch and the other person then switching from that branch and using uuSync - import. However, when deleting the collection from insomnias dashboard and then syncing. the collection was properly updated.

Thanks for the great plugin btw. It's a great idea and other from this small bugg everything seems to work fine!

francbohuslav commented 2 years ago

Hello.

When importing from a git branch which has gotten some folder/request deleted. The plugin does not delete the request.

The issue was found while having working and one person deleting from a branch and the other person then switching from that branch and using uuSync - import. However, when deleting the collection from insomnias dashboard and then syncing. the collection was properly updated.

Thanks for the great plugin btw. It's a great idea and other from this small bugg everything seems to work fine!

Hi This is problem of Insomnia and I hate it for that. Insomnia has no api to delete workspace and import it again. You have to do it yourself. If you know that you are going to import some big changes thus you have to do these steps:

  1. Use uuSync - import although you know that it will import it wrong. This step is only for plugin uuSync to remember which workspace you are working.
  2. Delete workspace from insomnia
  3. Import it by uuSync command uuSync - import last (deleted). It will offer you name of repository from point 1. If you have no other workspace, menu of uuSync is not accesible :(. I will record this procedure and will past it here. I will check if there is some new Insomnia API, that can handle that better way.
francbohuslav commented 2 years ago

2021-07-28-14-41-28