stable

Clone or download

Read-only

request #9455: XML import user mapping should provide an automap strategy

This is meant to be used with import directly: ./php-launcher.sh import_project_xml.php \ -u admin \ -i /usr/share/tuleap/import/import_user_automap \ -n users-01 \ --automap=no-email,create:A We should not end-up to a situation where a user require to be mapped to another one: * Either there is an exact match, LDAP id or username (in this order) * Or we create a new account. Change-Id: I67bbd9f078168a4cb92bb9da063b4df6ecf8dbdf

Modified Files

Name
A src/common/user/XML/Import/InvalidUserTypeException.php +28 −0 Go to diff View file
M src/common/user/XML/Import/MappingFileOptimusPrimeTransformer.php +29 −0 Go to diff View file
M src/common/user/XML/Import/UsersToBeImportedCollectionBuilder.php +38 −4 Go to diff View file
M src/utils/check_user_mapping_for_project_import.php +1 −1 Go to diff View file
M src/utils/generate_user_mapping_for_project_import.php +1 −1 Go to diff View file
M src/utils/import_project_xml.php +43 −8 Go to diff View file
M tests/simpletest/common/user/XML/Import/UsersToBeImportedCollectionBuilderTest.php +189 −37 Go to diff View file