Problem/Motivation
Create the ConfigEnvironment service for creating and managing config environments.
Proposed resolution
Implement event subscribers for the ConfigTransform API #3047812: Add a Config Transformation event dispatching during config import and export. Each environment corresponds to a new configuration "collection". When config is exported, the config/sync filestorage will show each environment as a subfolder within a "environments" folder, similar to how multilingual config collections are stored.
API changes
- Provide a ConfigEnvironment service for create, get, set of Environment (config entities)
Data model changes
- Define the schema for an "environment".
- Current environment ID will be stored in the State system. (implementation detail of config_environment service)
- Desired environment ID will be stored in Settings (implementation detail of config_environment service)
User interface changes
None.
Remaining tasks
- Move the Config Environment API pieces from the patch in #3028179: Config Environment module (original issue).
- Add ConfigEnvironment service to create, set, get current and desired environment ID.
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3048860-4.patch | 32.4 KB | bircher |
Comments
Comment #2
mpotter commentedComment #3
krzysztof domańskiComment #4
bircherSome work in progress patch.
This can be played with when you enable the new config_environment_switch_test module and go to admin/config/development/configuration/environment.
It has the UI to switch the environment but it doesn't have the environment yet, and also it doesn't properly transform anything yet.
Comment #6
bircherDiscussed with @alexpott. The current issue summary still reflects the required work. Moving 9.1.x as this is not the focus of 8.9.x or 9.0.x