stable

Clone or download

Read-only

feat: Reverse default config

As per acceptance criteria: > At project level, it's possible to *deactivate* the display of > milestones below backlog (in Backlog Administration). This means that the default should be that all projects should have milestones in the sidebar. However since we don't want to deliver the feature until it is ready (next release) we should prevent usage of this feature right now. This is done by introducing another feature flag. Yep, yet another one. We have now two different feature flags for this feature: one for us, the developers, so that we can access the feature, and one that will be used by end users once the feature is done. The feature flag for developers will be removed once the feature is ready to put in the hand of early birds, while the other one will be kept for few (🤞) releases. Functional tests ---------------- feature_flag_allow_milestones_in_sidebar_dev_mode unset feature_flag_allow_milestones_in_sidebar 1 ➡️ no milestones in sidebar in every projects feature_flag_allow_milestones_in_sidebar_dev_mode 0 feature_flag_allow_milestones_in_sidebar 1 ➡️ no milestones in sidebar in every projects feature_flag_allow_milestones_in_sidebar_dev_mode 1 feature_flag_allow_milestones_in_sidebar unset ➡️ milestones in sidebar in every projects (except the ones that have 0 in plugin_agiledashboard_milestones_in_sidebar_config table) feature_flag_allow_milestones_in_sidebar_dev_mode 1 feature_flag_allow_milestones_in_sidebar 0 ➡️ no milestones in sidebar in every projects feature_flag_allow_milestones_in_sidebar_dev_mode 1 feature_flag_allow_milestones_in_sidebar 1 ➡️ milestones in sidebar in every projects (except the ones that have 0 in plugin_agiledashboard_milestones_in_sidebar_config table) Note: the integration test is moved to the right folder so that CI can catch errors. Part of story #35104: Milestones below Backlog Change-Id: I6e54212c0c847a9b73596d41226d7f510f67e938

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Milestone/Sidebar/MilestonesInSidebarDao.php +25 −10 Go to diff View file
M src/common/Config/ForgeConfig.php +5 −0 Go to diff View file
R tests/lib/Milestone/Sidebar/MilestonesInSidebarDaoTest.php Go to diff View file
M tests/unit/common/Config/ForgeConfigTest.php +5 −2 Go to diff View file