stable

Clone or download

Read-only

Displays the changelog modal when a file is updated via DnD

Part story #24166 apply a naming pattern on files to enforce a convention The modal should be displayed when a file is updated via the drag and drop and if a filename pattern is set How to test: - make composer - Set a filename pattern with at least ${TITLE} and ${VERSION_NAME} variable - Update a file via the DnD => The changelog modal is displayed - Set a version name. e.g: yay_version_name - Download the new version => The filename should contains `yay_version_name` Change-Id: I07b121dda1f44767dd8627c579ff750cbe09e036

Modified Files

Name
M plugins/document/composer.json +6 −1 Go to diff View file
A plugins/document/include/Config/ChangeLogModalDisplayer.php +47 −0 Go to diff View file
M plugins/document/include/Tree/DocumentTreeController.php +3 −3 Go to diff View file
M plugins/document/include/Tree/DocumentTreePresenter.php +1 −7 Go to diff View file
M plugins/document/include/documentPlugin.php +8 −1 Go to diff View file
M plugins/document/scripts/document/index.js +1 −1 Go to diff View file
M plugins/document/templates/document-tree.mustache +1 −1 Go to diff View file
A plugins/document/tests/unit/Config/ChangelogModalDisplayerTest.php +60 −0 Go to diff View file
A plugins/document/tests/unit/Stubs/FilenamePatternRetrieverStub.php +48 −0 Go to diff View file