stable
Clone or download
When we create a project from another one, then milestones in sidebar configuration should be duplicated. To test this you need to hack the database table plugin_agiledashboard_milestones_in_sidebar_config and set should_sidebar_display_last_milestones to 1 for a project A. In this project » backlog » admin, you should see a checked checkbox "Display milestones in sidebar". Create a new project B from project A. In this new project » backlog » admin, you should also see the checked checkbox "Display milestones in sidebar". This means that config has been duplicated. Now hack the database table to set should_sidebar_display_last_milestones to 0 for the project A. Create a new project C from project A. In this new project » backlog » admin, you should not see any checked checkbox "Display milestones in sidebar", meaning the config has been duplicated. Part of story #35104: Milestones below Backlog Change-Id: Id4caa3414ad6f2dc4ee45657cdfeb1e5fcd49559
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/agiledashboard/include/AgileDashboard/ConfigurationManager.class.php | +4 | −1 | Go to diff View file |
A | plugins/agiledashboard/include/AgileDashboard/Milestone/Sidebar/DuplicateMilestonesInSidebarConfig.php | +26 | −0 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/Milestone/Sidebar/MilestonesInSidebarDao.php | +12 | −1 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboardRouterBuilder.php | +2 | −1 | Go to diff View file |
M | plugins/agiledashboard/include/agiledashboardPlugin.php | +2 | −1 | Go to diff View file |
M | plugins/agiledashboard/tests/unit/AgileDashboard/AgileDashboard_ConfigurationManagerTest.php | +22 | −0 | Go to diff View file |
A | plugins/agiledashboard/tests/unit/Stub/Milestone/Sidebar/DuplicateMilestonesInSidebarConfigStub.php | +49 | −0 | Go to diff View file |
M | tests/lib/Milestone/Sidebar/MilestonesInSidebarDaoTest.php | +31 | −3 | Go to diff View file |