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

feat: global env #3222

Merged
merged 8 commits into from
Oct 8, 2024
Merged

feat: global env #3222

merged 8 commits into from
Oct 8, 2024

Conversation

lohxt1
Copy link
Collaborator

@lohxt1 lohxt1 commented Sep 28, 2024

~ global environments

global_env_ui.mp4

@lohxt1 lohxt1 changed the title draft: global env ui and store draft: global env Sep 30, 2024
@lohxt1 lohxt1 changed the title draft: global env feat: global env Sep 30, 2024
@helloanoop helloanoop marked this pull request as ready for review October 7, 2024 12:50
@lohxt1 lohxt1 merged commit 4211575 into usebruno:main Oct 8, 2024
2 checks passed
@codewell-learning
Copy link

Excellent feature and is very demanded. Nice work!

@frdesnous
Copy link

Thanks a lot @lohxt1 , much appreciated!!! One question though: where are the global environment (.bru?) files stored? I created a new one but can't find the file

@paulrudy
Copy link

Thanks a lot @lohxt1 , much appreciated!!! One question though: where are the global environment (.bru?) files stored? I created a new one but can't find the file

I was looking too. Found it (on macOS at least) in ~/Library/Application Support/bruno/global-environments.json

@frdesnous
Copy link

Thanks @paulrudy. I think it would make more sense to be able to save it in a different place, like at the root of all collections for example.

@paulrudy
Copy link

Thanks @paulrudy. I think it would make more sense to be able to save it in a different place, like at the root of all collections for example.

I agree, and I'd prefer it to be in the same format as the local environments, to allow easy import (copy/paste) from local to global, and back.

@frdesnous
Copy link

frdesnous commented Oct 11, 2024

@lohxt1 I would assume that you are also planning to enable it soon in the bruno CLI and be able to run the collection with this global environment ;)
bru run folder --env ../Global

@reinharn
Copy link

Will it soon be possible to configure the storage location of the global environments?

@kkevindev
Copy link

I have problems since this release with running my collection.

Gives an error in the DevTools console: Global Environment not found.

@lundgreen-jyskebank-dk
Copy link

lundgreen-jyskebank-dk commented Oct 16, 2024

Hi. If I have a global environment called 'user' like:

CleanShot 2024-10-16 at 09 25 40@2x

Is it then possible to access the global variables at collection level? Like:

CleanShot 2024-10-16 at 09 30 19@2x

Usecase: ONLY set user/pwd in a global variable and then use it in all collections

1 hour later. I found a workaround where I read the globals and manually set basic auth:

CleanShot 2024-10-16 at 10 51 50@2x

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

Successfully merging this pull request may close these issues.

7 participants