Class: Groups::ParticipantsService

Inherits:
BaseService show all
Includes:
Gitlab::Utils::StrongMemoize, Users::ParticipableService
Defined in:
app/services/groups/participants_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #group, #params

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods inherited from BaseService

#initialize

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

This class inherits a constructor from Groups::BaseService

Instance Method Details

#execute(noteable) ⇒ Object



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

def execute(noteable)
  @noteable = noteable

  participants =
    noteable_owner +
    participants_in_noteable +
    all_members +
    groups +
    group_hierarchy_users

  render_participants_as_hash(participants.uniq)
end