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

Support sub-environment #2038

Closed
nofacer opened this issue Apr 9, 2024 · 4 comments
Closed

Support sub-environment #2038

nofacer opened this issue Apr 9, 2024 · 4 comments

Comments

@nofacer
Copy link

nofacer commented Apr 9, 2024

Currently it only supports global environment. It will be impossible to use same variable key like "host" with different value in each collection. The structure would be flat for now if each collection has multiple env collection such as -dev -prod

Is it possible to support it like insomnia does?

@sebimarkgraf
Copy link

As far as I know, environments are scoped to collections.
As soon as you click on a request, the available environments change to the collection environment.

If you have the same variable multiple times in the same project and therefore Git Repository, you could just adjust host to be more specific.

@nofacer
Copy link
Author

nofacer commented Apr 11, 2024

@sebimarkgraf does it support base env and sub env like this? In another word, there are some common vars like hostname and some variant stuffs like different username/password pair.
image
image

For now if I want to use different usr/psw I have to switch to a brand new env and need to redefine the common things again such as hostname.

@nofacer nofacer changed the title Support collection-level environment Support sub-environment Apr 12, 2024
@edbrannin
Copy link
Contributor

edbrannin commented Jun 24, 2024

(This is a duplicate of #292, and it's in the V2 part of the roadmap)

@sanjai0py
Copy link
Member

Closing this as duplicate of #292.

Please add a 👍 reaction to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants