-
Notifications
You must be signed in to change notification settings - Fork 1
Environment Indicator #86
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
base: master
Are you sure you want to change the base?
Conversation
* origin/master: Don't send email on non-live environments. (#80) Add warning that settings.php will be overwritten. (#85) Add install file to the profile for config changes. (#78) Add devel and stage_file_proxy as dev requirements. Update readme after new contrib and install profile. Add install profile for installing common modules. Add contrib modules most commonly used. Update versions of required packages in composer.json.
I'm fine with installing the indicator, but I would like to clean this code up a bit:
However, there is also a bit of a fundamental issue: The colors have been chosen to discourage developers from making changes on live instead of dev, but for site editors we actually want the opposite. They should make content changes on live and instead be warned if they are making changes to dev or test. Is there a way we can tie the indicator colors to roles or permissions so we don't alarm the site editors with a bright red admin bar on the live site? |
@mikemccaffrey no the indicator is for developers, for editors we can hide it completely. I am sure you could do something like an event subscriber or preprocess and get the role there but this is generally speaking not the original purpose of the module - it was developed to work with configuration and alert people to not do config save on live. |
It would just be weird to have this one single piece of code reference acquia in the entire project. If were were to support acquia with this project, things would be much more complicated. |
Hmmmm I can see that... idk I think having two hostings support could be nice and I also agree that this increases CI complexity for sure. Maybe something generator could solve for us. Ok let's in the interim remove Acquia out of the picture but maybe be have it for the future stage as a goal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty great! @mikemccaffrey Mind trying out the Kalacolors?
@RobLoach can you please take a look at environment indicator settings. Let's test it like this if this is ok and then we can refactor if you'd like. Thanks.