Hi,
It appears that different projects share their environment variables, set through project > settings > environment variables > add variable, even without using contexts. As if environment variables were all related to user’s profile, not to projects.
This is an issue, even more when different projects use environment variables with same name but different values (e.g. AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
).
Do you confirm this is a bug?
Thanks
Mat
I’m not exactly sure I understand what you are saying but my best reading is - no, this is not a bug.
My reading of your words is that this is a bug because it happens automatically (untrue) and/or because it appears tied to a user’s profile (somewhat true but ultimately tied back to the Projects). I’ll explain below.
Prior to building Contexts, we developed a quick feature that allowed a user, if they have proper permissions on both projects,- to copy and paste environment variables from one project to another. I’ll highlight that is simply allows that copy/paste and it’s not a syncing process. It’s called “Import Project Variables.”
The API endpoints were a bit wonky but in the spirit of iterative development, we started with what we had. The import is only successful if you properly have the right permissions on both projects. It is tied to the User, yes, but only having the right permissions on both Projects. I believe this is what you are referring to?
Given the popularity of this feature, we developed Contexts and are likely going to depreciate the “Import Project Variables” in favor of Contexts in the future.
Thanks!
Thanks for the reply, Rishimkumar,
I’m aware of Contexts as well as of the feature you describe, and I should say that both are very welcomed!
However, I believe the management of project’s environment variables is somehow unstable, since I just experienced right now the following:
- When I create a new variable in project A (ex: Test/Test), this variable appears in project B without further action (no “Add variable”, no context)
- Some variables have disappeared after I switched from project A to project B and came back to project A
This might sound weird but I experienced it. My environment is MacBook Pro OS High Sierra 10.13.3 + Chrome 64.0.3282.186 (64 bits).
I look forward to reading you,
Thanks