diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-06 21:11:04 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-06 21:11:04 +0000 |
commit | 9a4d4b7b9923c027b9bbfc256e5be463c481cbb2 (patch) | |
tree | b39696bccdd4ed717666eae6026db626363be146 /app/events | |
parent | c01e203d86defff72f655006b52536d6acb6322d (diff) | |
download | gitlab-ce-9a4d4b7b9923c027b9bbfc256e5be463c481cbb2.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/events')
-rw-r--r-- | app/events/groups/group_path_changed_event.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/events/groups/group_path_changed_event.rb b/app/events/groups/group_path_changed_event.rb new file mode 100644 index 00000000000..e8d9b733a0a --- /dev/null +++ b/app/events/groups/group_path_changed_event.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Groups + class GroupPathChangedEvent < ::Gitlab::EventStore::Event + def schema + { + 'type' => 'object', + 'properties' => { + 'group_id' => { 'type' => 'integer' }, + 'root_namespace_id' => { 'type' => 'integer' }, + 'old_path' => { 'type' => 'string' }, + 'new_path' => { 'type' => 'string' } + }, + 'required' => %w[group_id root_namespace_id old_path new_path] + } + end + end +end |