stable

Clone or download

Read-only

Refactoring: Factorize header options for milestones

Code to build header options was duplicated between VirtualTopMilestoneController (aka top backlog) and MilestoneController (regular milestones). In order to add more behavior later in this logic (in order to have a current context section in AD panes), this commit only refactors the duplication. This will avoid a too big review. Part of story #16206: ยซ + New ยป button, better contextualisation Change-Id: I4b1cd704be75841be72a485ba060c4adbf4d37a5

Modified Files

Name
A plugins/agiledashboard/include/AgileDashboard/Milestone/HeaderOptionsProvider.php +55 โˆ’0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboardRouterBuilder.php +3 โˆ’1 Go to diff View file
M plugins/agiledashboard/include/Planning/MilestoneController.class.php +11 โˆ’17 Go to diff View file
M plugins/agiledashboard/include/Planning/MilestoneControllerFactory.class.php +13 โˆ’4 Go to diff View file
M plugins/agiledashboard/include/Planning/VirtualTopMilestoneController.class.php +11 โˆ’16 Go to diff View file
A plugins/agiledashboard/tests/unit/AgileDashboard/Milestone/HeaderOptionsProviderTest.php +85 โˆ’0 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Planning/MilestoneControllerTest.php +4 โˆ’2 Go to diff View file