Andy Zhao
3b0f6f2834
Refactor remove_all and remove_each notifications and fix orphaned notifications ( #3570 )
2019-09-25 15:31:56 -04:00
Anna Buianova
f9da88b006
Moved send_mention_notification to ActiveJob ( #3566 )
2019-08-01 16:35:25 -04:00
cyrillefr
8c52d5c43f
Move remove_each notifications method in own job ( #2946 )
2019-05-29 16:26:18 -04:00
Anna Buianova
a6091fe6c8
Moved notifying followers to a separate ActiveJob #1996 ( #2935 )
...
* Moved notifying followers to a service + specs
* Created an ActiveJob for notifiable action notifications
* Call the job from the Notification#send_to_followers
* Refactor creating notifiable action notification
* Handle possible nil followers while sending notifiable action notification
* Use activerecord import to bulk-create notifications
* Set notified_at for the bulk-created notifications
* Move compact to the appropriate place
2019-05-24 07:45:51 -04:00
cyrillefr
abb4831a53
Move remove_all notifications method in own job ( #2882 )
...
- that calls a service
- spec for job + service
- check actual integration spec
- minor refactoring
2019-05-20 13:54:39 -04:00
rhymes
7f28a0e44b
Unpack milestone hash ( #2860 )
2019-05-16 22:54:57 -04:00
cyrillefr
68f06c2076
send_milestone_notification in own job ( #2804 )
...
- that calls a service
- spec for job + move spec to service
- minor refactoring
2019-05-16 13:46:50 -04:00
Anna Buianova
dd0fbf002b
ActiveJob for updating notifications #1996 ( #2839 )
...
* Notifications::Update service
* Update notifications ActiveJob
* Raise an exception when wrong notifiable class passed to a job
2019-05-15 12:37:25 -04:00
cyrillefr
ecdbee64ab
Move tag adjustment notification to Active Jobs ( #2654 )
2019-05-10 11:06:29 -04:00
rhymes
743316b528
Move send new badge achievement notification to ActiveJob ( #2474 )
2019-04-29 10:51:08 -04:00
cyrillefr
c3cb6d9b66
Move moderation notification to Active Jobs ( #2550 )
...
- send_moderation_notification in own job
- that calls a service
- specs for job + service
- minor refactoring
2019-04-29 09:21:15 -04:00
cyrillefr
f3f8a51e35
Move Welcome Notification to Active Jobs ( #2485 )
...
- creation of welcome notification is in own service
- which is called by an active job
Resolves : #1996
2019-04-22 13:49:18 -04:00
Anna Buianova
509c11e86f
New comment notifications to Active Jobs #1996 ( #2287 )
...
* Send new comment notification service + specs
* Call new comment notification service from the model
* Return to non-bang notifications create
* An ActiveJob for the new comment notifications
* Call comments notification ActiveJob from Notification
2019-04-03 11:38:30 -04:00
Anna Buianova
a936aff625
DRY the Active Jobs specs ( #2215 )
2019-03-26 09:49:40 -04:00
Anna Buianova
e1968e815b
Extract new reaction notification to ActiveJob ( #2122 )
2019-03-25 13:54:21 -04:00
Anna Buianova
f0e9c0cfef
Extract sending new follower notification to a separate job ( #2030 )
2019-03-20 12:51:09 -04:00