Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_transfered_event.rb « projects « events « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 14cc53daabb535562e94d16d6b98e1a0a416658d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Projects
  class ProjectTransferedEvent < ::Gitlab::EventStore::Event
    def schema
      {
        'type' => 'object',
        'properties' => {
          'project_id' => { 'type' => 'integer' },
          'old_namespace_id' => { 'type' => 'integer' },
          'old_root_namespace_id' => { 'type' => 'integer' },
          'new_namespace_id' => { 'type' => 'integer' },
          'new_root_namespace_id' => { 'type' => 'integer' }
        },
        'required' => %w[
          project_id
          old_namespace_id
          old_root_namespace_id
          new_namespace_id
          new_root_namespace_id
        ]
      }
    end
  end
end