stable

Clone or download

Read-only

Allow to create users in a given status

This task is part of story #8528: create nonexistant user account at import time There are situations when users should not be created as suspended users but as active or restricted ones. Now the create action in mapping file accepts the status as argument. List of possible statuses is [A, S, R]. Default status is S. Example of mapping file: name,action,comments jawad,create:R,"…" Change-Id: If728e22cd9ad4ac4e56c384c4bd00ee78fe603ea

Modified Files

Name
M src/common/user/XML/Import/MappingFileOptimusPrimeTransformer.php +28 −9 Go to diff View file
M src/common/user/XML/Import/ToBeCreatedUser.php +3 −1 Go to diff View file
M src/common/user/XML/Import/WillBeCreatedUser.php +17 −2 Go to diff View file
M tests/simpletest/common/user/XML/Import/MappingFileOptimusPrimeTransformerTest.php +43 −3 Go to diff View file
M tests/simpletest/common/user/XML/Import/MappingTest.php +1 −1 Go to diff View file
M tests/simpletest/common/user/XML/Import/UsersToBeImportedCollectionTest.php +1 −1 Go to diff View file
M tests/simpletest/common/user/XML/Import/WillBeCreatedUserTest.php +2 −1 Go to diff View file