app/controllers/student_review_controller.rb
def topic_list
    # get the participant that's the reviewer for the assignment
    @participant = AssignmentParticipant.find(params[:id])
    my_bids = ReviewBid.get_bids_by_participant(@participant)
    @bids = []
    my_teams = TeamsUser.where(user_id: @participant.user_id).map(&:team_id)
    # if self-review is not allowed
    if !@assignment.is_selfreview_enabled
      my_bids.each do |bid|
        next if my_teams.include?(bid.team_id)
        @bids << bid
      end
    else
      @bids = my_bids
    end
  end
# this method is used to show a submission list for students to bid when
# the review strategy is "bidding"
this method is used to show a submission list for students to bid when
the review strategy is "bidding"
this method is used to show a submission list for students to bid when the review strategy is " bidding "
def topic_list
    @participant = AssignmentParticipant.find(params[:id])
    my_bids = ReviewBid.get_bids_by_participant(@participant)
    @bids = []
    my_teams = TeamsUser.where(user_id: @participant.user_id).map(&:team_id)
    if !@assignment.is_selfreview_enabled
      my_bids.each do |bid|
        next if my_teams.include?(bid.team_id)
        @bids << bid
      end
    else
      @bids = my_bids
    end
  end
def topic_list @participant = AssignmentParticipant . find ( params [ :id ] ) my_bids = ReviewBid . get_bids_by_participant ( @participant ) @bids = [ ] my_teams = TeamsUser . where ( user_id : @participant . user_id ) . map ( & :team_id ) if ! @assignment . is_selfreview_enabled my_bids . each do | bid | next if my_teams . include? ( bid . team_id ) @bids << bid end else @bids = my_bids end end
this method is used to show a submission list for students to bid when
the review strategy is "bidding"
this method is used to show a submission list for students to bid when the review strategy is " bidding "
# get the participant that's the reviewer for the assignment # if self-review is not allowed