Class: Boards::Issues::ListService
- Inherits:
-
BaseItemsListService
- Object
- BaseService
- BaseService
- BaseItemsListService
- Boards::Issues::ListService
- 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
-
.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.
- .valid_params ⇒ Object
Methods inherited from BaseItemsListService
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 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_params ⇒ Object
8 9 10 |
# File 'app/services/boards/issues/list_service.rb', line 8 def self.valid_params IssuesFinder.valid_params end |