Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
33.72k stars 1.88k forks source link

New base environment created on each import #5558

Open rbideau opened 1 year ago

rbideau commented 1 year ago

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
  8. 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

NickRimmer commented 1 year ago

Probably connected to this issue #5942