-
Notifications
You must be signed in to change notification settings - Fork 67
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
Set env vars for device groups #4538
Comments
This has been requested by the following two enterprise customers https://app-eu1.hubspot.com/contacts/26586079/record/0-2/8845845707 & https://app-eu1.hubspot.com/contacts/26586079/record/0-2/7039008216 |
Thanks @robmarcer - we have a product planning meeting on Wed, so will schedule it then |
For consideration: This is a good example of why the concept of Tags were raised (and developed, but that work stalled - possibly a very outdated branch knocking around). e.g. A Tag containing "things" (in this case env vars) could be applied to device(s), instance(s), application(s) and device group(s). As more and more of this kind of requirement arises (like "we need to apply a specific theme to group 1" or "we want the editor path set to 'live' for our 'live' instances, etc), tags begin to make more sense. |
@Steve-Mcl we're not going to be pursuing tags at this stage. The scope would be too considerably, and I don't want to introduce even more concepts into FF when users already find the existing number of concepts overwhelming. |
Want to keep this simple.
Important to keep api and data format consistent with Instance env settings. |
@joepavitt , if the time for you to get wysiwyg stuff in order is greater or equal to this, I could pick up the backend part of this (and frontend if required)? |
I can handover WYSIWYG this afternoon, but you're likely to need to juggle both as they're not small tasks |
inheritance rulesAny thoughts on the rules for when a device belonging to a group has its own env vars?
My gut says "1. merge - group env vars have precedence" because the settings should proliferate from the parent group to child devices however this then makes it impossible to apply unique values (overrides) on the device, making "2. merge - device env vars have precedence" the more favourable / sensible option. Of course, there is another option: we provide a merge rule option for each env var. This provides greater flexibility but it is "new ground.". In the event of no feedback, I will implement Updating devices:
|
Devices inherit from Group, but if Device has an Env Var defined, it overrides the inherited Group var |
Add a warning, make it clear to the user that will happen when saving their env var changes |
Regarding updating; agreed that isn't desirable; but then we have the matter of tracking pending changes with deployed changes - which complicates matters as well. For 1st iteration, I'd (as Joe has just commented) trigger a restart across the devices with appropriate warning. It will be an opportunity for future improvement to have pending changes etc. |
This warning should be present at all times right (not just when saving)? Reason: user may spend time entering nnn+ env vars, and upon pressing Save suddenly sees a notification stating this would (effectively) interrupt production (so cancels until a later time). |
Question on RBACS: Currently, a member can edit/update instance and device Env Vars. Is it envisioned the same permissions be applied to Device Group? Considering current RBACS for device group However, I will proceed on the assumption we are keeping the RBACS aligned (i.e. "Member" can edit) but feedback either way would be good for a sanity check. |
Let's use common sense here, member's should not be able to modify env vars if it's going to then cause a roll out to 100's of production devices. |
Status Update as of writing:
|
Status update
|
@knolleary any reason this was shifted to 2.11 and not closed? |
@joepavitt because I did a bulk update of all the still-open 2.10 items to 2.11 on Friday. I didn't spot this item should have been closed. |
Description
Allow env-vars to be set for a device group. Any new devices added to that group would take on those variables.
If a grouped device's evn-var is replaced for that specific device then that new value should be retained.
Which customers would this be available to
None
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
Tasks
The text was updated successfully, but these errors were encountered: