insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

fix #5942: Retain exported ID for resource

Open adammkelly opened this issue 1 year ago • 11 comments

Closes https://github.com/Kong/insomnia/issues/5942

If an imported config has references to requests via the response plugin they are dereferenced as the imported config gets all new ids.

If this has downstream consequences, please let me know.

changelog(Fixes): Added a fix to retain the id from imported resources

adammkelly avatar Sep 17 '23 22:09 adammkelly

It would be nice if this MR is prioritized! Export of request chains has been pretty broken for a while now.

wingedrhino avatar Oct 02 '23 22:10 wingedrhino

When is this being released? seems like a simple fix to me

dukesteen avatar Oct 16 '23 11:10 dukesteen

My team is experiencing the same problem. If you export a document, then import later, existing requests are assigned new request IDs. Every Tag, Request Chaining, basically everywhere you've made a reference to a request's ID is now broken.

Steps to reproduce:

  1. Create a new design document
  2. Add a Get request. Here's a public api - https://datausa.io/api/data?drilldowns=Nation&measures=Population
  3. Open settings for the Request and save the request id (req_00534c74137948da90521431b379b27b)
  4. Export the design document
  5. Delete the design document
  6. Import the design document
  7. Open and go to the request
  8. Open settings for the request and note that the request ID has changed (req_2d5680a437594dc6986d75f9dfda6988)

This occurs for Insomnia 8.4.0 on both PC and Mac

pjloomis avatar Nov 13 '23 13:11 pjloomis

Bump - any updates on when this might be released?

jnazaren avatar Nov 28 '23 22:11 jnazaren

Bump - any updates on when this might be released?

I just switched to postman again..

dukesteen avatar Nov 28 '23 22:11 dukesteen

@gatzjames @filfreire

jnazaren avatar Dec 07 '23 18:12 jnazaren

By debugging a little, you can see that each request has a unique and global id. Wouldn't it be better for each request to be unique in its document?

With these corrections, it is possible to import requests with their ID'S, however. If you already have these ID'S in your insomina it returns an error.

I'm trying to research more about requests and documents within the code.

PedroLuisBrilhadori avatar Dec 23 '23 02:12 PedroLuisBrilhadori

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Dec 27 '23 18:12 CLAassistant

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Dec 27 '23 18:12 CLAassistant

Is there any update on this PR? When it is going to be available?

kap199297 avatar Mar 29 '24 13:03 kap199297

Is this going to be deployed?

tl-luca-mazzanti avatar Jun 14 '24 13:06 tl-luca-mazzanti

Closing as this creates other issues and will be addressed in another PR

gatzjames avatar Jul 12 '24 11:07 gatzjames