stable

Clone or download

Read-only

Serialized project sidebar configuration contains instance and user information

The values can be seen in the serialized configuration returned by the REST endpoint `GET /projects/:id/3rd_party_integration_data`. The returned config is expected to match what is expected by the Project Sidebar component (see src/scripts/lib/project-sidebar-internal/src/configuration.ts). Remaining parts of the configuration will be added in other contributions. Ultimately this configuration will also be used to replace the existing presenters currently used in the FlamingParrot and BurningParrot themes. Part of story #24227: have private oauth2 endpoints for Mediawiki Change-Id: Ib868ec1013ee99f6a9e0af73faca5d1ae2c14e31

Modified Files

Name
A src/common/Layout/ProjectSidebar/InstanceInformation/ProjectSidebarInstanceInformation.php +58 −0 Go to diff View file
A src/common/Layout/ProjectSidebar/InstanceInformation/ProjectSidebarInstanceVersionInformation.php +50 −0 Go to diff View file
A src/common/Layout/ProjectSidebar/InstanceInformation/ProjectSidebarLegacyPNGHref.php +50 −0 Go to diff View file
A src/common/Layout/ProjectSidebar/InstanceInformation/ProjectSidebarLogoInformation.php +49 −0 Go to diff View file
A src/common/Layout/ProjectSidebar/InstanceInformation/ProjectSidebarSVGLogo.php +50 −0 Go to diff View file
A src/common/Layout/ProjectSidebar/ProjectSidebarConfigRepresentation.php +62 −0 Go to diff View file
A src/common/Layout/ProjectSidebar/User/ProjectSidebarUser.php +43 −0 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +18 −1 Go to diff View file
M src/common/Project/REST/v1/ProjectSidebarDataRepresentation.php +3 −3 Go to diff View file
M tests/rest/tests/ProjectTest.php +1 −0 Go to diff View file
A tests/unit/common/Layout/ProjectSidebar/InstanceInformation/ProjectSidebarInstanceInformationTest.php +74 −0 Go to diff View file
A tests/unit/common/Layout/ProjectSidebar/InstanceInformation/ProjectSidebarLegacyPNGHrefTest.php +73 −0 Go to diff View file
A tests/unit/common/Layout/ProjectSidebar/InstanceInformation/ProjectSidebarSVGLogoTest.php +78 −0 Go to diff View file
A tests/unit/common/Layout/ProjectSidebar/ProjectSidebarConfigRepresentationTest.php +68 −0 Go to diff View file