ArchGPT / insomnium

Insomnium is a fast local API testing tool that is privacy-focused and 100% local. For testing GraphQL, REST, WebSockets and gRPC. This is a fork of Kong/insomnia
MIT License
3.38k stars 158 forks source link

Importing an insomnia project doesn't import Base Environment's variables #42

Open NPunzo opened 12 months ago

NPunzo commented 12 months ago

Expected Behavior

Importing an insomnia project should import everything (requests, variables...)

Actual Behavior

Everything has been imported, including variables environments from folders and sub environments, but nothing in the Base Environment.

Reproduction Steps

  1. Create a project in Insomnia with a variable in the Base Environment
  2. Create a sub environment with other variables
  3. Export this project
  4. Open it in Insomnium
  5. See that the variable in the sub environment is there, but not the Base Environment's one

Is there an existing issue for this?

Additional Information

No response

Insomnium Version

0.2.1-b

What operating system are you using?

Windows

Operating System Version

Windows 10 Entreprise 22H2

Installation method

Tried on portable build

Last Known Working Insomnium version

No response

archywillhe commented 12 months ago

oh good find; I will fix this in the next release;

by the way are you coming from Insomnia 8.0 or above? Or Insomnia 2023.5.8 or before?

bbbco commented 12 months ago

I sure hope you are supporting those coming from both 8.x and 2023.5.x

NPunzo commented 12 months ago

oh good find; I will fix this in the next release;

by the way are you coming from Insomnia 8.0 or above? Or Insomnia 2023.5.8 or before?

I come from Insomnia 2023.5.8 😄

archywillhe commented 11 months ago

as I'm trying to replicate this on Mac, I'm running a huge usability problems with the sub-env UI and variables  https://github.com/ArchGPT/insomnium/issues/60

Checking the Insomnia repo shows many related issues with env/variables too; I think the best approach for resolving all these is likely to rewrite the entire enviroment module

I'll be adding this to backlog for v0.3

evs-xsarus commented 8 months ago

On linux, I've renamed (after making a backup) ~/.config/Insomnia to ~/.config/Insomnium which worked.