Commit 8f765f31 authored by Coung Ngo's avatar Coung Ngo Committed by Dmytro Zaporozhets (DZ)

Default `show_inherited_labels` to true

Projects and subgroups can use all inherited labels but their
labels pages do not show all inherited labels. This commit
defaults `show_inherited_labels` to true to turn on this
feature to make available labels more visible.
parent 17e9f197
...@@ -6,6 +6,6 @@ module ShowInheritedLabelsChecker ...@@ -6,6 +6,6 @@ module ShowInheritedLabelsChecker
private private
def show_inherited_labels?(include_ancestor_groups) def show_inherited_labels?(include_ancestor_groups)
Feature.enabled?(:show_inherited_labels, @project || @group) || include_ancestor_groups # rubocop:disable Gitlab/ModuleWithInstanceVariables Feature.enabled?(:show_inherited_labels, @project || @group, default_enabled: true) || include_ancestor_groups # rubocop:disable Gitlab/ModuleWithInstanceVariables
end end
end end
---
title: Show all inherited labels in projects and subgroups
merge_request: 45161
author:
type: added
--- ---
name: show_inherited_labels name: show_inherited_labels
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42960 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42960
rollout_issue_url: rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/267547
group: group::project management group: group::project management
type: development type: development
default_enabled: false default_enabled: true
...@@ -57,9 +57,11 @@ and edit labels. ...@@ -57,9 +57,11 @@ and edit labels.
### Project labels ### Project labels
> Showing all inherited labels [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/241990) in 13.5.
To view the project labels list, navigate to the project and click **Issues > Labels**. To view the project labels list, navigate to the project and click **Issues > Labels**.
The list includes all labels that are defined at the project level, as well as all The list includes all labels that are defined at the project level, as well as all
labels inherited from the immediate parent group. labels defined by its ancestor groups.
For each label, you can see the project or group path from where it was created. For each label, you can see the project or group path from where it was created.
You can filter the list by entering a search query at the top and clicking search (**{search}**). You can filter the list by entering a search query at the top and clicking search (**{search}**).
......
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