summaryrefslogtreecommitdiff
path: root/app/models/todo.rb
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2022-07-28 13:33:09 +0000
committerGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2022-07-28 13:33:09 +0000
commit328ff31ff9e6147e4fb883aaee113001da150b9e (patch)
treee1c4c45aa86e7d3f3da88030b892764fff3bc0ff /app/models/todo.rb
parent4dc46d5b97305108c1b635baa4241a2ce04a7ed0 (diff)
parentf415ebdb978c4eb976d07664219c788918120d59 (diff)
downloadgitlab-ce-15-0-stable.tar.gz
Merge remote-tracking branch 'dev/15-0-stable' into 15-0-stable15-0-stable
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index 45ab770a0f6..3f589faa4d8 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -74,6 +74,7 @@ class Todo < ApplicationRecord
scope :for_commit, -> (id) { where(commit_id: id) }
scope :with_entity_associations, -> { preload(:target, :author, :note, group: :route, project: [:route, { namespace: [:route, :owner] }]) }
scope :joins_issue_and_assignees, -> { left_joins(issue: :assignees) }
+ scope :for_internal_notes, -> { joins(:note).where(note: { confidential: true }) }
enum resolved_by_action: { system_done: 0, api_all_done: 1, api_done: 2, mark_all_done: 3, mark_done: 4 }, _prefix: :resolved_by