-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing event subject #16142
Missing event subject #16142
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should check for which events we send emails/rss...
I thought about that but still, I wouldn't mind to have a fallback already implemented. |
What interface? There is no interface to those that requires a subject. Or you mean the interface that might or might not exist in some future?
Sure. It's unused code without purpose. It will confuse people. |
The whole Anyway, as long as it is not enforced, let's stick to the ones that are currently used only. |
In such case, I'd propose implementing the subject method in the parent class without a message but with: As we already do in other STI parent classes like ScmPayload. |
That works for me 👍 @hennevogel , @saraycp I adapted the code accordingly. Feel free to take a look again. Thank you |
Nope, only the ones we allow to create subscriptions for... |
I found it, sorry for the noise:
|
@hennevogel I addressed all your comments by dropping the undesired |
054de73
to
63beb29
Compare
@@ -3,6 +3,10 @@ class ReportForPackage < Report | |||
self.description = 'Report for a package created' | |||
payload_keys :package_name, :project_name | |||
|
|||
def subject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to see by whom here but that needs some refactoring first...
Every subscribable
Event
has its ownsubject
(for RSS and Email) implementation.