Closed (won't fix)
Project:
Configuration Management
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
5 Jul 2012 at 02:04 UTC
Updated:
6 Dec 2012 at 20:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
gdrupal commentedThis is my first approach to cover "Import configurations files into activestore". This patch works for the actual functionality of importing a previously exported tar but.... it still need a lot of work since I noticed (testing the function as a drush command) that there are several dependencies here and there, so not a fully independent functionality yet.
Comment #2
gdrupal commentedWell finally here is it the 1st function wrapper for "Import configurations files into activestore". I have tested it from the command line and in a profile install process. I have encountered a really strange issue triggered by the hook_init() implementation so I added a workaround. The root of this problem is in a drupal core limitation about cache (it uses a fake cache class) in the profile install process.
We have the new configuration_import_files($path) function, where $path is the path to a local directory with previously exported configuration files. So now, we can have our configurations along with our drupal profile and pull them in the install process or by a script from the command line.
Hook_install Code example:
Drush Command Code example:
drush cimp profiles/profilename/configuration/Comment #3
lucascaro commentedComment #5
dagmarRe-rolled.
Comment #6
dagmarI forgot to add the configuration.admin.inc file in the patch.
Comment #7
lucascaro commentedI'd like some tests for this new functionality before committing, any volunteers? :)
Also, usually we want to add an empty new line at the end of every file to avoid error messages when applying the patch:
Comment #8
gdrupal commentedHere is a little fix before we start working on a test case. Seems that we need a default configuration set of files for testing purposes that should cover all type of components or something like that.
Comment #9
gdrupal commentedComment #10
gdrupal commentedComment #11
dagmar#8: 1671404.better_api.8.patch queued for re-testing.
Comment #13
dagmarThis needs to be re-rolled
Comment #14
gdrupal commentedRe-rolled.
Comment #15
lucascaro commentedI know @GDrupal is working on tests for this so the tag is only for organizing the issue queue.
Comment #16
lucascaro commented#14: 1671404.better_api.14.patch queued for re-testing.
Comment #18
gdrupal commentedHere is the patch with the import files wrapper, drush command feature and test cases. The test cases are commented until we fix this issue:
http://drupal.org/node/1698428
Comment #19
lucascaro commented#18: better-api-1671404-18.patch queued for re-testing.
Comment #20
neoxavier commented#18: better-api-1671404-18.patch queued for re-testing.
Comment #21
gdrupal commentedWe can commit this but for now make more sense to focus our work on the 2.x branch.
Comment #22
dagmarLet focus on 7.x-2.x.