stable

Clone or download

Read-only

feat: Initiate baseline admin page

As project administrator, Go to /plugins/baseline/<project>/admin โžก๏ธ You should see a form to set the administrators As project member, Go to /plugins/baseline/<project>/admin โžก๏ธ You should not be allowed to access the page As a site administrator, Go to /plugins/baseline/<project>/admin โžก๏ธ You should see a form to set the administrators As project administrator, Go to project ยป admin ยป groups, Create a group "Developers", Add project member inside this group, In db insert an entry in plugin_baseline_role_assignement: (<ugroup_id>, "BASELINE_ADMIN", <project_id>). Go to /plugins/baseline/<project>/admin โžก๏ธ You should see Developers selected in the form As project member, Go to /plugins/baseline/<project>/admin โžก๏ธ You now have access to the administration and can access to the baselines Note: the form is not usable yet, it will be implemented later. Part of story #26359: define dedicated baseline administrators & readers Change-Id: I8cf42cfc98754d80907b70cb131839d6f9248889

Modified Files

Name
M plugins/baseline/composer.json +5 โˆ’0 Go to diff View file
A plugins/baseline/include/Adapter/Administration/AdminPermissionsPresenter.php +36 โˆ’0 Go to diff View file
A plugins/baseline/include/Adapter/Administration/AdminPermissionsPresenterBuilder.php +60 โˆ’0 Go to diff View file
A plugins/baseline/include/Adapter/Administration/IBuildAdminPermissionsPresenter.php +29 โˆ’0 Go to diff View file
A plugins/baseline/include/Adapter/Administration/UgroupPresenter.php +33 โˆ’0 Go to diff View file
M plugins/baseline/include/Adapter/AuthorizationsImpl.php +9 โˆ’18 Go to diff View file
A plugins/baseline/include/Adapter/Routing/RejectNonBaselineAdministratorMiddleware.php +66 โˆ’0 Go to diff View file
M plugins/baseline/include/BaselineTuleapService.php +9 โˆ’0 Go to diff View file
M plugins/baseline/include/Domain/Authorizations.php +2 โˆ’0 Go to diff View file
A plugins/baseline/include/ServiceAdministrationController.php +92 โˆ’0 Go to diff View file
M plugins/baseline/include/baselinePlugin.php +29 โˆ’0 Go to diff View file
M plugins/baseline/site-content/fr_FR/LC_MESSAGES/tuleap-baseline.po +16 โˆ’0 Go to diff View file
A plugins/baseline/templates/baselines-admin.mustache +38 โˆ’0 Go to diff View file
A plugins/baseline/tests/unit/Adapter/Administration/AdminPermissionsPresenterBuilderTest.php +77 โˆ’0 Go to diff View file
A plugins/baseline/tests/unit/Adapter/Routing/RejectNonBaselineAdministratorMiddlewareTest.php +146 โˆ’0 Go to diff View file
A plugins/baseline/tests/unit/ServiceAdministrationControllerTest.php +113 โˆ’0 Go to diff View file
M plugins/baseline/tests/unit/Stub/FullAccessAuthorizationsStub.php +5 โˆ’0 Go to diff View file
A plugins/baseline/tests/unit/Stub/ReaderAuthorizationsStub.php +80 โˆ’0 Go to diff View file
A plugins/baseline/tests/unit/Support/IsProjectAllowedToUsePluginStub.php +47 โˆ’0 Go to diff View file
A plugins/baseline/tests/unit/Support/NoopSapiEmitter.php +34 โˆ’0 Go to diff View file
M plugins/graphontrackersv5/include/graphontrackersv5Plugin.php +1 โˆ’1 Go to diff View file
M src/common/PFO/Project.php +6 โˆ’1 Go to diff View file
A src/common/Plugin/IsProjectAllowedToUsePlugin.php +34 โˆ’0 Go to diff View file
M src/common/Plugin/Plugin.php +6 โˆ’2 Go to diff View file
M src/common/Project/Group.class.php +4 โˆ’1 Go to diff View file
M src/common/Project/Project.class.php +13 โˆ’3 Go to diff View file
A src/common/Project/Routing/ProjectByNameRetrieverMiddleware.php +55 โˆ’0 Go to diff View file
M src/common/Request/ProjectRetriever.php +9 โˆ’0 Go to diff View file
M src/common/User/ForgeUserGroupFactory.php +12 โˆ’1 Go to diff View file
A tests/unit/common/Project/Routing/ProjectByNameRetrieverMiddlewareTest.php +61 โˆ’0 Go to diff View file
A tests/unit/common/Request/CaptureRequestHandler.php +53 โˆ’0 Go to diff View file
M tests/unit/common/Request/ProjectRetrieverTest.php +42 โˆ’24 Go to diff View file