stable
Clone or download
part of story #13132 Use new document UI by default if project does not use required propeties How to test: Have a project with at least one document required metadata => when user go on docman, he's still on legacy UI - With you user switch to old/new UI => user should be redirected every time on correct UI Have a project without custom required metadata => when user go on docman, he's redirected on the new UI - With this user switch between old/new UI => user is properly redirected everytime Have an other project without custom metadata + add its id in local.inc option sys_project_blacklist_which_uses_legacy_ui_by_default = [id, id2]; With a user who does not have any docman preferences access to docman => you should be redirected on legacy UI Additional tests: - depending on document availablity in project service docman link should be the new (non updatable) or the legacy one - Have a project without required metadata: and go on project > Admin > Service => check to docman url, it should be docman/projectname, save - Add you project in blacklist and go on project > Admin > Service => check docman url it should be the legacy one /plugin/docman/?project_id=XXX => you should be redirected on the legacy UI, as expected Change-Id: Ib37d311b62b04e6f49c4617cea443a696395e423
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/ExternalLinks/ExternalLinkRedirector.php | +4 | −6 | Go to diff View file |
M | plugins/docman/include/docmanPlugin.class.php | +12 | −0 | Go to diff View file |
M | plugins/docman/phpunit/ExternalLinks/ExternalLinkRedirectorTest.php | +14 | −19 | Go to diff View file |
A | plugins/document/include/DocumentUsageRetriever.php | +71 | −0 | Go to diff View file |
M | plugins/document/include/Tree/DocumentTreeController.php | +1 | −0 | Go to diff View file |
M | plugins/document/include/documentPlugin.class.php | +46 | −4 | Go to diff View file |
A | plugins/document/phpunit/.simpletest_skip | +0 | −0 | Go to diff View file |
A | plugins/document/phpunit/bootstrap.php | +20 | −0 | Go to diff View file |
A | plugins/document/phpunit/include/DocumentUsageRetrieverTest.php | +140 | −0 | Go to diff View file |
M | plugins/document/scripts/document/api/rest-querier.js | +15 | −0 | Go to diff View file |
M | plugins/document/scripts/document/api/rest-querier.spec.js | +5 | −6 | Go to diff View file |
M | plugins/document/scripts/document/store/actions.js | +3 | −4 | Go to diff View file |
M | plugins/document/scripts/document/store/actions.spec.js | +6 | −1 | Go to diff View file |
M | src/common/Project/Service/ServicePOSTDataBuilder.php | +4 | −2 | Go to diff View file |