stable
Clone or download
Read-only
Part of story #24166 apply a naming pattern on files to enforce a convention Note: This contribution concerns both UI 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 and docman UI and create a new file document with a title, e.g: zouzou. - Downlad the document. => The filename should be zouzou-tuleap#${ID}-${VERSION_NAME}-${STATUS} - Create a new document version and download the file from the newly created version. => The filename should be litterally zouzou-tuleap#${ID}-${VERSION_NAME}-${STATUS} Change-Id: I9f72f9da8018c50b9e138f4af61ac63670956dd5
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/Docman_Actions.class.php | +1 | −1 | Go to diff View file |
M | plugins/docman/include/FilenamePattern/FilenameBuilder.php | +10 | −2 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemCreator.php | +4 | −3 | Go to diff View file |
M | plugins/docman/include/REST/v1/Files/DocmanFileVersionCreator.php | +2 | −1 | Go to diff View file |
M | plugins/docman/tests/unit/FilenamePattern/FilenameBuilderTest.php | +15 | −4 | Go to diff View file |