stable

Clone or download

Read-only

Generate user CSV file

This task is part of story #8528 create nonexistant user account at import time Introduce new script that generates a mapping file in order to know which users in the users.xml file correspond to users in the import server. To generate the file, you have to do: src/utils/php-launcher.sh src/utils/generate_user_mapping_for_project_import.php \ -u admin \ -i archive.zip \ -o users.csv The generated file is like: name,action,comments jdoe,activate,"Comment" nterray,create,"Comment" yrossetto,map:,"Comment" ... The comment gives to the user some information about actions he has to do on users in order to be able to do the import. For instance, he had to determinate which user map yrossetto: yrossetto,map:yannis,"Comment" The generated CSV file is not used yet in the import process. For more information about the data generation process, please see the flowchart[1]. Note: [1] https://tuleap.net/plugins/tracker/?aid=8528&field=1246&func=show-attachment&attachment=921 Change-Id: I258546408ed3ed9e2946e4dcf7025dc1ac3abe1a

Modified Files

Name
M src/common/autoload.php +10 −2 Go to diff View file
A src/common/user/XML/Import/AlreadyExistingUser.php +39 −0 Go to diff View file
A src/common/user/XML/Import/EmailDoesNotMatchUser.php +55 −0 Go to diff View file
A src/common/user/XML/Import/ToBeActivatedUser.php +53 −0 Go to diff View file
A src/common/user/XML/Import/ToBeCreatedUser.php +49 −0 Go to diff View file
A src/common/user/XML/Import/ToBeMappedUser.php +70 −0 Go to diff View file
A src/common/user/XML/Import/User.php +38 −0 Go to diff View file
A src/common/user/XML/Import/UsersToBeImportedCollection.php +47 −0 Go to diff View file
A src/common/user/XML/Import/UsersToBeImportedCollectionBuilder.php +118 −0 Go to diff View file
M src/common/xml/Security.class.php +11 −1 Go to diff View file
M src/utils/export_project_xml.php +6 −0 Go to diff View file
A src/utils/generate_user_mapping_for_project_import.php +118 −0 Go to diff View file
M src/utils/import_project_xml.php +6 −0 Go to diff View file
A tests/simpletest/common/user/XML/Import/UsersToBeImportedCollectionBuilderTest.php +331 −0 Go to diff View file
A tests/simpletest/common/user/XML/Import/UsersToBeImportedCollectionTest.php +143 −0 Go to diff View file
A tests/simpletest/common/user/XML/Import/_fixtures/.gitkeep +0 −0 Go to diff View file