stable

Clone or download

Read-only

Define threshold in site admin

As site admin, I can go to admin ยป Document ยป File download limits. Here I can define two settings: 1. **Maximum file size of the archive**: if computed size of the generated archive of a folder exceed this limit, then the user won't be able to proceed to the download. 2. **Warning threshold**: if computed size of the generated archive of a folder exceed this limit, then a warning will be displayed to the user so that he knows that the download will take a relative amount of time. Only the site admin configuration is done in this commit. Those settings will be used later, in a dedicated commit. Part of story #12404: download folder as zip Change-Id: I708272e1ee9bee30e5ee8f91ae5f76a9bfa4a8ac

Modified Files

Name
A plugins/docman/include/DocmanSettingsSiteAdmin/DocmanSettingsTabPresenter.php +50 โˆ’0 Go to diff View file
A plugins/docman/include/DocmanSettingsSiteAdmin/DocmanSettingsTabsPresenterCollection.php +66 โˆ’0 Go to diff View file
A plugins/docman/include/DocmanSettingsSiteAdmin/DocmanSettingsTabsPresenterCollectionBuilder.php +44 โˆ’0 Go to diff View file
A plugins/docman/include/DocmanSettingsSiteAdmin/FileUploadTabPresenter.php +33 โˆ’0 Go to diff View file
M plugins/docman/include/DocmanSettingsSiteAdmin/FilesUploadLimits/DocmanFilesUploadLimitsAdminController.php +12 โˆ’3 Go to diff View file
M plugins/docman/include/DocmanSettingsSiteAdmin/FilesUploadLimits/DocmanFilesUploadLimitsAdminPresenter.php +11 โˆ’1 Go to diff View file
M plugins/docman/include/docmanPlugin.php +3 โˆ’1 Go to diff View file
M plugins/docman/templates/document-settings.mustache +3 โˆ’1 Go to diff View file
M plugins/document/composer.json +1 โˆ’1 Go to diff View file
A plugins/document/include/Config/Admin/FileDownloadTabPresenter.php +36 โˆ’0 Go to diff View file
A plugins/document/include/Config/Admin/FilesDownloadLimitsAdminController.php +96 โˆ’0 Go to diff View file
A plugins/document/include/Config/Admin/FilesDownloadLimitsAdminPresenter.php +59 โˆ’0 Go to diff View file
A plugins/document/include/Config/Admin/FilesDownloadLimitsAdminSaveController.php +119 โˆ’0 Go to diff View file
A plugins/document/include/Config/FileDownloadLimits.php +56 โˆ’0 Go to diff View file
A plugins/document/include/Config/FileDownloadLimitsBuilder.php +41 โˆ’0 Go to diff View file
M plugins/document/include/documentPlugin.php +24 โˆ’1 Go to diff View file
M plugins/document/site-content/fr_FR/LC_MESSAGES/tuleap-document.po +57 โˆ’2 Go to diff View file
A plugins/document/templates/files-download-limits.mustache +89 โˆ’0 Go to diff View file
A plugins/document/tests/unit/Config/Admin/FilesDownloadLimitsAdminControllerTest.php +107 โˆ’0 Go to diff View file
A plugins/document/tests/unit/Config/Admin/FilesDownloadLimitsAdminSaveControllerTest.php +192 โˆ’0 Go to diff View file
A plugins/document/tests/unit/Config/FileDownloadLimitsBuilderTest.php +63 โˆ’0 Go to diff View file
A plugins/document/tests/unit/DocmanSettingsSiteAdmin/DocmanSettingsTabsPresenterCollectionTest.php +57 โˆ’0 Go to diff View file