stable

Clone or download

Read-only

Site admin can configure limit

Part of story #11196 - delete artifacts with REST api How to test: - In site-admin, go to Administration (navbar) > Tracker (sidebar) > Artifacts deletion (nav) - Try to setup a negative limit --> The html5 validator prevents you to submit the form - Given that you are a pirate of the internet, press F12 to open the page's code, then lower the min attribute of the input (like -20) - Try to setup a negative limit (for instance -10) --> A feeback ask you to give a valid limit (damn it!) - Finally, you give up to fight against the system and provide a positive value (for instance 10) --> A feedback warns you about the success of the operation --> The current limit is the one you have set up previously Change-Id: Ic94eaa7996a867c3309e7275c3eb97509a66c195

Modified Files

Name
A plugins/tracker/include/Tracker/Admin/ArtifactsDeletion/ArtifactsDeletionConfig.php +58 −0 Go to diff View file
M plugins/tracker/include/Tracker/Admin/ArtifactsDeletion/ArtifactsDeletionConfigController.php +43 −5 Go to diff View file
A plugins/tracker/include/Tracker/Admin/ArtifactsDeletion/ArtifactsDeletionConfigDAO.php +51 −0 Go to diff View file
M plugins/tracker/include/Tracker/Admin/ArtifactsDeletion/ArtifactsDeletionConfigPresenter.php +18 −3 Go to diff View file
M plugins/tracker/include/Tracker/Config/ConfigRouter.php +5 −1 Go to diff View file
M plugins/tracker/include/autoload.php +4 −2 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +16 −6 Go to diff View file
M plugins/tracker/site-content/tuleap-tracker.pot +12 −3 Go to diff View file
M plugins/tracker/templates/siteadmin-config/artifacts-deletion.mustache +30 −8 Go to diff View file
M plugins/tracker/www/config.php +8 −1 Go to diff View file