• Albert Salim's avatar
    Update namespace statistics when project is destroyed · 1e78b395
    Albert Salim authored
    When a project is destroyed, Projects::ProjectDeletedEvent is published.
    
    A Namespaces::UpdateRootStatisticsWorker is subscribed to
    Projects::ProjectDeletedEvent. The worker will
    enqueue Namespaces::ScheduleAggregationWorker to
    update the namespace's root statistics.
    
    This change is behind a feature flag for publishing ProjectDeletedEvent.
    
    Changelog: fixed
    1e78b395
every_sidekiq_worker_spec.rb 23 KB