Module: Namespaces::Groups::ArchiveEvents

Included in:
ArchiveService, UnarchiveService
Defined in:
app/services/concerns/namespaces/groups/archive_events.rb

Instance Method Summary collapse

Instance Method Details

#publish_eventsObject



6
7
8
# File 'app/services/concerns/namespaces/groups/archive_events.rb', line 6

def publish_events
  publish_group_archived_event
end

#publish_group_archived_eventObject



10
11
12
13
14
15
16
17
# File 'app/services/concerns/namespaces/groups/archive_events.rb', line 10

def publish_group_archived_event
  event = Namespaces::Groups::GroupArchivedEvent.new(data: {
    group_id: group.id,
    root_namespace_id: group.root_ancestor.id
  })

  Gitlab::EventStore.publish(event)
end