Variable in base environment:
"app": {
"clientId": "com.foo.someAppName"
}
Variable in sub environment XYZ:
"app": {
"clientSecret": "abc123"
}
Effective variable in environment XYZ:
Expected:
"app": {
"clientId": "com.foo.someAppName",
"clientSecret": "abc123"
}
Actual:
"app": {
"clientSecret": "abc123"
}
Insomnia v6.5.4
馃憢 Thanks for opening your first issue! If you're reporting a 馃悶 bug, please make sure
you include steps to reproduce it. If you're requesting a feature 馃巵, please provide real
use cases that would benefit. 馃應
To help make this a smooth process, please be sure you have first read the
contributing guidelines.
If I could, I would like to upvote this Feature Request.
I think it would add some more "user friendlyness" to the management of global/environment variables in Insomnia. You already provide way to store the variables in a structured JSON form, not merging the object variables kinda defeats that purpose.
When the item is a string, I understand that you override the base value with the environment value. But when the item is an object/array you should try to merge the 2 objects

and

should lead to

Could you have a look at this @gschier? It says "Feature Request", but one could perhaps also argue that the current behavior is a bug?
Anyway, I have a pull request that implements this new Feature, and I think the (Environment) Variable management in Insomnia would really benefit from it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please don鈥檛 go stale!
I'd like/love this feature/bugfix too ! It seems confusing without it, and I spent 10 mins wondering what was going on.
and mainly, thanks a lot for your great job @gschier
Good news everybody! The pull request was merged!
As of version 7.0.4 this feature is now available.
(This Issue/Request can be closed)
@Gabrz Great! Thx !
(Can't find the PR in the changelog tho:
https://insomnia.rest/changelog/7.0.4)
yeah, so sad, I'm not in the changelog. (my number of contributions did go up though)
But more important is, that the feature is in there, I've changed my environments and it works.
@Gabrz yep, tried it, it rocks ! Thanks again
Sorry @Gabrz I must have missed you somehow. I'll add you again in the next one
Most helpful comment
Could you have a look at this @gschier? It says "Feature Request", but one could perhaps also argue that the current behavior is a bug?
Anyway, I have a pull request that implements this new Feature, and I think the (Environment) Variable management in Insomnia would really benefit from it.