stable
Clone or download
Read-only
Part of story #24166 apply a naming pattern on files to enforce a convention Note: this contribution does not take in account any predefined variable. How to test: - In your db, add a pattern, e.g: ${TITLE}-tuleap#${ID}-${VERSION_NAME}-${STATUS} for a project in the table `plugin_docman_project_settings` - Go to the document UI and create a new file document. - Downlad the document. => The filename should be litterally ${TITLE}-tuleap#${ID}-${VERSION_NAME}-${STATUS} - Create a new document version and download the file from the newly created version. => The filename should be litterally ${TITLE}-tuleap#${ID}-${VERSION_NAME}-${STATUS} Change-Id: Ib2642bebf9058a275181840dcd6c8ed9fc8b9142
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/REST/v1/DocmanEmptyDocumentsResource.php | +5 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanFilesResource.php | +5 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemCreator.php | +19 | −68 | Go to diff View file |
M | plugins/docman/include/REST/v1/Files/DocmanFileVersionCreator.php | +12 | −14 | Go to diff View file |
M | plugins/docman/include/REST/v1/Folders/DocmanItemCreatorBuilder.php | +6 | −2 | Go to diff View file |
M | plugins/docman/tests/unit/REST/v1/DocmanItemCreatorTest.php | +7 | −2 | Go to diff View file |
M | plugins/docman/tests/unit/REST/v1/Files/DocmanFileVersionCreatorTest.php | +6 | −4 | Go to diff View file |