stable
Clone or download
Read-only
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 |