stable

Clone or download

Read-only

feat: Implement ADMIN perm for MW standalone

Same behavior than for READ or WRITE with the exception that only project members and static user groups can be selected as administrators Project administrators are always MW administrators). * Permission ADMIN can be set via the UI * REST API projects/:id/mediawiki_standalone_permissions reflects the permission * Admin permission is displayed in project admin permissions and history * Exported/imported via project XML * Inherited at project creation Part of story #25733: manage mediawiki permissions Change-Id: I65e491c25e74a3ea9a57103e42ad36bc93208bc7

Modified Files

Name
M plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsPresenter.php +1 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsPresenterBuilder.php +4 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/AdminSavePermissionsController.php +4 −3 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/PermissionPerGroupServicePaneBuilder.php +8 −11 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/PermissionsFromRequestExtractor.php +9 −21 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/ProjectPermissionsSaver.php +17 −2 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/AdminsRetriever.php +44 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/ISaveProjectPermissions.php +2 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/MediawikiPermissionsDao.php +9 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/ProjectPermissions.php +2 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/ProjectPermissionsRetriever.php +2 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/UserPermissionsBuilder.php +8 −2 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/WritersRetriever.php +3 −3 Go to diff View file
M plugins/mediawiki_standalone/include/REST/v1/MediawikiStandaloneProjectResource.php +6 −2 Go to diff View file
M plugins/mediawiki_standalone/include/XML/XMLMediaWikiExporter.php +10 −0 Go to diff View file
M plugins/mediawiki_standalone/include/XML/XMLMediaWikiImporter.php +19 −1 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +5 −0 Go to diff View file
M plugins/mediawiki_standalone/resources/mediawiki-definition.rnc +2 −1 Go to diff View file
M plugins/mediawiki_standalone/site-content/fr_FR/LC_MESSAGES/tuleap-mediawiki_standalone.po +17 −4 Go to diff View file
M plugins/mediawiki_standalone/site-content/pt_BR/LC_MESSAGES/tuleap-mediawiki_standalone.po +14 −2 Go to diff View file
M plugins/mediawiki_standalone/templates/project-admin-permissions.mustache +25 −2 Go to diff View file
M plugins/mediawiki_standalone/tests/integration/Permissions/MediawikiPermissionsDaoTest.php +56 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsControllerTest.php +5 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsPresenterBuilderTest.php +26 −2 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminSavePermissionsControllerTest.php +7 −1 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/PermissionPerGroupServicePaneBuilderTest.php +15 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/PermissionsFromRequestExtractorTest.php +9 −6 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/ProjectPermissionsSaverTest.php +15 −1 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/AdminsRetrieverTest.php +45 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/ISaveProjectPermissionsStub.php +18 −1 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/ISearchByProjectAndPermissionStub.php +18 −7 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/ReadersRetrieverTest.php +7 −1 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/UserPermissionsBuilderTest.php +49 −8 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/WritersRetrieverTest.php +7 −1 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/XML/XMLMediaWikiExporterTest.php +8 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/XML/XMLMediaWikiImporterTest.php +8 −0 Go to diff View file
M src/common/xml/resources/project/project.rng +9 −0 Go to diff View file