stable

Clone or download

Read-only

feat: Implement WRITE perm for MW standalone

Same behavior than for READ with the exception that Anonymous (All users) cannot be selected for writers. * Permission WRITE can be set via the UI * REST API projects/:id/mediawiki_standalone_permissions reflects the permission * Write permission is displayed in project admin permissions * Exported/imported via project XML * Inherited at project creation Part of story #25733: manage mediawiki permissions Change-Id: I7b6af4908db0d66f784d5c713d6d6a217de39c82

Modified Files

Name
M plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsPresenter.php +2 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/AdminPermissionsPresenterBuilder.php +10 −3 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/AdminSavePermissionsController.php +1 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/PermissionPerGroupServicePaneBuilder.php +30 −3 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/PermissionsFromRequestExtractor.php +11 −1 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/Admin/ProjectPermissionsSaver.php +19 −2 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
A plugins/mediawiki_standalone/include/Permissions/PermissionWrite.php +36 −0 Go to diff View file
M plugins/mediawiki_standalone/include/Permissions/UserPermissionsBuilder.php +5 −2 Go to diff View file
A plugins/mediawiki_standalone/include/Permissions/WritersRetriever.php +42 −0 Go to diff View file
M plugins/mediawiki_standalone/include/REST/v1/MediawikiStandaloneProjectResource.php +4 −3 Go to diff View file
M plugins/mediawiki_standalone/include/XML/XMLMediaWikiExporter.php +27 −5 Go to diff View file
M plugins/mediawiki_standalone/include/XML/XMLMediaWikiImporter.php +46 −7 Go to diff View file
M plugins/mediawiki_standalone/include/mediawiki_standalonePlugin.php +18 −13 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 +12 −0 Go to diff View file
M plugins/mediawiki_standalone/site-content/pt_BR/LC_MESSAGES/tuleap-mediawiki_standalone.po +12 −0 Go to diff View file
M plugins/mediawiki_standalone/templates/project-admin-permissions.mustache +16 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/integration/Permissions/MediawikiPermissionsDaoTest.php +111 −20 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsControllerTest.php +16 −6 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminPermissionsPresenterBuilderTest.php +35 −8 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/AdminSavePermissionsControllerTest.php +17 −5 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/PermissionPerGroupServicePaneBuilderTest.php +36 −6 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/PermissionsFromRequestExtractorTest.php +9 −4 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/Admin/ProjectPermissionsSaverTest.php +22 −6 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 +9 −4 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/ReadersRetrieverTest.php +1 −1 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/Permissions/UserPermissionsBuilderTest.php +35 −30 Go to diff View file
A plugins/mediawiki_standalone/tests/unit/Permissions/WritersRetrieverTest.php +49 −0 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/XML/XMLMediaWikiExporterTest.php +16 −8 Go to diff View file
M plugins/mediawiki_standalone/tests/unit/XML/XMLMediaWikiImporterTest.php +10 −1 Go to diff View file
M src/common/User/ForgeUserGroupFactory.php +14 −0 Go to diff View file
M src/common/xml/resources/project/project.rng +20 −9 Go to diff View file