stable
Clone or download
Read-only
The user to set as the project owner can referenced the same way than the REST route allowing to update the user groups. Data model of the project certification was wrong, multiple project owners was allowed per project but the whole feature is planned for only project owner per project. The model has been updated but a forgeupgrade can not be provided as the operation can not be done without data loss. The table must either be completely dropped and created again or manually updated. The plugin is not available in the repositories yet so this only impact a few integrators. This is part of story #12161 have a project owner at project creation Change-Id: I6e0498bc6de17ffa5f366f3abc4ee33766f01384
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/project_certification/db/install.sql | +2 | −3 | Go to diff View file |
A | plugins/project_certification/include/ProjectOwner/OnlyProjectAdministratorCanBeSetAsProjectOwnerException.php | +30 | −0 | Go to diff View file |
M | plugins/project_certification/include/ProjectOwner/ProjectOwnerDAO.php | +6 | −3 | Go to diff View file |
A | plugins/project_certification/include/ProjectOwner/ProjectOwnerUpdater.php | +46 | −0 | Go to diff View file |
A | plugins/project_certification/include/REST/ProjectCertificationPUTRepresentation.php | +31 | −0 | Go to diff View file |
M | plugins/project_certification/include/REST/ProjectCertificationResource.php | +68 | −11 | Go to diff View file |
A | plugins/project_certification/phpunit/ProjectOwner/ProjectOwnerUpdaterTest.php | +83 | −0 | Go to diff View file |
M | plugins/project_certification/tests/rest/ProjectCertificationTest.php | +47 | −16 | Go to diff View file |
M | src/common/DB/DataAccessObject.php | +25 | −0 | Go to diff View file |
M | src/common/project/Admin/ProjectUGroup/DynamicUGroupMembersUpdater.php | +1 | −1 | Go to diff View file |
A | src/common/project/REST/UserRESTReferenceRepresentation.php | +60 | −0 | Go to diff View file |
A | src/common/project/REST/UserRESTReferenceRetriever.php | +86 | −0 | Go to diff View file |
M | src/common/project/REST/v1/UserGroupResource.class.php | +59 | −72 | Go to diff View file |
M | src/common/project/UserPermissionsDao.php | +0 | −19 | Go to diff View file |
A | tests/phpunit/common/DB/DataAccessObjectTest.php | +93 | −0 | Go to diff View file |
M | tests/phpunit/common/Project/DynamicUGroupMembersUpdaterTest.php | +2 | −2 | Go to diff View file |
A | tests/phpunit/common/Project/REST/UserRESTReferenceRetrieverTest.php | +119 | −0 | Go to diff View file |