Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add events for creating and deleting relationships
Co-authored-by: Rubhan Azeem <rubhan.azeem@suse.com>
- Loading branch information
1 parent
6f7a0b6
commit 135988e
Showing
6 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module Event | ||
class Relationship < Base | ||
self.abstract_class = true | ||
payload_keys :description, :who, :user, :group, :project, :package, :role | ||
shortenable_key :description | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Event | ||
class RelationshipCreate < Relationship | ||
self.message_bus_routing_key = 'relationship.create' | ||
self.description = 'Relationship was created' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Event | ||
class RelationshipDelete < Relationship | ||
self.message_bus_routing_key = 'relationship.delete' | ||
self.description = 'Relationship was deleted' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters