stable

Clone or download

Read-only

feat: Export/import allow_artifact closure in XML

Export a project with 2 repositories: * one old (with allow_artifact_closure=0 in db) * one new (with allow_artifact_closure=1 in db) In the generated xml, you should have an attribute allow_artifact_closure for each repository, and the value should match the original settings. Import in a new project. Open `plugin_git` table. ➡️ The allow_artifact_closure column should reflect what have been imported. Note: the change of Git_GitoliteDriver is needed to be able to run tests in the IDE, which was complaining that required parameters should be set before optional ones (linked to PHP 8.1?) Part of story #26802: have smart commit with Tuleap Git Change-Id: Iae39f123c380eb2401b77cb2755e816c82b7ffa1

Modified Files

Name
M plugins/git/bin/gl-rename-project.php +5 −5 Go to diff View file
A plugins/git/include/Git/Repository/Settings/ArtifactClosure/ConfigureAllowArtifactClosure.php +29 −0 Go to diff View file
M plugins/git/include/GitDao.class.php +20 −1 Go to diff View file
M plugins/git/include/GitXMLExporter.php +16 −66 Go to diff View file
M plugins/git/include/GitXmlImporter.class.php +36 −104 Go to diff View file
M plugins/git/include/Git_GitoliteDriver.class.php +2 −2 Go to diff View file
M plugins/git/include/REST/v1/RepositoryResource.class.php +5 −5 Go to diff View file
M plugins/git/include/gitPlugin.php +9 −6 Go to diff View file
M plugins/git/tests/integration/GitXmlImporterTest.php +89 −3 Go to diff View file
M plugins/git/tests/integration/Gitolite/GitoliteDriverTest.php +4 −4 Go to diff View file
M plugins/git/tests/integration/Gitolite/GitoliteTestCase.php +2 −2 Go to diff View file
M plugins/git/tests/unit/GitXMLExporterTest.php +29 −3 Go to diff View file
M src/common/xml/resources/git-definition.rnc +1 −0 Go to diff View file
M src/common/xml/resources/project/git-definition.rng +5 −0 Go to diff View file
M src/common/xml/resources/project/project.rng +5 −0 Go to diff View file