diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-30 18:09:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-30 18:09:03 +0300 |
commit | e7b262a4c5cf70fed6eb25ba7a0eb1336e6eb639 (patch) | |
tree | 4e1037d8fd8d93883e52d1fbd8b542dfc81a0436 /app/models/work_items | |
parent | b0139a824fba85e5b71e69f2c99d423700ff76cc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/work_items')
-rw-r--r-- | app/models/work_items/type.rb | 4 | ||||
-rw-r--r-- | app/models/work_items/widgets/weight.rb | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/app/models/work_items/type.rb b/app/models/work_items/type.rb index 843e7a7fb32..c52565196a1 100644 --- a/app/models/work_items/type.rb +++ b/app/models/work_items/type.rb @@ -21,11 +21,11 @@ module WorkItems }.freeze WIDGETS_FOR_TYPE = { - issue: [Widgets::Description, Widgets::Hierarchy, Widgets::Assignees], + issue: [Widgets::Assignees, Widgets::Description, Widgets::Hierarchy, Widgets::Weight], incident: [Widgets::Description], test_case: [Widgets::Description], requirement: [Widgets::Description], - task: [Widgets::Description, Widgets::Hierarchy, Widgets::Assignees] + task: [Widgets::Assignees, Widgets::Description, Widgets::Hierarchy, Widgets::Weight] }.freeze cache_markdown_field :description, pipeline: :single_line diff --git a/app/models/work_items/widgets/weight.rb b/app/models/work_items/widgets/weight.rb new file mode 100644 index 00000000000..f589378f307 --- /dev/null +++ b/app/models/work_items/widgets/weight.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module WorkItems + module Widgets + class Weight < Base + delegate :weight, to: :work_item + end + end +end |