- Issue created by @kwfinken
- ๐บ๐ธUnited States anoopjohn Washington D. C.
This would be a great feature to have. Especially with projects that are under active development / enhancements / customization, there would be a lot of time savings for its developers.
I have created a patch that adds the following link to the 'View Differences' drop-down button on the /admin/config/development/configuration page:
- "'Export this config' with a target URL of /admin/config/development/configuration/single/export/{{type}}/{{name}}
I have omitted the 'Import this config' link because there is no option for single config selection on the import page.
- Status changed to Needs review
12 months ago 2:26pm 20 December 2023 - Status changed to Needs work
12 months ago 5:52pm 20 December 2023 - ๐บ๐ธUnited States smustgrave
Kind of change will require test coverage.
Probably also submaintainer sign off.
I have added test coverage for the changes. The merge request is ready for review now.
- Status changed to Needs review
11 months ago 2:54pm 26 December 2023 - ๐ฎ๐ณIndia prashant.c Dharamshala
Prashant.c โ made their first commit to this issueโs fork.
- Status changed to Needs work
11 months ago 10:59pm 26 December 2023 - Status changed to Needs review
11 months ago 8:40am 27 December 2023 Corrected the issue where the configuration type entity did not exist.
- Status changed to Needs work
11 months ago 5:32am 29 December 2023 - ๐ฎ๐ณIndia Abhijith S
Applied MR !5953 on D11.x.
The Export this config button is working fine which is redirecting to export config page with parameters os selected config entity.
However the Import to this config link is not implemented.
- ๐ฎ๐ณIndia prashant.c Dharamshala
1. Introducing a new link labeled "Import this configuration."
2. Clicking on the link will redirect the user to "/admin/config/development/configuration/single/import/[config_type]/[config_name]."
3. The "Paste your configuration here" textarea will be automatically populated with the original configurations.
4. Press the "Import" button to initiate the import of the default configurations.However, there are still pending tasks, including code review, code cleanup, and testing.
- Status changed to Needs review
11 months ago 9:33am 3 January 2024 - Fixed phpcs issue regarding unused use statement.
- For removed configs, single "Import this config" link leads to 'false' text in the import text area because the config doesn't exist. Added config exists check on the singe import page.
- Added test coverage for 'Import this config' link.
- Status changed to Needs work
11 months ago 3:40pm 3 January 2024 - ๐บ๐ธUnited States smustgrave
MR seems to have failures. There are some backwards compatibility concerns as that path will now be broken. May need to cover that.
- Status changed to Needs review
11 months ago 7:22am 4 January 2024 Refactored the code and removed 'Import this config' link for configs under Removed section.
- Status changed to Needs work
11 months ago 7:48am 4 January 2024 - ๐ฎ๐ณIndia guptahemant
Hi @riyas_nr
Did a code review and included few more suggestions.
- Added below parameters as optional.
-
$sync_storage
in constructor of\Drupal\config\Form\ConfigSingleImportForm
$entity_type_manager
in constructor of\Drupal\config\Form\ConfigSync
- Updated deprecation warning for both parameters.
- Added change records for above parameters.
- Status changed to Needs review
11 months ago 2:47pm 4 January 2024 - Status changed to Needs work
11 months ago 3:08pm 5 January 2024 - Status changed to Needs review
11 months ago 2:43pm 8 January 2024 - Added typehints for method parameters and properties
- Changed method name updateImport to getStagedConfigByName()
- Changed access modifier of helper functions to protected
- Moved optional parameters to end of the constructor arguments
- ๐บ๐ธUnited States smustgrave
@alexpott are we good to remove subsystem review?
- Status changed to Needs work
9 months ago 6:11pm 13 March 2024 - ๐บ๐ธUnited States smustgrave
Tried testing this one out.
On the configuration sync page I am seeing the dropdown for export/import
Export seems to work correctly
But import whenI click it I get redirected to the import form. Dropdown is empty and text area is also empty. Seems odd that the dropdown for config was empty at least.