Skip to content
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.28 #12490

Conversation

alecslupu
Copy link
Contributor

🎩 What? Why?

Backport #12475 to v0.28

♥️ Thank you!

* 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 <contact@alecslupu.ro>

* Move module inclusion to the top for consistency

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>

* Add skip_injection on factory definition

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>

* Use alias_method for :user

* Fix rubocop offenses

---------

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
@alecslupu alecslupu added backport Pull Requests that are a backport for a fixed bug module: core type: fix PRs that implement a fix for a bug labels Feb 20, 2024
@andreslucena andreslucena merged commit c4e1582 into release/0.28-stable Feb 21, 2024
103 checks passed
@andreslucena andreslucena deleted the backport/0.28/implement-push-notifications-f-12475 branch February 21, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Pull Requests that are a backport for a fixed bug module: core type: fix PRs that implement a fix for a bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants