Closed (fixed)
Project:
Configuration Management
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Nov 2012 at 17:26 UTC
Updated:
17 Dec 2012 at 23:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
GDrupal commentedComment #2
GDrupal commentedCommitted
Comment #3
GDrupal commentedAdd support dependencies to the export test method.
Comment #4
dagmarIf the docs says return an array, you shouldn't return FALSE.
Also, I think this patch is not correct. What is the implementation of dependenciesToExport? The iterate method is who proccess this dependencies.
Comment #5
GDrupal commentedSince we are perhaps creating the object to test export manually... we cant use the same list as import dependencies.. its the same idea that the previous patch that is already working only to separate the list of dependencies to check for import /export test cases. This is already working in my local, i'm just trying to make the patch smaller to concentrate in other bugs I have found.
Comment #6
dagmarI understand that, however that function provides other way to do the same. Also I see this more like a hack than a testing function. Maybe if you show the original issue we can find an elegant solution without introduce this hack.
Comment #7
GDrupal commentedIt's not a hack... simply a wrapper to provide a custom list of dependencies to check... so when you export a component.. the already existing test method looks for that components too....it's doing exactly the same as configToImport() but for providing a list of dependencies... I think you have misunderstood the patch.
The previous patch provided "dependenciesToCheck()" doing something similar that "configToImport()" but for dependencies...
This patch expand that patch so now we have:
So we can also reuse all the logic in testExportToDataStore() checking for dependencies if we provide a list of them...
Comment #8
GDrupal commentedIn fact I just realized that we need another method in the same way to add a list of optional components to check for too.
Comment #9
GDrupal commentedComment #10
GDrupal commentedCommitted