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

Allow setting a default environment #2170

Open
1 task done
nmss opened this issue Apr 25, 2024 · 4 comments
Open
1 task done

Allow setting a default environment #2170

nmss opened this issue Apr 25, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@nmss
Copy link

nmss commented Apr 25, 2024

I have checked the following:

  • 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

image

@nmss nmss added the enhancement New feature or request label Apr 25, 2024
@zagorec92
Copy link

zagorec92 commented Apr 25, 2024

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

image

bruno.json
{ "version": "1", "name": "Test", "type": "collection", "defaultEnv": "First", "ignore": [ "node_modules", ".git" ] }

@grubersjoe
Copy link
Contributor

Seems like a duplicate of #1598

@zagorec92
Copy link

Seems like a duplicate of #1598

Yep, makes more sense, it's pretty much what postman does with remembering selected environment.

@satokenta940
Copy link

This is indeed very convenient, and Apidog supports it, so the experience will be better.

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

No branches or pull requests

4 participants