bruno icon indicating copy to clipboard operation
bruno copied to clipboard

[Feature] : Settings on folder level

Open bpoulaindev opened this issue 1 year ago • 2 comments

Description

Referencing issue #1310

Add settings at the folder level similarly to collection settings

  • multiple settings tab can be opened
  • only headers have been added in those settings
  • headers var with the same name as one from the parent will override the parent's one in the request

image

Contribution Checklist:

  • [x] The pull request only addresses one issue or adds one feature.
  • [x] The pull request does not introduce any breaking changes
  • [x] I have read the contribution guidelines.
  • [x] Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

bpoulaindev avatar Jan 05 '24 19:01 bpoulaindev

It would be nice to have body and tests also..

ghost avatar Jan 24 '24 13:01 ghost

@fulvio-diller Yeah i'll add those once headers are validated and officially stable

bpoulaindev avatar Jan 24 '24 13:01 bpoulaindev

A thought from a design perspective: Should the concept of "Folders" be removed and should "Collections" be able to be nested? I'm not sure if that has already been discussed but it seems like that is the desired functionality as expressed in #1174 & #1310

Personally, my team would greatly benefit from being able to nest Collections to run a hierarchy of tests. So much so, that if we had that functionality, we would swap from Postman to Bruno immediately.

kyleboe avatar Jun 04 '24 15:06 kyleboe

Hi @kyleboe,

I do not think that nesting collections is a good idea for several reasons:

  1. How should bru.setNextRequest() implement a jump between nested collection?
  2. What is the meaning of environments? Currently environments are stored at collection level. If a collection is nested there might exist environments too. To be able to run separately (standalone) environments must exist. On the other hand the values in the nested collection might be different from the values in the outer collection.
  3. Currently it is not possible to move/copy a request from one collection to another collection.

To my understanding the concept of folder exist to create hierarchical tests. Therefore I want to be able to store scripts, tests ... at folder level.

Kind Regards Thomas

tho-gru-38 avatar Jun 14 '24 11:06 tho-gru-38

Merged to feat/folder-level-settings branch where I will be continue further work on this.

helloanoop avatar Jun 24 '24 06:06 helloanoop