Day 41

August 29, 2017 19:00 UTC Team Code Bears (diaspora*) [2017]Subscribe to this teams's activities

After two coaching sessions today, this is the plan how to approach the issue from now on:

1) understand how the existing notifications work (important files and directories: app/models/notification.rb, app/models/notifications, app/helpers/notifications_helper.rb)
2) create new notification type which shows the birthday of a user to their contacts (here still without workers, just displaying the birthday in the Notifications)
3) get all of this working in the console
4) create worker that iterates over all profiles on a pod, checks if today is the birthday and then for each contact of the user calls the method in the newly created birthday notification type (see step 2) (important files and directories:app/workers, config/schedule.yml).
5) create NotificationMailer according to the other Notification types (important files and directories:app/mailers/notification_mailers, app/workers/mail)

From step 4 onwards it would be nice to use TDD as the steps are quite clear. For steps 1-3 it´s better to try stuff and play around until it works.

Comments

You must be logged in to add a comment.