Class: AuthorizedProjectUpdate::ProjectRecalculateService

Inherits:
Object
  • Object
show all
Includes:
Gitlab::Utils::StrongMemoize
Defined in:
app/services/authorized_project_update/project_recalculate_service.rb

Direct Known Subclasses

ProjectRecalculatePerUserService

Constant Summary collapse

BATCH_SIZE =
1000

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ ProjectRecalculateService

Returns a new instance of ProjectRecalculateService.



9
10
11
# File 'app/services/authorized_project_update/project_recalculate_service.rb', line 9

def initialize(project)
  @project = project
end

Instance Method Details

#executeObject



13
14
15
16
# File 'app/services/authorized_project_update/project_recalculate_service.rb', line 13

def execute
  refresh_authorizations if needs_refresh?
  ServiceResponse.success
end