Skip to content

Commit

Permalink
Drop with_target_project scope
Browse files Browse the repository at this point in the history
It's unused.
  • Loading branch information
hennevogel committed Dec 11, 2024
1 parent 12e4c9b commit 7c00d50
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/api/app/models/bs_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ class BsRequest < ApplicationRecord
scope :by_group_reviews, ->(group_ids) { where(reviews: { group: group_ids }) }

scope :obsolete, -> { where(state: OBSOLETE_STATES) }
scope :with_target_project, lambda { |target_project|
includes(:bs_request_actions).where('bs_request_actions.target_project': target_project)
}
scope :with_open_reviews_for, lambda { |review_attributes|
where(state: 'review', id: Review.where(review_attributes).where(state: 'new').select(:bs_request_id))
.includes(:reviews)
Expand Down

0 comments on commit 7c00d50

Please sign in to comment.