Commit f9202e28 authored by James Lopez's avatar James Lopez

Merge branch 'issue_209881_2' into 'master'

Default issue health status feature flag to on

See merge request gitlab-org/gitlab!28146
parents 6caeeef5 e2493b50
...@@ -44,7 +44,7 @@ class Projects::IssuesController < Projects::ApplicationController ...@@ -44,7 +44,7 @@ class Projects::IssuesController < Projects::ApplicationController
before_action do before_action do
push_frontend_feature_flag(:vue_issuable_sidebar, project.group) push_frontend_feature_flag(:vue_issuable_sidebar, project.group)
push_frontend_feature_flag(:save_issuable_health_status, project.group) push_frontend_feature_flag(:save_issuable_health_status, project.group, default_enabled: true)
end end
before_action only: :show do before_action only: :show do
......
...@@ -182,12 +182,12 @@ To help you track the status of your issues, you can assign a status to each iss ...@@ -182,12 +182,12 @@ To help you track the status of your issues, you can assign a status to each iss
#### Enable issue health status #### Enable issue health status
This feature comes with the `:save_issuable_health_status` feature flag disabled by default. However, in some cases This feature comes with the `:save_issuable_health_status` feature flag enabled by default. However, in some cases
this feature is incompatible with old configuration. To turn on the feature while configuration is this feature is incompatible with old configuration. To turn off the feature while configuration is
migrated, ask a GitLab administrator with Rails console access to run the following command: migrated, ask a GitLab administrator with Rails console access to run the following command:
```ruby ```ruby
Feature.enable(:save_issuable_health_status) Feature.disable(:save_issuable_health_status)
``` ```
## Other Issue actions ## Other Issue actions
......
...@@ -16,6 +16,6 @@ module HealthStatus ...@@ -16,6 +16,6 @@ module HealthStatus
def supports_health_status? def supports_health_status?
return false unless resource_parent&.feature_available?(:issuable_health_status) return false unless resource_parent&.feature_available?(:issuable_health_status)
::Feature.enabled?(:save_issuable_health_status, resource_parent.try(:group)) ::Feature.enabled?(:save_issuable_health_status, resource_parent.try(:group), default_enabled: true)
end end
end end
---
title: Allow to save issue health status
merge_request: 28146
author:
type: added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment