ui: Pass through default environment settings when when booting dev/test #14519
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Previous to this PR we had a way during dev or testing to enable/disable all sorts of feature flags via cookies, this PR gives those feature flags defaults based on what is in the corresponding Ember environment variables for the given environment. Note: This is only happens in non-production environments.
There are some tiny coincidental changes here due to HCPEnabled not having a default boolean value when not in production environments (
undefined
being falsey), in prod envs that boolean comes in from the backend.This PR is required to move forwards with some additional peering testing, that will come in some follow up PRs
PR Checklist