Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing a collection now creates duplicate requests #5946

Open
1 task done
rmisiakexscientia opened this issue May 5, 2023 · 7 comments
Open
1 task done

Importing a collection now creates duplicate requests #5946

rmisiakexscientia opened this issue May 5, 2023 · 7 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@rmisiakexscientia
Copy link

rmisiakexscientia commented May 5, 2023

Expected Behavior

When a collection is imported into an existing collection, any requests that already exist are updated/not modified, like 2023.1.0

Actual Behavior

Requests are duplicated

Reproduction Steps

  1. Create a new collection
  2. Create a new request
  3. Export the collection to a file
  4. Import the collection from the file into the same collection

You end up with a copy of the requests, previous versions of insomnia merged/updated the request rather than creating a duplicate

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.2.0

What operating system are you using?

macOS

Operating System Version

ventura 13.3.1

Installation method

download from site

Last Known Working Insomnia version

2023.1.0

@rmisiakexscientia rmisiakexscientia added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels May 5, 2023
@ByleX1337
Copy link

Same problem here

@SorenA
Copy link

SorenA commented May 8, 2023

Same problem here - verified it working in v2023.1.0 this morning, then updated to v2023.2.0 where it doesn't work.

It seems the underlying import/export was changed around end of March by #5869

What operating system are you using?
Windows

Operating System Version
Windows 10 Enterprise 22H2

@TelmoRodrigues
Copy link

TelmoRodrigues commented May 16, 2023

Same problem here - we experienced the same behavior and noticed that the request ids aren't kept according to the values saved after export. Because we use environment variables with references to specific requests, we lose these references.

Additionally, when importing a collection along with the environment, we notice that the environments aren't imported either.

Both behavior in version 2023.2.0 as you refer, we started to use version 2023.1.0 to not have this behavior.

@iiropeltokangas
Copy link

Same issue here

@willemdh
Copy link

Same issue

1 similar comment
@huuphat1908
Copy link

Same issue

@huuphat1908
Copy link

I created a PR to fix this issue #7081

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

7 participants