Method: Projects::ParticipantsService#execute

Defined in:
app/services/projects/participants_service.rb

#execute(noteable) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/services/projects/participants_service.rb', line 8

def execute(noteable)
  @noteable = noteable

  participants =
    noteable_owner +
    participants_in_noteable +
    all_members +
    project_members

  participants += groups(organization: organization) unless relation_at_search_limit?(project_members)
  participants = organization_user_details_for_participants(participants.uniq)

  render_participants_as_hash(participants)
end