Class: Boards::Issues::ListService

Inherits:
BaseItemsListService show all
Includes:
Gitlab::Utils::StrongMemoize
Defined in:
app/services/boards/issues/list_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #parent

Attributes inherited from BaseService

#current_user, #params, #project

Class Method Summary collapse

Methods inherited from BaseItemsListService

#execute, #metadata

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 Boards::BaseService

Class Method Details

.initialize_relative_positions(board, current_user, issues) ⇒ Object

It is a class method because we cannot apply it prior to knowing how many items should be fetched for a list.



14
15
16
17
18
# File 'app/services/boards/issues/list_service.rb', line 14

def self.initialize_relative_positions(board, current_user, issues)
  if Gitlab::Database.read_write? && !board.disabled_for?(current_user)
    Issue.move_nulls_to_end(issues)
  end
end

.valid_paramsObject



8
9
10
# File 'app/services/boards/issues/list_service.rb', line 8

def self.valid_params
  IssuesFinder.valid_params
end