cli-generate-stuffs

Clone or download

Read-only

story #20144 Generate fieldchange value for openlist type field

Field change values are supplied by - field values when field is bound to ugroups or static, - tuleap REST API when field is bound to users How to test: - generate artifacts from a tracker with tbl field type of all of these three bindings (users, ugroups, static) --> the artifacts.xml file should contains all related field changes with values. Change-Id: Iaa76fa75588861a234fa6b2556c2a20e52c52012

Modified Files

Name
M src/App/Commands/ArtifactGeneratorCommand.php +7 −2 Go to diff View file
M src/App/Curl/CurlCaller.php +67 −9 Go to diff View file
A src/App/Retrievers/UsersRetriever.php +57 −0 Go to diff View file
M src/App/Tracker/Fields/Field.php +43 −0 Go to diff View file
M src/App/Tracker/Fields/FieldsCollection.php +1 −1 Go to diff View file
A src/App/Users/User.php +47 −0 Go to diff View file
A src/App/Users/UsersList.php +74 −0 Go to diff View file
M src/App/Xml/DataGenerator.php +11 −0 Go to diff View file
M src/App/Xml/XmlArtifactBuilder.php +4 −2 Go to diff View file
M src/App/Xml/XmlArtifactFieldFactory.php +7 −1 Go to diff View file
M src/App/Xml/XmlArtifactGenerator.php +4 −2 Go to diff View file
M src/App/Xml/XmlArtifactNodes/XmlArtifact.php +19 −4 Go to diff View file
M src/App/Xml/XmlArtifactNodes/XmlArtifactChangeset.php +7 −2 Go to diff View file
A src/App/Xml/XmlArtifactNodes/XmlArtifactFieldChanges/XmlArtifactOpenListFieldChange.php +144 −0 Go to diff View file
M tests/unit/Commands/ArtifactGeneratorCommandTest.php +5 −3 Go to diff View file
M tests/unit/Curl/CurlCallerTest.php +6 −6 Go to diff View file
A tests/unit/Retrievers/UsersRetrieverTest.php +58 −0 Go to diff View file
M tests/unit/Xml/XmlArtifactGeneratorTest.php +37 −13 Go to diff View file
M tests/unit/Xml/XmlArtifactNodes/XmlArtifactFieldChanges/XmlArtifactListFieldChangeTest.php +0 −1 Go to diff View file
A tests/unit/Xml/XmlArtifactNodes/XmlArtifactFieldChanges/XmlArtifactOpenListFieldChangeTest.php +125 −0 Go to diff View file