bruno icon indicating copy to clipboard operation
bruno copied to clipboard

[Feature Request] variable initial and local value

Open bugada opened this issue 2 years ago • 7 comments

Hello,

thanks for your awesome work. The variables in the environment or pre-request are saved on the git repo. So if I'm testing something and one of my colleague changes the same variable it's a problem.

Could you implement an "initial value" saved on the collection, and a "local value" not saved, so if one changes the local it won't be saved in the git repo?. Obviously the local value, if present, must overwrite the initial value.

Thanks Andrea

bugada avatar Dec 13 '23 15:12 bugada

This sounds related to #1033 Any mechanism that would let me set a variable value, but NOT save that value to the file would be great.

MelGrubb avatar Dec 15 '23 12:12 MelGrubb

Yep the 1033 Is an awesome request, but if you have 10 variables and usually you have to change 1 or 2 values a default value would be great. Just save those default values on a file local.json like secret.json and let the user to customize it: for example when the popup is showed prefill with default values, a button "save as default" will alter then and another "continue" will use those values, even changed, without saving it.

bugada avatar Dec 15 '23 21:12 bugada

...Just save those default values on a file local.json like secret.json and let the user to customize it...

That's exactly what I had in mind, although I think I'd want these values to be even more transient, so that they don't carry over to the next session, or maybe even if I closed the tab and reopened it. I want an in-memory-only option so that I don't accidentally run one of these requests with the same values in the future. Maybe the dialog could have checkboxes to determine whether or not the values would be retained at all.

MelGrubb avatar Dec 16 '23 14:12 MelGrubb

Probably, we can consider these ephemeral variables as secrets. It will prevent these values from being pushed to git.

chimit avatar May 30 '24 02:05 chimit

Yep that would be awesome, but please don't mask them, otherwise, like with secrets, we have to untick the secret checkbox to alter the content and then tick the checbox

bugada avatar May 30 '24 18:05 bugada

Another idea how to support default values is via .env.default which should be under version control and be overridden by your local .env if specified.

chimit avatar May 31 '24 04:05 chimit

Any progress on this?

the-corp-mark avatar Nov 13 '25 15:11 the-corp-mark