insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

New base environment created on each import

Open rbideau opened this issue 2 years ago • 1 comments

Expected Behavior

Base environment id is stable, no new base environment is created when one already exists on import.

Actual Behavior

Base environment id is always re-generated when importing, resulting in loss of sub-environments.

Reproduction Steps

  1. Install plugin Repo Sync Plugin v3
  2. Configure plugin
  3. Create a new collection
  4. Create a request, an environment
  5. Export workspace
  6. Import workspace
  7. Re-Export workspace

InsomniaSyncEnvironment.webm

Is there an existing issue for this?

Additional Information

When importing a collection, a new base environment is created on each import.

This break the plugin Repo Sync Plugin v3 which use the import/export api to synchronize collection.

This is likely introduced by #4378

Insomnia Version

2022.7.0

What operating system are you using?

Ubuntu

Operating System Version

20.04.1

Installation method

apt

Last Known Working Insomnia version

2022.6.0

rbideau avatar Dec 20 '22 10:12 rbideau

Probably connected to this issue #5942

NickRimmer avatar Jun 28 '23 15:06 NickRimmer