hoppscotch / hoppscotch

Open source API development ecosystem - https://hoppscotch.io (open-source alternative to Postman, Insomnia)
https://hoppscotch.io
MIT License
64.26k stars 4.45k forks source link

[bug]: Switching context doesn't invalidate environment variables and requests #3864

Open jobartim44 opened 7 months ago

jobartim44 commented 7 months ago

Is there an existing issue for this?

Current behavior

When I change my Workspace the environment variables are still set. I use generic variables along my different workspace and collections like <> so this is source of mistake if they are not unset.

The same way I would like request tabs to be closed when switching my workspace.

Steps to reproduce

Configure différent workspaces with environment variables having the same name. Swith workspace, don't select any environment, variables are still set.

Environment

Production

Version

Self-hosted

jobartim44 commented 7 months ago

If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb.

nivedin commented 4 months ago

If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb.

Thank you for sharing your observation. Could you please provide more insight into the use case for this feature? Understanding its intended purpose will help us address any limitations or consider potential improvements.

jobartim44 commented 4 months ago

If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb.

Thank you for sharing your observation. Could you please provide more insight into the use case for this feature? Understanding its intended purpose will help us address any limitations or consider potential improvements.

I like to only have opened tabs that related to the current workspace. The easier way is to close every tabs when switching from one workspace to another. But if this action closed every request tabs we should have something to show. It could be an empty panel or tab (watever the way it takes). We could also have quick actions in this 'welcome' tab like creating a new request.