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.



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

def initialize(project)
  @project = project
end

Instance Method Details

#executeObject



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

def execute
  refresh_authorizations if needs_refresh?
  ServiceResponse.success
end