Class: IssueLinks::CreateService
- Inherits:
-
IssuableLinks::CreateService
- Object
- BaseService
- IssuableLinks::CreateService
- IssueLinks::CreateService
- Includes:
- IncidentManagement::UsageData
- Defined in:
- app/services/issue_links/create_service.rb
Constant Summary
Constants included from Gitlab::Utils::UsageData
Gitlab::Utils::UsageData::DISTRIBUTED_HLL_FALLBACK, Gitlab::Utils::UsageData::FALLBACK, Gitlab::Utils::UsageData::HISTOGRAM_FALLBACK, Gitlab::Utils::UsageData::MAX_BUCKET_SIZE
Instance Attribute Summary
Attributes inherited from IssuableLinks::CreateService
#current_user, #issuable, #new_links, #params
Attributes inherited from BaseService
#current_user, #params, #project
Instance Method Summary collapse
Methods included from IncidentManagement::UsageData
Methods included from Gitlab::Utils::UsageData
#add, #add_metric, #alt_usage_data, #average, #count, #distinct_count, #estimate_batch_distinct_count, #histogram, #maximum_id, #measure_duration, #minimum_id, #redis_usage_data, #sum, #track_usage_event, #with_finished_at, #with_metadata, #with_prometheus_client
Methods inherited from IssuableLinks::CreateService
#execute, #initialize, #relate_issuables
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 IssuableLinks::CreateService
Instance Method Details
#linkable_issuables(issues) ⇒ Object
7 8 9 |
# File 'app/services/issue_links/create_service.rb', line 7 def linkable_issuables(issues) @linkable_issuables ||= issues.select { |issue| can?(current_user, :admin_issue_link, issue) } end |
#previous_related_issuables ⇒ Object
11 12 13 |
# File 'app/services/issue_links/create_service.rb', line 11 def @related_issues ||= issuable.(authorize: false).to_a end |