Class: Groups::ParticipantsService
- Inherits:
-
BaseService
- Object
- BaseService
- BaseService
- Groups::ParticipantsService
- Includes:
- Gitlab::Utils::StrongMemoize, Users::ParticipableService
- Defined in:
- app/services/groups/participants_service.rb
Constant Summary
Constants included from Users::ParticipableService
Users::ParticipableService::SEARCH_LIMIT
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
Methods inherited from BaseService
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
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 20 |
# File 'app/services/groups/participants_service.rb', line 8 def execute(noteable) @noteable = noteable participants = noteable_owner + participants_in_noteable + all_members + group_hierarchy_users participants += groups unless relation_at_search_limit?(group_hierarchy_users) render_participants_as_hash(participants.uniq) end |