stable

Clone or download

Read-only

Display Programs of Team in Sidebar (FlamingParrot)

part of story #21791 see Programs & Teams in sidebar Entrypoint: FlamingParrot / BurningParrot Theme. They dispatch CollectLinkedProjects event which is then handled by CollectLinkedProjectsHandler in Program Management How to test: - Given you have configured a team project with at least one program, when you browse the Team project (only in FlamingParrot), you will see the list of Programs in the expanded sidebar - when the sidebar is collapsed, only the icon should be shown for now. In later commits, a popover will show more information. - when your current user cannot see any Program project, the "linked projects block" should not appear. - when the project is neither a Team nor a Program, the "block" should not appear. Change-Id: Ie74fcb24f8c30f38aec16ef07237227c19d359a1

Modified Files

Name
M plugins/program_management/include/Adapter/Team/TeamDao.php +15 −1 Go to diff View file
A plugins/program_management/include/Domain/Team/SearchProgramsOfTeam.php +31 −0 Go to diff View file
M plugins/program_management/include/Domain/Workspace/CollectLinkedProjectsHandler.php +35 −9 Go to diff View file
A plugins/program_management/include/Domain/Workspace/ProgramsSearcher.php +53 −0 Go to diff View file
M plugins/program_management/include/Domain/Workspace/TeamsSearcher.php +4 −1 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +8 −6 Go to diff View file
M plugins/program_management/tests/unit/Domain/Workspace/CollectLinkedProjectsHandlerTest.php +66 −10 Go to diff View file
A plugins/program_management/tests/unit/Domain/Workspace/ProgramsSearcherTest.php +59 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/Workspace/TeamsSearcherTest.php +3 −9 Go to diff View file
A plugins/program_management/tests/unit/Stub/SearchProgramsOfTeamStub.php +51 −0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +5 −0 Go to diff View file
M src/common/Project/Sidebar/LinkedProjectsCollection.php +1 −1 Go to diff View file
M src/common/Project/Sidebar/SearchLinkedProjects.php +1 −1 Go to diff View file
M src/themes/FlamingParrot/templates/project-sidebar.mustache +2 −0 Go to diff View file
M tests/lib/Stubs/SearchLinkedProjectsStub.php +1 −1 Go to diff View file