Skip to content

Create notifications#1785

Merged
mrcasals merged 5 commits intofeature/follow-resourcesfrom
create-notifications
Aug 31, 2017
Merged

Create notifications#1785
mrcasals merged 5 commits intofeature/follow-resourcesfrom
create-notifications

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

🎩 What? Why?

This PR generates notifications in the system every time an event is fired, and that event supports notifications.

📌 Related Issues

@ghost ghost assigned mrcasals Aug 30, 2017
@ghost ghost added the in-progress label Aug 30, 2017
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 30, 2017

Codecov Report

Merging #1785 into feature/follow-resources will increase coverage by 0.01%.
The diff coverage is 100%.

@@                     Coverage Diff                      @@
##           feature/follow-resources    #1785      +/-   ##
============================================================
+ Coverage                     98.63%   98.65%   +0.01%     
============================================================
  Files                          1083     1098      +15     
  Lines                         24441    24617     +176     
============================================================
+ Hits                          24108    24285     +177     
+ Misses                          333      332       -1

Copy link
Copy Markdown
Contributor

@beagleknight beagleknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job! :)

@mrcasals mrcasals merged commit d29131f into feature/follow-resources Aug 31, 2017
@ghost ghost removed the in-review label Aug 31, 2017
@mrcasals mrcasals deleted the create-notifications branch August 31, 2017 07:22
@mrcasals mrcasals mentioned this pull request Aug 31, 2017
beagleknight pushed a commit that referenced this pull request Sep 7, 2017
* Create a notification for each follower when event is triggered

* Make events dcide who will receive the notification

* Add basic NotificationEvent module

* Only create notifications if event_class supports them

* Add event classes
oriolgual pushed a commit that referenced this pull request Sep 7, 2017
* Add Follow & Notification models (#1780)

* Add Follow entity

* Add Notification entity

* Add Followable concern

* Send events (#1781)

* Publish update/close meeting events

* Separate events from followable resources

* Fix factory

* Create notifications (#1785)

* Create a notification for each follower when event is triggered

* Make events dcide who will receive the notification

* Add basic NotificationEvent module

* Only create notifications if event_class supports them

* Add event classes

* Send email on event (#1786)

* Make meeting events support emails

* Send emails from events

* Add default values for event emails

* Fix specs

* Fix rubocop issues

* Customize email texts per event

* Add notification dashboard (#1788)

* Add basic NotificationDashboard

* Rename notification fields

* Find participatory space manifest for processes and assemblies

* Add read_at field to notifications

* Notification titles i18n

* Simplify notifications layout

Remove unused pagination and filters

* Mark notifications as read from UI

* Add notifications link to user menu

* Destroy notifications on read

* Fix rubocop complaints

* Paginate notifications

* Mark all notifications as read

* Improve JS code

* Add tests for notification dashboard

* Fix ivar name

* Add follow button to UI (#1795)

* Fix rubocop complains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants