Problem/Motivation
/admin/config/development/configuration displays a list of changed and updated config. Many times when the configuration is handled by a repository it is more appropriate to download one config change to the repository than the entire config (such as when a config change has been made on the devel instance needs to deploy to the whole stack. Individual config can be downloaded/uploaded at /admin/config/development/configuration/single/export and /admin/config/development/configuration/single/import, but there is no link from the synchronize page to these pages. It would aid this workflow to be able to link directly to the configuration item from the synchronization screen.
Proposed resolution
Change the button on /admin/config/development/configuration that says "view differences" to a drop-button with options to "View Differences", "Export this config", "Import to this config" with the items linking to the appropriate entry on the export/import page. This will require the following changes
- Change "View Differences" button to drop-button
- "View Differences" target remains as is
- "Export this config" target is /admin/config/development/configuration/single/export?config_type={{type}}&config_name={{name}}
- "Import to this config" target is /admin/config/development/configuration/single/import?config_type={{type}}&config_name={{name}}
- Modify /admin/config/development/configuration/single/export and /admin/config/development/configuration/single/import to allow parameters for content_type and content_name
Remaining tasks
User interface changes
- Change the "View Differences" button on /admin/config/development/configuration to a drop-button with the above options
- Add ability to select config to export/import based on url parameters.
Release notes snippet
Link directly from Configuration Synchronization page to individual import/export.