bruno
bruno copied to clipboard
Allow setting a default environment
I have checked the following:
- [X] I've searched existing issues and found nothing related to my issue.
Describe the feature you want to add
Currently when a collection have environments, by default no environment
is selected
I wish I could assign a default one, so the at the collection I load is working without any more action
Mockups or Images of the feature
I've already played around with this, so if you don't have the time/desire/etc. to implement it by yourself, I can take over IF it's not a problem.
What I've done so far:
- in environment list, default env is marked as bold
- wanted to emphasize it while keeping the same UI layout
- Set as Default at the bottom
- not sure is there any other position where the placement would be considered appropriate
- default environment name is saved in collection's bruno.json file
- name is saved because it can be easily updated by directly changing the .json file if there is a need and it is more readable/understandable than unique identifier
bruno.json
{ "version": "1", "name": "Test", "type": "collection", "defaultEnv": "First", "ignore": [ "node_modules", ".git" ] }
Seems like a duplicate of https://github.com/usebruno/bruno/issues/1598
Seems like a duplicate of #1598
Yep, makes more sense, it's pretty much what postman does with remembering selected environment.
This is indeed very convenient, and Apidog supports it, so the experience will be better.
Duplicate of #1598