diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
commit | 7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch) | |
tree | 5bdc2229f5198d516781f8d24eace62fc7e589e9 /app/models/concerns/issuable.rb | |
parent | 185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff) |
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'app/models/concerns/issuable.rb')
-rw-r--r-- | app/models/concerns/issuable.rb | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb index f8389865f91..31b2a8d7cc1 100644 --- a/app/models/concerns/issuable.rb +++ b/app/models/concerns/issuable.rb @@ -217,6 +217,10 @@ module Issuable false end + def supports_confidentiality? + false + end + def severity return IssuableSeverity::DEFAULT unless supports_severity? @@ -236,7 +240,6 @@ module Issuable end def validate_assignee_size_length - return true unless Feature.enabled?(:limit_assignees_per_issuable) return true unless assignees.size > MAX_NUMBER_OF_ASSIGNEES_OR_REVIEWERS errors.add :assignees, @@ -460,18 +463,6 @@ module Issuable end end - def today? - Date.today == created_at.to_date - end - - def created_hours_ago - (Time.now.utc.to_i - created_at.utc.to_i) / 3600 - end - - def new? - created_hours_ago < 24 - end - def open? opened? end |