-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
Backport 'Implement push notifications for conversations' messages' to v0.27 #12511
Backport 'Implement push notifications for conversations' messages' to v0.27 #12511
Conversation
* Refactor variables definitions in SendPushNotification spec * Add spec for ConversationMailer It also adds the factories to ease-up the specs * Extract ConversationMailer methods to HasConversation concern * Add PushNotificationMessage model * Implement push notifications for conversations' messages * Fix spec * Simplify PushNotificationMessage model by removing useless attributes * Fix url and icon methods in PushNotificationMessage As a bonus, there are more examples in the spec. * Add missing class in yardoc * Clarify signature * Use more idiomatic way of checking for presence Co-authored-by: Alexandru Emil Lupu <[email protected]> * Move module inclusion to the top for consistency Co-authored-by: Alexandru Emil Lupu <[email protected]> * Add skip_injection on factory definition Co-authored-by: Alexandru Emil Lupu <[email protected]> * Use alias_method for :user * Fix rubocop offenses --------- Co-authored-by: Alexandru Emil Lupu <[email protected]>
… backport/0.27/implement-push-notifications-f-12475
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.
The only thing I could found is that we're not using keyword arguments in PushNotificationMessage
. I'd prefer to use the same signature, just in case we have to backport a fix in the future
decidim-core/app/services/decidim/push_notification_message_sender.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Andrés Pereira de Lucena <[email protected]>
@andreslucena , i have applied the code suggestion, and for some reason, this does not work as expected with ruby 3.0.x In order to move forward the PR, I would revert to my initial PR. |
Let me check it out in a couple of minutes |
Co-authored-by: Andrés Pereira de Lucena <[email protected]>
Merging with the failing check from codecov |
🎩 What? Why?
Backport #12475 to v0.27